[vtkusers] Undefined reference to Mesa

Kevin H. Hobbs hobbsk at ohiou.edu
Wed Apr 7 10:46:42 EDT 2010


On 04/06/2010 01:10 PM, Hassan Amin wrote:
> The value of cmake variables for vtk5.0.3 are :
> 
> #Include VXLCore
> INCLUDE_DIRECTORIES(
> ${VXLCORE_INCLUDE_DIR}
> ${VXLSRC}
> )
> 
> FIND_PACKAGE(VXL)
>   IF(VXL_FOUND)
>     INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake)
>   ELSE(VXL_FOUND)
>     MESSAGE("VXL_DIR should be set to the VXL build directory.")
> ENDIF(VXL_FOUND)
> 

This is probably not related but should the order of the above two
blocks be switched?

What do you get when you run ldd on libvtkRendering.so and search the
result for OSMesa?  For me the command to do that is :

  $ ldd kitware/VTK_Build/bin/libvtkRendering.so | grep OSMesa

and I get :

  libOSMesa.so.7 => /home/kevin/mesa/lib64/libOSMesa.so.7
(0x00007f1988852000)

What do you get when you run nm on the OSMesa library and search the
result for one of the undefined symbols? For me the command to do this is :

  $ nm mesa/lib64/libOSMesa.so | grep _mesa_create_framebuffer

I get :

  U _mesa_create_framebuffer

This says that the value of the symbol is undefined. The symbol is
defined in libGL.so :

 $ nm mesa/lib64/libGL.so | grep _mesa_create_framebuffer
00000000000c75d0 T _mesa_create_framebuffer

What do you get?

Exactly how did you build the mesa library?


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


More information about the vtkusers mailing list