[vtkusers] Shared library path
Rainer Sabelka
sabelka at iue.tuwien.ac.at
Fri Mar 1 09:35:59 EST 2002
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)
More information about the vtkusers
mailing list