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

Christopher Mullins christopher.mullins at kitware.com
Tue Jul 22 10:07:54 EDT 2014


This page might have what you're looking for [1].  If not please feel free
to update it once this is resolved!

You might want to try setting CMAKE_PREFIX_PATH to the directory containing
the "lib/cmake" directories, which is usually installed with qt
in "C:/path/to/qt-5.3-install/5.3/<your_compiler> " which in your case
is "C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl".  Note also that it looks like
you have set CMAKE_INSTALL_PREFIX to this value, which tells cmake where
your current project will be installed [2] - probably not what you want.

If all else fails you could try manually pointing QT_QTCORE_LIBRARY_*
variables to those libraries.  This shouldn't be necessary if CMake
correctly finds qt but occasionally helps diagnose the problem nonetheless.


[1] http://vtk.org/Wiki/VTK/Configure_and_Build#Qt5..2A
[2] http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html


On Tue, Jul 22, 2014 at 8:26 AM, 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.
>
>  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. *
>
>
>
>
> 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
>
>


-- 
Christopher Mullins
R&D Engineer
Kitware Inc.,
919.869.8871
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140722/0cb785ca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ggdedbeb.png
Type: image/png
Size: 81504 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140722/0cb785ca/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eecdhiai.png
Type: image/png
Size: 124093 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140722/0cb785ca/attachment-0003.png>


More information about the vtkusers mailing list