[vtkusers] How to get VTK 7 working with Qt 5.6

Richard Brown richard.j.brown at live.co.uk
Tue May 17 03:14:06 EDT 2016


Hi Nick,

I think changing VTK_QT_VERSION to 5 should solve your problem.

Regards,
Richard
 
> On 17 May 2016, at 09:00, Snels Nick via vtkusers <vtkusers at vtk.org> wrote:
> 
> Hi,
> 
> I’m trying to generate a VTK7 build for Visual Studio 2015 64bit using the 
> latest version of CMake. I am following the instructions on 
> http://www.vtk.org/Wiki/VTK/Configure_and_Build <http://www.vtk.org/Wiki/VTK/Configure_and_Build> .
> 
> I can generate using the default options. However I need VTK to work with Qt 
> 5.6 . So I have checked VTK_Group_Qt and added the entry CMAKE_PREFIX_PATH 
> and set it to C:/Qt/5.6/msvc2015_64
> 
> When I click generate, I get an error:
> 
> CMake Error at C:/Program Files 
> (x86)/CMake/share/cmake-3.5/Modules/FindQt4.cmake:1326 (message):
> Found unsuitable Qt version "5.6.0" from
> C:/Qt/5.6/msvc2015_64/bin/qmake.exe, this code requires Qt 4.x
> Call Stack (most recent call first):
> GUISupport/Qt/CMakeLists.txt:71 (find_package)
> 
> What am I doing wrong? Thanks.
> 
> Kind regards,
> 
> Nick
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160517/a5e7e13f/attachment.html>


More information about the vtkusers mailing list