-
Notifications
You must be signed in to change notification settings - Fork 25
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
CMAKE_PREFIX_PATH issue with ros_comm #75
Comments
|
@akru no I have added both |
Hum, okay so I have reverted to But this doesn't work anymore: it complains it cannot find
This is weird because so far this has been working for months. Now suddenly it doesn't build anymore because of |
For using |
Thanks for your answer @akru. Unfortunately, I did not understand how manage to build the projects in your catkin workspace. Do you ever use For now, these last 3-4 months, I have been making a But maybe this the wrong way to go.
All three of them have worked at some point. But now I think I realize this was due to some dependencies that I was adding which would maybe cross or something. So... what's the "correct" way to develop in your opinion? Thanks again for your hard work. I'm taking notes on all of this and when it's sorted I'll definitely write something about it: there must be others trying to develop with ROS packages under nixOS! |
Thank you for your interest, ROS development under NixOS can be really hard for someone who don't known too much about nixpkgs internals. Writing an articles is a very very good point in my opinion. So. I'm not sure that only one "correct" way really exist. In my opinion Nix provide a sea of opportunities. I try to describe my approach here. It's experience of year of using NixOS for ROS development. The first, let we have a two sets of packages: the stable (should not be changed during development, like a Packages from stable set should be installed during Packages from development set can be placed anywhere in user home directory. It's regular catkin workspace and it can be created via command Trouble shooting Of course described approach isn't ideal.
|
Thanks @akru for this feedback, this is interesting. I still have some questions regarding what you said:
Let's consider the Then you said :
In order to do this, it means you have From what I understand, then you said it is only necessary to Third question: when you talk about "activation procedure", do you mean
When you say "after workspace activation", am I correct thinking that you meant first enter I'm not too familiar with how meta package can be used, I think I need to read more about this. |
Hi @akru sorry it's me again (I hope I'm helping making things go further will all this).
It seems I have an issue with
ros_comm
package concerning theCMAKE_PREFIX_PATH
.Here is a simple
shell.nix
file:A very simple file with just
ros_comm
anddiagnostic_msgs
as dependencies.Enter the shell with
nix-shell
.Verify that
CMAKE_PREFIX_PATH
does havediagnostic_msgs
inside:(the list is huge_ so I redacted it, but
grep
ping it finds it).Now source the
setup.bash
of packageros_comm
(I believe this is the normal operation to run anything ROS-related):source /nix/store/cs6lnrddrqr3d5fh9q9vra2mwi52x8h2-ros_comm-1.14.4/setup.bash
And now,
diagnostic_msgs
disappeared fromCMAKE_PREFIX_PATH
:My intuition is that it's related to the recent migration, I'll try changing the version back to a previous one and see if this helps.
The text was updated successfully, but these errors were encountered: