[vtkusers] Build VTK module without OpenGL

Bill Lorensen bill.lorensen at gmail.com
Tue Dec 6 13:30:17 EST 2016


Here is what you need:
 cmake -DVTK_Group_StandAlone:BOOL=OFF -DVTK_Group_Rendering:BOOL=OFF
-DModule_vtkIOEnSight:BOOL=ON -DBUILD_TESTING:BOOL=OFF

It will just build these libs:
libvtkCommonCore-7.1.so
libvtkCommonSystem-7.1.so
libvtkCommonDataModel-7.1.so
libvtkCommonTransforms-7.1.so
libvtkCommonExecutionModel-7.1.so
libvtkIOEnSight-7.1.so
libvtkCommonMath-7.1.so
libvtksys-7.1.so
libvtkCommonMisc-7.1.so


On Tue, Dec 6, 2016 at 12:47 PM, ramesh santhanam
<rsanthanam85 at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> 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
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list