[vtkusers] CMake problem (VTK 6.1 - Qt 5.3)

Waldo Valenzuela waldo.valenzuela at hotmail.com
Tue Jul 22 13:34:43 EDT 2014


Hi Luis,

to compile qt 5 or superior with vtk 6, you need to set as well VTK_QT_VERSION = 5,  in cmake.

Cheers,

Waldo.



On 22 Jul 2014, at 14:26, Luis Vieira <luis.vieira at vektore.com> wrote:

> 
> Hello, We hope this email find you well.
> 
> We have the follow CMake - VTK - Visual Studio 2013 Configuration:
> 
> ·         Visual Studio 2013 opengl +64;
> 
> ·         CMake 3.0;
> 
> ·         VTK-6.1.0.
> 
> CMake configurated the following paths:
> 
> ·         C:\Program Files\VTK (Debug);
> 
> ·         C:\Program Files\VTK (Release);
> 
> ·         C:\VTK\build;
> 
> ·         C:\VTK\Data.
> <ggdedbeb.png>
> The environment stated above works very well. However, we need to provide/enable the same configuration between VTK and QT Enterprise Creator 5.3. We used CMake 3.0 to configure the linkage between QT 5.3 and VTK - 6.1.0.
> 
> The following variables were configured in CMake:
> 
> ·         VTK_Group_Qt:BOOL=ON;
> 
> ·         QT_QMAKE_EXECUTABLE:FILEPATH=C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/bin/qmake.exe. 
> 
>       
> <eecdhiai.png>
> 
> 
> Despite of the above configuration, CMake presents this error message:
> 
> CMake            Warning at C:/Program Files            (x86)/CMake/share/cmake-3.0/Modules/FindQt4.cmake:616            (message):            C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/bin/qmake.exe reported            QT_INSTALL_LIBS as            "C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/lib" but            QtCore could not be found there. Qt is NOT installed            correctly for the target build environment.            Call Stack (most recent call first):            GUISupport/Qt/CMakeLists.txt:68 (find_package)                       
> 
>  CMake Error at C:/Program Files            (x86)/CMake/share/cmake-3.0/Modules/FindQt4.cmake:621            (message):            Could NOT find QtCore. Check            C:/VTK/bin/msvc2013_64_opengl/CMakeFiles/CMakeError.log for            more details.            Call Stack (most recent call first):            GUISupport/Qt/CMakeLists.txt:68 (find_package)                                  
> Could you guys please advise me on how to properly set up the programming environment in which CMake will build the bridge amongst the VSC++ OpenGL +64, VTK 6.1.0 and QT 5.3? What are our options to direct CMake to recognize QT5.3? The way it is now it only recognizes QT4.0. 
> 
> Thank you so much.
> 
> 
> 
> _______________________________________________
> 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
> 
> 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/20140722/3f03a5e3/attachment.html>


More information about the vtkusers mailing list