[vtkusers] undefined reference to `vtkOSOpenGLRenderWindow::New()

Kevin H. Hobbs hobbsk at ohio.edu
Fri May 20 07:54:47 EDT 2011


On 05/20/2011 07:41 AM, Dominik Szczerba wrote:
> I further looked into the problem and I see that cmake is stubborn on
> this variable: VTK_OPENGL_HAS_OSMESA. It always switches it back on,
> even if I set it to off. I do have my nvidia driver under
> /usr/lib32/nvidia-current/libGL.so which I pass as OPENGL_gl_LIBRARY.
> But it still seems unable to find it. Any ideas?
>
> Thanks
> Dominik
>

Grep for libGL.so in your CMakeCache.txt I bet it's NOT_FOUND.

I see :

#-----------------------------------------------------------------------------
# Configure Off-Screen MESA support.
# If rendering is enabled, but there is no graphics system
enabled, enforce osmesa
IF(VTK_USE_RENDERING AND NOT WIN32 AND NOT APPLE AND NOT VTK_USE_X)
  SET(VTK_OPENGL_HAS_OSMESA ON CACHE BOOL "Forced to ON since
neither OPEN_gl_LIBRARY nor MangledMesa were found" FORCE)
ENDIF(VTK_USE_RENDERING AND NOT WIN32 AND NOT APPLE AND NOT
VTK_USE_X)

in the top CMakeLists.txt  for others look at :

[kevin at murron VTK]$ find ./ -name CMakeLists.txt  -exec grep -l
VTK_OPENGL_HAS_OSMESA {} \;
./CMakeLists.txt
./Rendering/CMakeLists.txt
./Rendering/Testing/Cxx/CMakeLists.txt
./VolumeRendering/CMakeLists.txt
./Parallel/CMakeLists.txt
./Utilities/ftgl/CMakeLists.txt
./Widgets/CMakeLists.txt



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110520/93820356/attachment.pgp>


More information about the vtkusers mailing list