-
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 search path wrongly separated #70
Comments
Hi, @nschoe! Glad to see your improvement! Yes, I catch this error some month ago too. In my opinion it possible to fix via patching CMake scripts provided by |
Thanks for your fast response time, @akru :)
Can you tell me a bit more ? (Sorry I'm quite new to NixOS, I try to learn more, but everything takes forever to me ^^). (P.S. how did you dirty-fix it yourself ?) EDIT: are you sure it's in the files in |
Of course we are interested in growing ROS package base in airapkgs repository. Building open community of Robotics engineers and entusiasts is our main aim. I'll glad to see your PR at https://github.com/airalab/airapkgs. I'll try to reproduce this error at weekends and write results here. |
Okay no problem : I'll submit as soon as the error is fixed and I cleaned my files. Okay thanks for taking a look. I'll give it a small break because I've been on it for the whole day, then I'll try again. Hope to solve this soon. |
Hi @akru sorry for the delay, some unexpected events synchronized. I On your side, did you manage to build EDIT: the fails I have all seem to be |
All right, so I have fixed all the
|
I try to build your branch diff --git a/pkgs/development/ros-modules/pcl_conversions/default.nix b/pkgs/development/ros-modules/pcl_conversions/default.nix
index de22e71a1db..f985baf3e1a 100644
--- a/pkgs/development/ros-modules/pcl_conversions/default.nix
+++ b/pkgs/development/ros-modules/pcl_conversions/default.nix
@@ -1,12 +1,11 @@
{ stdenv
, mkRosPackage
, fetchFromGitHub
-, catkin
+, eigen
+, boost
+, pcl
, cmake_modules
-, eigen3_3
-, boost167
, pcl_msgs
-, pcl
, dynamic_reconfigure
, message_filters
, nodelet
@@ -28,7 +27,12 @@ in mkRosPackage {
sha256 = "0wl79qlj1j2a79w3ppvxwb4ifigmrycq82zrzrdzkajcjb4i568z";
};
- propagatedBuildInputs = [ catkin cmake_modules eigen3_3 boost167 pcl_msgs pcl dynamic_reconfigure message_filters nodelet nodelet_topic_tools ];
+ postPatch = ''
+ sed -i '/find_package(Eigen3 REQUIRED)/d' CMakeLists.txt
+ '';
+
+ buildInputs = [ eigen boost pcl ];
+ propagatedBuildInputs = [ cmake_modules pcl_msgs dynamic_reconfigure message_filters nodelet nodelet_topic_tools ];
meta = with stdenv.lib; {
description = "PCL (Point Cloud Library) ROS interface stack."; This patch works well. |
Thanks @akru for the patch, I applied it and tried to rebuild Could you explain briefly why / how this works? I'm asking because, now that The error message is
So it's very similar. I have tried to "replicate" your patch adding the So if you could give me a hint why it worked in your case, I'd be glad :) EDIT: how come you delete EDIT2: let me rephrase: right now, entering my nix-shell with Unfortunately I'm lacking the intuition of where is is that Thanks again for your time :) |
Hi @nschoe! As you can see ROS and NixOS have a lot of catkin/cmake magic and a lot of things are not what they seem. Unfortunately in NixOS So, in my opinion the reason of your error somewhere in cmake template files, I'll try to found them. |
@akru thanks for answering.
And since my issues seem to be related to a weird story of include dirs, I thought about deleting the line about Eigen, so here's my
It looks like deleting the In the meantime, maybe this can help you find the culprit? EDIT: fix syntax |
Hey, in case it helps: I got this problem too when using I got:
I solved it by giving
|
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
yournixos-unstable
branch, and merged it in myPCL_ROS
branch. So this branch is up-to-date with yours.So
pcl_ros
depends onpcl_conversions
, so I have packagedpcl_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
withpcl_conversions
inbuildInputs
, 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 putpcl_ros
in myshell.nix
'sbuildInputs
, this time I get an error (here's the end of it):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 innix-shell
, but fails when it's a dependency ofpcl_ros
?The text was updated successfully, but these errors were encountered: