-
Notifications
You must be signed in to change notification settings - Fork 53
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
Build fails if ROS 2 setup script has been sourced #60
Comments
Cool, I understand. IMO two actions can be taken:
Would you mind making a contribution PR for this? Thanks a lot! |
Thanks for your reply. I agree - both of those seem like reasonable actions, but I guess the second would be better. |
Unsetting The best way I can think of to fix I'll create a PR now that makes this change in the Makefile, hopefully in a way that won't break anything else! |
Steps to reproduce the issue
Building the micro-ROS component after sourcing the ROS 2 setup scripts into the environment causes the build to fail while compiling
builtin_interfaces
.Running
idf.py build
for a second time then fails withfatal error: rcl/rcl.h: No such file or directory
.E.g. the following fails during build, but will work fine if the first line is excluded:
Additional information
This has briefly been covered previously in #1, and I suspect it could have also been the cause of the unexplained problems described in #53 (although that build might have just failed for some other reason).
While somehow changing the build scripts to work while the ROS 2 environment is present would obviously be best, for now just mentioning explicitly in the README that the environment should be clean and the ROS setup script should not be sourced before running the build would be good.
I'm sure I'm not the only person who sources the ROS scripts in their
.zshrc
file (or equivalent), or might assume that they should be present when working with anything ROS related, which sometimes makes it more of an explicit task to not source the scripts, rather than the other way around.The text was updated successfully, but these errors were encountered: