[vtk-developers] Building VTK with QT5.4 Windows 8

Karsten Tausche karsten.tausche at student.hpi.uni-potsdam.de
Wed Jun 17 09:42:26 EDT 2015


Hi,

you have to set the CMake variable VTK_QT_VERSION to 5, otherwise VTK
will only search for Qt4.

Am 2015-06-17 um 3:14 PM schrieb Lonni Besançon:
> Hello,
> 
> I'm facing a rather weird error. I can see on the wiki that we can build vtk
> with support for qt5. However, when trying to do so and first configuring
> with cmake I get the following output:
> 
> CMake Error at C:/Program Files
> (x86)/CMake/share/cmake-3.2/Modules/FindQt4.cmake:1326 (message):
>   Found unsuitable Qt version "5.4.2" from
>   C:/Qt/5.4/msvc2012_opengl/bin/qmake.exe, this code requires Qt 4.x
> Call Stack (most recent call first):
>   GUISupport/Qt/CMakeLists.txt:71 (find_package)
> 
> I have tried to set CMAKE_PREFIX_PATH to C:/Qt/5.4/msvc2012_opengl/ and
> QT_QMAKE_EXECUTABLE to C:/Qt/5.4/msvc2012_opengl/bin/qmake.exe
> 
> And yet it doesn't work. Does anyone have an explanation for that?
> 
> 
> 
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Building-VTK-with-QT5-4-Windows-8-tp5732403.html
> Sent from the VTK - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
> 


More information about the vtk-developers mailing list