[CMake] Libs not Found with Make Install
Michael Hertling
mhertling at online.de
Tue Jul 20 21:10:49 EDT 2010
On 07/21/2010 12:39 AM, Michael.Schmidt at L-3com.com wrote:
> Howdy,
>
> After a make install, the executable's shared library dependencies are
> missing when I run "ldd".
<http://www.cmake.org/Wiki/CMake_RPATH_handling>
In particular: "By default if you don't change any RPATH related
settings, CMake will link the executables and shared libraries with
full RPATH to all used libraries in the build tree. When installing,
it will link all these targets again so they are installed with an
empty RPATH."
So, if you don't install to a well-known location or to one mentioned
in /etc/ld.so.conf, LD_LIBRARY_PATH or the like the binaries' dynamic
dependencies are not resolved by default, and remember "ldconfig". ;)
Regards,
Michael
More information about the CMake
mailing list