[vtk-developers] Possible correct to OSMESA builds for static
Fabian, Nathan
ndfabia at sandia.gov
Mon Aug 23 14:04:12 EDT 2010
Hi,
If I build with OSMESA but VTK_USE_X=false and build static, I get failures
to link. I believe the problem is in the locations where we link
OSMESA_LIBRARY, we need to also explicitly link with OPENGL_gl_LIBRARY (to
be explicit: Utilities/IceT/CMakeLists.txt, VTK/Rendering/CMakeLists.txt,
and VTK/VolumeRendering/CMakeLists.txt).
Example diff:
-SET(KIT_LIBS ${KIT_LIBS} ${OSMESA_LIBRARY})
+SET(KIT_LIBS ${KIT_LIBS} ${OSMESA_LIBRARY} ${OPENGL_gl_LIBRARY})
And similarly for MANGLED_OSMESA_LIBRARY although I haven't tested that.
This is based on my assumption that we'd specify both mesa's GL as the
gl_LIBRARY as well as the OSMESA library itself in the CMakeCache. If this
is an incorrect assumption then please ignore me :)
This works for me, but is it a correct change?
Thanks,
Nathan.
More information about the vtk-developers
mailing list