[vtkusers] Build VTK module without OpenGL
ramesh santhanam
rsanthanam85 at gmail.com
Tue Dec 6 12:47:46 EST 2016
Hi
A while back (2015) a similar query was posted. I have version 7.1 of the
Vtk src and am interested in only
the modules viz. vtkIOImport, vtkIOEnsight which should be void of any
OpenGL dependency (based on my understanding). I tried following the
solution suggested in the thread but without much success. I am possibly
missing something. Any pointers would be appreciated.
cmake -DVTK_Group_StandAlone:BOOL=OFF -DVTK_Group_Rendering:BOOL=OFF
-DVTK_RENDERING_BACKGROUND=OpenGL2 -DModule_vtkIOEnSight:BOOL=ON
-DVTK_BUILD_ALL_MODULES_FOR_TESTS:BOOL=OFF ..
but get errors as shown below:
-- * vtktiff, needed by vtkIOImage.
-- * vtkzlib, needed by 6 modules:
vtkIOCore
vtkIOImage
vtkMetaIO
vtkfreetype
vtkpng
vtktiff
CMake Error at
/usr/local/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
(message):
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.5/Modules/FindOpenGL.cmake:172
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/Components/VTK/CMake/vtkOpenGL.cmake:77 (find_package)
src/Components/VTK/ThirdParty/glew/vtkglew/CMakeLists.txt:3 (include)
====
Thanks
Ramesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161206/3ffe59c6/attachment.html>
More information about the vtkusers
mailing list