[vtkusers] Undefined reference to Mesa

Hassan Amin hassan.amin at nu.edu.pk
Fri Apr 9 01:40:10 EDT 2010


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

I get : libOSMesa.so.7 => not found

How did I built Mesa library :

I used ./configure
and make to build my Mesa library.

I am unable to make Mesa using following commands :

"cd Mesa-7.6.1/
make linux-x86-64"

which was recommended earlier.



Regards,


Dr. Hassan Amin



On Wed, Apr 7, 2010 at 7:46 PM, Kevin H. Hobbs <hobbsk at ohiou.edu> wrote:
> 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?
>
>
>



-- 
Dr. Hassan Amin
Assistant Professor
Head of Computer Science Department
National University(NUCES)
Peshawar Campus
Pakistan
Phone:0092-(0)91-111-128-128
Email: hassan.amin at nu.edu.pk



More information about the vtkusers mailing list