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