colcon / colcon-cmake

Extension for colcon to support CMake packages
http://colcon.readthedocs.io
Apache License 2.0
16 stars 25 forks source link

ld_library_path scripts not generated for build_type 'cmake' #137

Open hplatou opened 4 months ago

hplatou commented 4 months ago

When building an ament_cmake package ld_library_path_lib.xx files are generated in the install tree setting up LD_LIBRARY_PATH (on Linux). This is not the case for build_type 'cmake'. Executables depending on these libraries will fail with xxx.so not found.

Note: Running with --symlink-install this apparently works, as the dependent executables will find the libraries through the runpath variable in the build executable.

hplatou commented 4 months ago

After some further digging, this seems to be caused by my .so files being installed in a subfolder under lib eg: install/package_name/lib/my_lib/xx.so. I guess this issue belongs to the colcon-library-path repo so reported a new issue there.