[Mesa-dev] VTK Offscreen Segfaults

Kevin H. Hobbs hobbsk at ohiou.edu
Sat Aug 7 04:45:25 PDT 2010


On 08/06/2010 05:20 PM, tom fogal wrote:
>
> Yeah... hrm, I thought Dan's change got rid of that, but maybe I
> misunderstood it.
>
> Could you rm /tmp/mesa/lib64/libGL.so* before building VTK?  My hunch
> is that VTK is linking it in anyway; maybe it stuck around in cmake's
> cache or something.
>   

I added a line to my script to delete all of /tmp/mesa/lib64/libGL.so*
after I build mesa and before I build VTK.

I delete everything in the VTK build directory before the build.

The test passed with mesa's libGL.* deleted.

libOSMesa still tried to pull in libGL.so so it got nvidia's library.

I took a look at src/mesa/drivers/osmesa/Makefile and it adds
$(OSMESA_LIB_DEPS) to the build line.

This is defined in configs/default as :

 OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)

I removed the -l$(GL_LIB) from the end of this line and reran my script.

The build failed with :

Linking CXX executable
../../../bin/RenderingCxxTests                                                                     

../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXMakeCurrent'                                            
../../../bin/libvtkRendering.so.5.7.0: undefined reference to `glXGetConfig'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXGetCurrentDisplay'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXGetCurrentContext'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXQueryExtensionsString'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXQueryServerString'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXSwapBuffers'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXDestroyGLXPixmap'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXGetProcAddressARB'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to `glXIsDirect'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXChooseVisual'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXCreateContext'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXDestroyContext'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXQueryExtension'
../../../bin/libvtkRendering.so.5.7.0: undefined reference to
`glXGetClientString'
collect2: ld returned 1 exit status
make[3]: *** [bin/RenderingCxxTests] Error 1
make[2]: ***
[Rendering/Testing/Cxx/CMakeFiles/RenderingCxxTests.dir/all] Error 2
make[1]: ***
[Rendering/Testing/Cxx/CMakeFiles/RenderingCxxTests.dir/rule] Error 2
make: *** [RenderingCxxTests] Error 2


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100807/6c08587c/attachment.pgp>


More information about the mesa-dev mailing list