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

Make sure to ament_export_libraries. #73

Merged
merged 1 commit into from
May 8, 2018
Merged

Make sure to ament_export_libraries. #73

merged 1 commit into from
May 8, 2018

Conversation

clalancette
Copy link
Contributor

ament_export_libraries() ends up generating a setup.sh file
for each library that exports LD_LIBRARY_PATH. This is
important when building in isolated mode so that downstream
consumers of the libraries can find the library at runtime.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

ament_export_libraries() ends up generating a setup.sh file
for each library that exports LD_LIBRARY_PATH.  This is
important when building in isolated mode so that downstream
consumers of the libraries can find the library at runtime.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@stonier
Copy link
Owner

stonier commented May 8, 2018

Seems a bit redundant to export the interfaces AND the libraries. Should ament be adding LD_LIBRARY_PATH for exported interfaces? Fine with having this in here for now though, can always revert it quickly later if interfaces gets that support.

@stonier stonier merged commit c29e0ef into stonier:devel May 8, 2018
@stonier
Copy link
Owner

stonier commented May 8, 2018

Will need a PR over in ecl_lite too.

@clalancette
Copy link
Contributor Author

Seems a bit redundant to export the interfaces AND the libraries. Should ament be adding LD_LIBRARY_PATH for exported interfaces?

It's a good question, I don't know the answer. It's probably worth bringing up in ament_cmake to see what is expected to happen.

@clalancette clalancette deleted the export-libraries branch May 8, 2018 16:23
@clalancette
Copy link
Contributor Author

Will need a PR over in ecl_lite too.

Oops, yeah. I had to do fixes over there too, PR upcoming.

@stonier stonier mentioned this pull request Sep 16, 2018
stonier added a commit to stonier/ecl_lite that referenced this pull request Sep 27, 2018
stonier added a commit that referenced this pull request Sep 27, 2018
* [infra] rever the workaround (PR #73) for interface library exports

Hitherto would cause a problem on builds with isolated installs, so
you are supposed to explicitly state the target name, refer to

- ament/ament_cmake#132
- https://github.com/ament/ament_cmake/pull/135/files

Colcon/bouncy doesn't reproduce our earlier problems since it exports all of the appropriate paths regardless. This however, should be the right fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants