[vtkusers] Shared library path

William A. Hoffman billlist at nycap.rr.com
Fri Mar 1 11:42:24 EST 2002


I guess the idea was that the rpath stuff was mostly for developers,
so it would use the build path.  If you were going to install, you would
install into a place like /usr/local/bin which would be in the system
LD_LIBRARY_PATH.   

-Bill


At 03:35 PM 3/1/2002 +0100, Rainer Sabelka wrote:
>Hi,
>
>I have a problem with the vtk executable not finding its shared
>libraries.
>I compiled vtk-4 (latest cvs version) under Linux (Suse 7.3) and
>installed  it into a non-standard location
>(CMAKE_INSTALL_PREFIX:PATH=/usr/local/vtk-devel). Everything works fine
>so far.
>But after I remove the build-tree vtk cannot find its shared libraries
>any longer.
>The problem is that the link command get's the wrong -rpath (possibly a
>CMAKE problem?).
>I attached the output of ldd to this mail. The used rpath makes it
>possible to execute vtk at the build location, but is not valid for the
>installed program.
>
>Best regards,
>Rainer Sabelka
>
>$ ldd /usr/local/vtk-devel/bin/vtk
>        libvtkpng.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkpng.so
>(0x40016000)
>        libvtkzlib.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkzlib.so
>(0x40037000)
>        libvtkjpeg.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkjpeg.so
>(0x40045000)
>        libvtktiff.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtktiff.so
>(0x40064000)
>        libpthread.so.0 => /lib/libpthread.so.0 (0x400b4000)
>        libdl.so.2 => /lib/libdl.so.2 (0x400ca000)
>        libvtkImagingTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkImagingTCL.so
>(0x400cf000)
>        libvtkGraphicsTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkGraphicsTCL.so
>(0x4018a000)
>        libvtkIOTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkIOTCL.so
>(0x402a2000)
>        libvtkFilteringTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkFilteringTCL.so
>(0x40303000)
>        libvtkCommonTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkCommonTCL.so
>(0x40350000)
>        libvtkIO.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkIO.so
>(0x4041c000)
>        libvtkGraphics.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkGraphics.so
>(0x406d0000)
>        libvtkImaging.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkImaging.so
>(0x40abe000)
>        libvtkFiltering.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkFiltering.so
>(0x40e4a000)
>        libvtkCommon.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkCommon.so
>(0x40ef3000)
>        libtcl8.3.so => /usr/lib/libtcl8.3.so (0x41152000)
>        libGL.so.1 => /usr/lib/libGL.so.1 (0x411da000)
>        libtk8.3.so => /usr/lib/libtk8.3.so (0x41221000)
>        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x412d9000)
>        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x41328000)
>        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x41332000)
>        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4134a000)
>        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4142d000)
>        libvtkRenderingTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkRenderingTCL.so
>(0x4143b000)
>        libvtkRendering.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkRendering.so
>(0x41597000)
>        libvtkPatentedTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkPatentedTCL.so
>(0x41901000)
>        libvtkPatented.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkPatented.so
>(0x41921000)
>        libvtkHybridTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkHybridTCL.so
>(0x419f8000)
>        libvtkHybrid.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkHybrid.so
>(0x41a46000)
>        libm.so.6 => /lib/libm.so.6 (0x41bcf000)
>        libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
>(0x41bf1000)
>        libc.so.6 => /lib/libc.so.6 (0x41c3e000)
>        libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x41d65000)
>        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>sabelka at in14:~/src/VTK-build-linux-gcc$ vim CMakeCache.txt
>sabelka at in14:~/src/VTK-build-linux-gcc$ ldd /usr/local/vtk-devel/bin/vtk
>
>        libvtkpng.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkpng.so
>(0x40016000)
>        libvtkzlib.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkzlib.so
>(0x40037000)
>        libvtkjpeg.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkjpeg.so
>(0x40045000)
>        libvtktiff.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtktiff.so
>(0x40064000)
>        libpthread.so.0 => /lib/libpthread.so.0 (0x400b4000)
>        libdl.so.2 => /lib/libdl.so.2 (0x400ca000)
>        libvtkImagingTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkImagingTCL.so
>(0x400cf000)
>        libvtkGraphicsTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkGraphicsTCL.so
>(0x4018a000)
>        libvtkIOTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkIOTCL.so
>(0x402a2000)
>        libvtkFilteringTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkFilteringTCL.so
>(0x40303000)
>        libvtkCommonTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkCommonTCL.so
>(0x40350000)
>        libvtkIO.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkIO.so
>(0x4041c000)
>        libvtkGraphics.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkGraphics.so
>(0x406d0000)
>        libvtkImaging.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkImaging.so
>(0x40abe000)
>        libvtkFiltering.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkFiltering.so
>(0x40e4a000)
>        libvtkCommon.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkCommon.so
>(0x40ef3000)
>        libtcl8.3.so => /usr/lib/libtcl8.3.so (0x41152000)
>        libGL.so.1 => /usr/lib/libGL.so.1 (0x411da000)
>        libtk8.3.so => /usr/lib/libtk8.3.so (0x41221000)
>        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x412d9000)
>        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x41328000)
>        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x41332000)
>        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4134a000)
>        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4142d000)
>        libvtkRenderingTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkRenderingTCL.so
>(0x4143b000)
>        libvtkRendering.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkRendering.so
>(0x41597000)
>        libvtkPatentedTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkPatentedTCL.so
>(0x41901000)
>        libvtkPatented.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkPatented.so
>(0x41921000)
>        libvtkHybridTCL.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkHybridTCL.so
>(0x419f8000)
>        libvtkHybrid.so =>
>/export/users/sabelka/src/VTK-build-linux-gcc/bin/libvtkHybrid.so
>(0x41a46000)
>        libm.so.6 => /lib/libm.so.6 (0x41bcf000)
>        libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
>(0x41bf1000)
>        libc.so.6 => /lib/libc.so.6 (0x41c3e000)
>        libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x41d65000)
>        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers 




More information about the vtkusers mailing list