[vtkusers] Issue with libvtkRendering.so

fenglei qi qifl2008 at gmail.com
Tue Jul 8 17:19:51 EDT 2014


Hi all,

I'm trying to install vtk-5.8 on Redhat Enterprice Linux 6.5. Here is the
errors:

Linking CXX executable ../../../bin/GraphicsCxxTests
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXMakeCurrent'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to `glXGetConfig'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXGetCurrentDisplay'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXGetCurrentContext'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXQueryExtensionsString'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXQueryServerString'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXSwapBuffers'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXDestroyGLXPixmap'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXGetProcAddressARB'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to `glXIsDirect'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXChooseVisual'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXCreateContext'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXDestroyContext'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXQueryExtension'
../../../bin/libvtkRendering.so.5.8.0: undefined reference to
`glXGetClientString'
collect2: ld returned 1 exit status
make[2]: *** [bin/GraphicsCxxTests] Error 1
make[1]: *** [Graphics/Testing/Cxx/CMakeFiles/GraphicsCxxTests.dir/all]
Error 2
make: *** [all] Error 2

I have installed libOSMesa.so.* and libGL.so.* from Mesa-10.2.2 sources.
The installation dir is $HOME/vtk. Besides, I set up OpenGL_INCLUDE_DIR and
OpenGL_gl_LIBRARY to /usr/local/inlcude/GL and /usr/local/lib sperately. I
found this problem has been asked before but it's not addressed. Here is
the link.

http://www.vtk.org/pipermail/vtkusers/2012-April/073885.html

Hope someone can give me a hint. Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140708/c49362a1/attachment.html>


More information about the vtkusers mailing list