[vtkusers] Trying to Compile Qt examples
Michael Jackson
mike.jackson at bluequartz.net
Mon Apr 18 12:11:30 EDT 2016
Just getting back into VTK after a long hiatus and I was wanting to
compile the Qt examples inside of VTK 7.0.0. This is what I did:
Downloaded the VTK 7.0.0 sources and setup my build directories in the
following location:
/Users/Shared/OpenSource/VTK-7.0.0
/Users/Shared/OpenSource/VTK-7.0.0-Build
I ran the following cmake command (CMake 3.5.1):
[XXX] $ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/Users/Shared/DREAM3D_SDK/VTK-7.0.0
-DVTK_Group_Qt=ON -DVTK_USE_CXX11_FEATURES=ON -DModule_vtkRenderingQt=ON
-DQT_QMAKE_EXECUTABLE=/Users/Shared/DREAM3D_SDK/Qt5.6.0/5.6/clang_64/bin/qmake
-DVTK_QT_VERSION:STRING=5
-DCMAKE_PREFIX_PATH:PATH="/Users/Shared/DREAM3D_SDK/Qt5.6.0/5.6/clang_64/lib/cmake/Qt5;/Users/Shared/DREAM3D_SDK/hdf5-1.8.16-Release/share/cmake"
-DBUILD_TESTING=ON ../VTK-7.0.0
[XXX] $ ninja
[XXX] $ ninja install
All of that worked great.
I then did the following:
[XXX] $ cd /Users/Shared/OpenSource/VTK-7.0.0/Examples/GUI/Qt/
[XXX] $ mkdir Build
[XXX] $ cd Build
[XXX] $ cmake -DCMAKE_BUILD_TYPE=Release
-DCMAKE_PREFIX_PATH="/Users/Shared/DREAM3D_SDK/Qt5.6.0/5.6/clang_64/lib/cmake;/Users/Shared/DREAM3D_SDK/VTK-7.0.0/lib/cmake/vtk-7.0"
../
but I get the following CMake error:
CMake Error at
/Users/Shared/DREAM3D_SDK/VTK-7.0.0/lib/cmake/vtk-7.0/vtkModuleAPI.cmake:120
(message):
Requested modules not available:
vtkRendering
Call Stack (most recent call first):
/Users/Shared/DREAM3D_SDK/VTK-7.0.0/lib/cmake/vtk-7.0/VTKConfig.cmake:88
(vtk_module_config)
ImageViewer/CMakeLists.txt:16 (find_package)
Hmm. I am pretty sure I ran through everything correctly. The install
looks correct. A cursory glances shows dylibs for VtkRendering.dylib?
This is on OS X 10.10.5 with Xcode 7.2 and CMake 3.5.1
Thanks for any help or pointers
--
Mike Jackson
<https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160418/99c7933e/attachment.html>
More information about the vtkusers
mailing list