colcon-cmake icon indicating copy to clipboard operation
colcon-cmake copied to clipboard

ld_library_path scripts not generated for build_type 'cmake'

Open hplatou opened this issue 1 year ago • 1 comments

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 avatar Feb 29 '24 13:02 hplatou

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.

hplatou avatar Mar 05 '24 15:03 hplatou