+
Skip to content

CMake search path wrongly separated #70

@nschoe

Description

@nschoe

Hi,

I have been packaging a few additional ROS packages to the ones already packaged (I'm happy to make a merge request if you're interested), this has worked very well, but I have an issue for pcl_ros.

My fork and the branch in which I have packaged the additional ROS packages can be found here: https://github.com/nschoe/nixpkgs/tree/airapkgs_PCL_ROS . Everything is in pkgs/development/ros-modules/ as you started it.
I'm linking to my own github because I haven't double-checked the code enough to offer a merge request (but I can, if it's better).
Just so you know: I have freshly (like yesterday) git pull your nixos-unstable branch, and merged it in my PCL_ROS branch. So this branch is up-to-date with yours.

So pcl_ros depends on pcl_conversions, so I have packaged pcl_conversions too (https://github.com/nschoe/nixpkgs/blob/airapkgs_PCL_ROS/pkgs/development/ros-modules/pcl_conversions/default.nix).

When I create a simple nix-shell with pcl_conversions in buildInputs, it work no problem.

Then I packaged pcl_ros (https://github.com/nschoe/nixpkgs/blob/airapkgs_PCL_ROS/pkgs/development/ros-modules/pcl_ros/default.nix), but when I put pcl_ros in my shell.nix's buildInputs, this time I get an error (here's the end of it):

-- Found PythonInterp: /nix/store/nrl0l79a48924xb0897ap572xf29ciir-python3-3.6.6/bin/python (found version "3.6.6")
-- Using PYTHON_EXECUTABLE: /nix/store/nrl0l79a48924xb0897ap572xf29ciir-python3-3.6.6/bin/python
-- Using default Python package layout
-- Found PY_em: /nix/store/bsga2zrxh8nrd76j3ixv7yqi5h8bwa7k-empy-3.3.2/lib/python3.6/site-packages/em.py
-- Using empy: /nix/store/bsga2zrxh8nrd76j3ixv7yqi5h8bwa7k-empy-3.3.2/lib/python3.6/site-packages/em.py
-- Using CATKIN_ENABLE_TESTING: OFF
-- catkin 0.7.11
CMake Error at /nix/store/fa7sbb3fhaxwmqh1v096gcyc2rd606wc-pcl_conversions-1.6.2/share/pcl_conversions/cmake/pcl_conversionsConfig.cmake:113 (message):
  Project 'pcl_conversions' specifies
  '/nix/store/m8fkjfznkx88qmn6mi4x9q7njamirxjx-eigen-3.3.4//nix/store/m8fkjfznkx88qmn6mi4x9q7njamirxjx-eigen-3.3.4/include/eigen3'
  as an include dir, which is not found.  It does neither exist as an
  absolute directory nor in
  '/nix/store/fa7sbb3fhaxwmqh1v096gcyc2rd606wc-pcl_conversions-1.6.2//nix/store/m8fkjfznkx88qmn6mi4x9q7njamirxjx-eigen-3.3.4//nix/store/m8fkjfznkx88qmn6mi4x9q7njamirxjx-eigen-3.3.4/include/eigen3'.
  Check the issue tracker
  'https://github.com/ros-perception/perception_pcl/issues' and consider
  creating a ticket if the problem has not been reported yet.
Call Stack (most recent call first):
  /nix/store/m71xl0jjv1kax8zpk4fr6qsj89f5kk2d-catkin-0.7.11/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  CMakeLists.txt:37 (find_package)


-- Configuring incomplete, errors occurred!
See also "/tmp/nix-build-pcl_ros-1.6.2.drv-0/source/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/nix-build-pcl_ros-1.6.2.drv-0/source/build/CMakeFiles/CMakeError.log".
builder for '/nix/store/ishzgx575g1iyxmw44626lmy48nvz73b-pcl_ros-1.6.2.drv' failed with exit code 1
error: build of '/nix/store/ishzgx575g1iyxmw44626lmy48nvz73b-pcl_ros-1.6.2.drv' failed

The weird thing is when it looks for Project 'pcl_conversions' specifies '/nix/store/m8fkjfznkx88qmn6mi4x9q7njamirxjx-eigen-3.3.4//nix/store/m8fkjfznkx88qmn6mi4x9q7njamirxjx-eigen-3.3.4/include/eigen3' as an include dir.
There seems to be a problem separating the paths: it is missing an : between ...njamirxjx-eigen-3.3.4/ and /nix/store....

I'm a bit lost as to where I should look : where is the mistake likely to be made?
Also why does pcl_conversions compile and work without problem in nix-shell, but fails when it's a dependency of pcl_ros?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载