<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Nick,<div class=""><br class=""></div><div class="">I think changing VTK_QT_VERSION to 5 should solve your problem.<div class=""><br class=""></div><div class="">Regards,</div><div class="">Richard</div><div class=""> <br class=""><div><blockquote type="cite" class=""><div class="">On 17 May 2016, at 09:00, Snels Nick via vtkusers <<a href="mailto:vtkusers@vtk.org" class="">vtkusers@vtk.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div dir="ltr" id="yui_3_16_0_ym19_1_1463468269020_2808" class="">Hi,<br id="yui_3_16_0_ym19_1_1463468269020_2857" class=""><br id="yui_3_16_0_ym19_1_1463468269020_2858" class="">I’m trying to generate a VTK7 build for Visual Studio 2015 64bit
using the <br id="yui_3_16_0_ym19_1_1463468269020_2859" class="">latest version of CMake. I am following the instructions on <br id="yui_3_16_0_ym19_1_1463468269020_2860" class=""><a id="yui_3_16_0_ym19_1_1463468269020_2861" href="http://www.vtk.org/Wiki/VTK/Configure_and_Build" class="">http://www.vtk.org/Wiki/VTK/Configure_and_Build</a>
.<br id="yui_3_16_0_ym19_1_1463468269020_2862" class=""><br id="yui_3_16_0_ym19_1_1463468269020_2863" class="">I can generate using the default options. However I need VTK to work
with Qt <br id="yui_3_16_0_ym19_1_1463468269020_2864" class="">5.6 . So I have checked VTK_Group_Qt and added the entry
CMAKE_PREFIX_PATH <br id="yui_3_16_0_ym19_1_1463468269020_2865" class="">and set it to C:/Qt/5.6/msvc2015_64<br id="yui_3_16_0_ym19_1_1463468269020_2866" class=""><br id="yui_3_16_0_ym19_1_1463468269020_2867" class="">When I click
generate, I get an error:<br id="yui_3_16_0_ym19_1_1463468269020_2868" class=""><br id="yui_3_16_0_ym19_1_1463468269020_2869" class="">CMake Error at C:/Program Files
<br id="yui_3_16_0_ym19_1_1463468269020_2870" class="">(x86)/CMake/share/cmake-3.5/Modules/FindQt4.cmake:1326 (message):<br id="yui_3_16_0_ym19_1_1463468269020_2871" class="">Found
unsuitable Qt version "5.6.0" from<br id="yui_3_16_0_ym19_1_1463468269020_2872" class="">C:/Qt/5.6/msvc2015_64/bin/qmake.exe, this
code requires Qt 4.x<br id="yui_3_16_0_ym19_1_1463468269020_2873" class="">Call Stack (most recent call
first):<br id="yui_3_16_0_ym19_1_1463468269020_2874" class="">GUISupport/Qt/CMakeLists.txt:71 (find_package)<br id="yui_3_16_0_ym19_1_1463468269020_2875" class=""><br id="yui_3_16_0_ym19_1_1463468269020_2876" class="">What am I doing
wrong? Thanks.<br id="yui_3_16_0_ym19_1_1463468269020_2877" class=""><br id="yui_3_16_0_ym19_1_1463468269020_2878" class="">Kind regards,<br id="yui_3_16_0_ym19_1_1463468269020_2879" class=""><br id="yui_3_16_0_ym19_1_1463468269020_2880" class="">Nick</div></div></div>_______________________________________________<br class="">Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class=""><br class="">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" class="">http://www.vtk.org/Wiki/VTK_FAQ</a><br class=""><br class="">Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" class="">http://markmail.org/search/?q=vtkusers</a><br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class=""><a href="http://public.kitware.com/mailman/listinfo/vtkusers" class="">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class=""></div></blockquote></div><br class=""></div></div></body></html>