Skip to content

CMAKE_PREFIX_PATH issue with ros_comm #75

@nschoe

Description

@nschoe

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 the CMAKE_PREFIX_PATH.

Here is a simple shell.nix file:

with import /home/nschoe/airapkgs {};

stdenv.mkDerivation {
  name = "papyrus-kheops-env";

  buildInputs = [
                  diagnostic_msgs
                  ros_comm
                ];

  shellHook = ''
    printf ${ros_comm}
  '';
}

A very simple file with just ros_comm and diagnostic_msgs as dependencies.

Enter the shell with nix-shell.
Verify that CMAKE_PREFIX_PATH does have diagnostic_msgs inside:

$> echo $CMAKE_PREFIX_PATH  | grep --color=auto diagnostic_msgs
[snip] /nix/store/hhrybrzqxp6zb080xg4g5d946yg436x8-diagnostic_msgs-1.12.6 [snip]

(the list is huge_ so I redacted it, but grepping it finds it).

Now source the setup.bash of package ros_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 from CMAKE_PREFIX_PATH:

$> echo $CMAKE_PREFIX_PATH  | grep --color=auto diagnostic_msgs
(empty return)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions