[vtkusers] Undefined reference to Mesa

Kevin H. Hobbs hobbsk at ohiou.edu
Tue Apr 6 06:19:46 EDT 2010


On 04/06/2010 05:29 AM, Hassan Amin wrote:
> I am getting following error, while linking against vtk . Any help to
> resolve this error is appreciated:
>
> /home/hassan/vision/Mesa-7.6.1/lib64/libOSMesa.so.7: undefined
> reference to `_mesa_create_framebuffer'
>   

Are you using CMake to build your application?

Did you build Mesa yourself?

Did you build VTK yourself?

If you built VTK yourself, then what does :
  grep OPENGL VTK_Build/CMakeCache.txt | grep -v INTERNAL | grep -v Advance
say?

What does :
  grep OSMESA VTK_Build/CMakeCache.txt | grep -v INTERNAL | grep -v Advanced
say?

What does :
  grep RPATH VTK_Build/CMakeCache.txt | grep -v INTERNAL | grep -v Advanced
say?

For me these are:

$ grep OPENGL VTK_Build/CMakeCache.txt | grep -v INTERNAL | grep -v Advanced
OPENGL_INCLUDE_DIR:PATH=/home/kevin/mesa/include/
OPENGL_gl_LIBRARY:FILEPATH=/home/kevin/mesa/lib64/libGL.so
OPENGL_glu_LIBRARY:FILEPATH=/home/kevin/mesa/lib64/libGLU.so
OPENGL_xmesa_INCLUDE_DIR:PATH=/home/kevin/mesa/include/
VTK_OPENGL_HAS_OSMESA:BOOL=ON

$ grep OSMESA VTK_Build/CMakeCache.txt | grep -v INTERNAL | grep -v Advanced
OSMESA_INCLUDE_DIR:PATH=/home/kevin/mesa/include/
OSMESA_LIBRARY:FILEPATH=/home/kevin/mesa/lib64/libOSMesa.so
VTK_OPENGL_HAS_OSMESA:BOOL=ON

$ grep RPATH VTK_Build/CMakeCache.txt | grep -v INTERNAL | grep -v Advanced
VTK_USE_RPATH:BOOL=ON



-------------- 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/20100406/b656cc3d/attachment.pgp>


More information about the vtkusers mailing list