-
Notifications
You must be signed in to change notification settings - Fork 49
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
Do not rely on external
symlink for RMW_LIBRARY_PATH
#65
Do not rely on external
symlink for RMW_LIBRARY_PATH
#65
Conversation
We use a different relative path to librmw_cyclonedds.so to be compatible with Bazel's `--nolegacy_external_runfiles` option. Since we depend on the respective target, it can still be found in the runfiles tree, only in a different place. Fixes mvukov#64
This is a good solution for the moment, thanks. I hoped we could use https://github.com/bazelbuild/bazel/blob/master/tools/cpp/runfiles/runfiles_src.h, but looks like it's difficult to be used. Plus |
Using the runfiles library would make us more robust against changes to the layout of the runfiles tree. It's possible it would also enable some support for I wonder how you would want to integrate the runfiles library here. Change the patch that currently injects We would probably need a combination of Btw, |
I quickly tried it out. This goes into a
And here's
Output is this:
So it gives us an absolute path. Not too bad. Not sure it would solve @matzipan's use-case from #57. |
Btw, in real code I would wrap the raw pointer in a |
And another btw, I found this talk useful: https://www.youtube.com/watch?v=5NbgUMH1OGo |
Thanks for the link! :) I fixed the issue in a more general way in #66 . |
We use a different relative path to librmw_cyclonedds.so to be compatible with Bazel's
--nolegacy_external_runfiles
option. Since we depend on the respective target, it can still be found in the runfiles tree, only in a different place.Fixes #64