Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find typesupport libraries in LD_LIBRARY_PATH #1517

Open
adityapande-1995 opened this issue Dec 19, 2023 · 1 comment
Open

Find typesupport libraries in LD_LIBRARY_PATH #1517

adityapande-1995 opened this issue Dec 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@adityapande-1995
Copy link

Description

As per

dynamic_library_folder = "/lib/";
#endif
std::string package_prefix;
try {
package_prefix = ament_index_cpp::get_package_prefix(package_name);
} catch (ament_index_cpp::PackageNotFoundError & e) {
throw std::runtime_error(e.what());
, rosbag looks for message typesupport libraries in the "lib/" directory relative to the package in the ament prefix path. This means that the recorder machine should have the typesupport libraries available in that location only, and assumes that the message package is a ros package, and that it exists in the ament prefix path.

When using other build systems like bazel, there may not be a ament prefix path, and the libraries might be available on the standard LD_LIBRARY_PATH. There should be a way to look for the libraries in the LD_LIBRARY_PATH as a backup, if they are not found in ament prefix path.

Completion Criteria

Typesupport libraries can be picked up from LD_LIBRARY_PATH if not found in ament prefix path.

@fujitatomoya
Copy link
Contributor

@adityapande-1995 out of curiosity,

When using other build systems like bazel, there may not be a ament prefix path

bazel is officially supported? there are many build tools...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants