<div dir="ltr">Building now, it seems to be fixed. However I still have this error:<div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap">This build error occurs on line 60 of gl.h:</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap">Error 56 error C2371: 'GLdouble' : redefinition; different basic types C:\Program Files (x86)\Windows Kits\8.0\Include\um\GL\gl.h 60 1 vtkGUISupportQtOpenGL</span></font></div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap">So I am trying a rebuild.</span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap"><br>
</span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap">The GLdouble refefinition error still occurs, a quick search of the project vtkGUISupportQtOpenGL reveals nothing.</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap">Also a search of all the projects reveals no redefinition of GLdouble.</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap"><br>
</span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap">Regards</span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14px;white-space:pre-wrap"> Andrew</span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jun 11, 2013 at 10:23 AM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think it is an error in the set_target_properties call - when the<br>
variable is empty it is seen as no argument. Can you try,<br>
<br>
<a href="http://review.source.kitware.com/#/t/2872" target="_blank">http://review.source.kitware.com/#/t/2872</a><br>
<br>
That should address the issue.<br>
<span class="HOEnZb"><font color="#888888"><br>
Marcus<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Jun 10, 2013 at 7:53 PM, Andrew Maclean<br>
<<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>> wrote:<br>
><br>
> Sorry, forgot to include vtk-developers.<br>
><br>
> ---------- Forwarded message ----------<br>
> From: Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>><br>
> Date: Mon, Jun 10, 2013 at 10:48 AM<br>
> Subject: Re: [vtk-developers] VTK and QT5 Errors in Windows<br>
> To: Jean-Christophe Fillion-Robin <<a href="mailto:jchris.fillionr@kitware.com">jchris.fillionr@kitware.com</a>><br>
><br>
><br>
> Hi Jc,<br>
> (please ignore the last message it suffers from premature sending<br>
> syndrome!).<br>
><br>
> I can confirm that I have configured as outlined in your commit message,<br>
> I manually set:<br>
> -DCMAKE_PREFIX_PATH:STRING="C:\Qt\Qt5.0.2\5.0.2\msvc2012_64"<br>
> and<br>
> -DVTK_QT_VERSION:STRING="5"<br>
> in the CMake GUI.<br>
> I still get the following error when I then configure (after selecting the<br>
> VTK_Group_Qt module):<br>
><br>
> CMake Error at GUISupport/Qt/Testing/Cxx/CMakeLists.txt:21<br>
> (set_target_properties):<br>
><br>
> set_target_properties called with incorrect number of arguments.<br>
><br>
><br>
> The Qt5 variables (${Qt5Widgets_INCLUDE_DIRS}, ${Qt5Widgets_DEFINITIONS},<br>
> ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}) at this point are:<br>
><br>
> Qt5 Includes:<br>
> C:/Qt/Qt5.0.2/5.0.2/msvc2012_64/include/QtWidgets;C:/Qt/Qt5.0.2/5.0.2/msvc2012_64/include/QtGui;C:/Qt/Qt5.0.2/5.0.2/msvc2012_64/include/QtCore;C:/Qt/Qt5.0.2/5.0.2/msvc2012_64/include/;C:/Qt/Qt5.0.2/5.0.2/msvc2012_64//mkspecs/win32-msvc2012<br>
><br>
> Qt5 Definitions: -DQT_WIDGETS_LIB;-DQT_GUI_LIB;-DQT_CORE_LIB<br>
><br>
> Qt5 Widgets:<br>
><br>
><br>
> Note that in Ubuntu (which builds with no errors), these variables have the<br>
> following values;<br>
> Qt5 Includes:<br>
> /usr/include/qt5/;/usr/include/qt5/QtWidgets;/usr/include/qt5/QtGui;/usr/include/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++-64<br>
> Qt5 Definitions: -DQT_WIDGETS_LIB;-DQT_GUI_LIB;-DQT_CORE_LIB<br>
> Qt5 Widgets compile flags: -fPIE<br>
><br>
><br>
> It is possible to then generate a solution and build.<br>
> This build error occurs on line 60 of gl.h:<br>
> Error 56 error C2371: 'GLdouble' : redefinition; different basic types<br>
> C:\Program Files (x86)\Windows Kits\8.0\Include\um\GL\gl.h 60 1<br>
> vtkGUISupportQtOpenGL<br>
><br>
><br>
> It seems to have found all the Qt stuff correctly. The CMakeCache.txt file<br>
> is attached, I can't see anything unusual in it.<br>
><br>
> To confirm QT5 is working correctly, I created a simple test and everything<br>
> seems Ok. So I am pretty sure my system is set up correctly. See the<br>
> attached HelloWorld.zip.<br>
><br>
> I think there may be two issues here:<br>
> 1) In the configuration the Qt5 compile widgets flags are empty - this may<br>
> be causing the incorrect number of arguments error.<br>
> 2) The redefinition error when building implies to me that the windows<br>
> definition of GLdouble is not the same as the VTK definition.<br>
><br>
> Regards<br>
> Andrew<br>
><br>
><br>
><br>
><br>
> On Mon, Jun 10, 2013 at 9:58 AM, Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi Jc,<br>
>> I can confirm that I have configured as outlined in your commit<br>
>> message, I manually set:<br>
>> -DCMAKE_PREFIX_PATH:STRING="C:\Qt\Qt5.0.2\5.0.2\msvc2012_64"<br>
>> and<br>
>> -DVTK_QT_VERSION:STRING="5"<br>
>><br>
>><br>
>> On Mon, Jun 10, 2013 at 3:16 AM, Jean-Christophe Fillion-Robin<br>
>> <<a href="mailto:jchris.fillionr@kitware.com">jchris.fillionr@kitware.com</a>> wrote:<br>
>>><br>
>>> Hi Andrew,<br>
>>><br>
>>> Qt5 support for VTK 6 has just been integrated. Could you confirm that<br>
>>> you configured VTK as detailed in the commit message ?<br>
>>> See<br>
>>> <a href="https://github.com/Kitware/VTK/commit/384636ec9f442db83c8b827d7eabc7ada9ef8d35" target="_blank">https://github.com/Kitware/VTK/commit/384636ec9f442db83c8b827d7eabc7ada9ef8d35</a><br>
>>><br>
>>> Hth<br>
>>> Jc<br>
>>><br>
>>><br>
>>> On Sun, Jun 9, 2013 at 1:30 AM, Andrew Maclean<br>
>>> <<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Just letting you know there is a problem with the QT5 and VTK<br>
>>>> combination in windows.<br>
>>>><br>
>>>> System: Windows 8<br>
>>>> Compiler VS Express 2012 64-bit.<br>
>>>> QT Version: 5.0.2<br>
>>>> QTDIR=C:\Qt\Qt5.0.2\5.0.2\msvc2012_64\mkspecs<br>
>>>> PATH contains: C:\Qt\Qt5.0.2\5.0.2\msvc2012_64\bin<br>
>>>><br>
>>>> When configuring VTK on an empty build directory, CMake is unable to<br>
>>>> find mkspecs. Consequently it cannot find qtcore.lib.<br>
>>>><br>
>>>> So I manually select VTK_QT=5, specify qtcore.lib (debug/release) and<br>
>>>> then generate fails with:<br>
>>>><br>
>>>> CMake Error at GUISupport/Qt/Testing/Cxx/CMakeLists.txt:21<br>
>>>> (set_target_properties):<br>
>>>><br>
>>>> set_target_properties called with incorrect number of arguments.<br>
>>>><br>
>>>><br>
>>>><br>
>>>> Build fails with:<br>
>>>> Error 141 error C2371: 'GLdouble' : redefinition; different basic types<br>
>>>> C:\Program Files (x86)\Windows Kits\8.0\Include\um\GL\gl.h 60 1<br>
>>>> vtkGUISupportQtOpenGL<br>
>>>><br>
>>>><br>
>>>> Regards<br>
>>>> Andrew<br>
>>>> --<br>
>>>> ___________________________________________<br>
>>>> Andrew J. P. Maclean<br>
>>>><br>
>>>> ___________________________________________<br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>><br>
>>>> Visit other Kitware open-source projects at<br>
>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>><br>
>>>> Follow this link to subscribe/unsubscribe:<br>
>>>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> <a href="tel:%2B1%20919%20869%208849" value="+19198698849">+1 919 869 8849</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> ___________________________________________<br>
>> Andrew J. P. Maclean<br>
>><br>
>> ___________________________________________<br>
><br>
><br>
><br>
><br>
> --<br>
> ___________________________________________<br>
> Andrew J. P. Maclean<br>
><br>
> ___________________________________________<br>
><br>
><br>
><br>
> --<br>
> ___________________________________________<br>
> Andrew J. P. Maclean<br>
><br>
> ___________________________________________<br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________
</div>