Skip to content
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

Patching of ros-melodic/cartographer fails #696

Closed
flabrosse opened this issue Oct 25, 2018 · 8 comments
Closed

Patching of ros-melodic/cartographer fails #696

flabrosse opened this issue Oct 25, 2018 · 8 comments

Comments

@flabrosse
Copy link
Contributor

Trying to install cartographer and the patching fails. This is patch /var/t
mp/portage/ros-melodic/cartographer-1.0.0/files/0002-Explicitly-link-gmock-and-g
test.patch, which is there.

It tries with -p0 ("can't find file to patch at input line 14"), -p1 ("checking file CMakeLists.txt \n Hunk #1 FAILED at 183."), -p2, -p3 and -p4 ( all with "can't find file to patch at input line 14").

I guess the CMakeFile.txt file has changed and the patch does not work any more?

@allenh1
Copy link
Contributor

allenh1 commented Oct 25, 2018

@allenh1 allenh1 closed this as completed Oct 25, 2018
@allenh1 allenh1 reopened this Oct 25, 2018
@allenh1
Copy link
Contributor

allenh1 commented Oct 25, 2018

@flabrosse my bad! Accidentally closed it on you.

I guess the CMakeFile.txt file has changed and the patch does not work any more?

This is almost for sure what happened. Would you mind fixing the patch for me? If not, I can fix it in the near future.

@flabrosse
Copy link
Contributor Author

This patch seems to work (patching does not fail):

0002-Explicitly-link-gmock-and-gtest.patch.txt

I say "seems" because the build fails with Ceres missing SuiteSparse. So I added sparse (and lapack) as USE flags for ceres-solver, but emerging that fails on spqr with apparently a bug in automake. Still looking into that.

@flabrosse
Copy link
Contributor Author

spqr-1.3.1 emerges fine.

ceres-solver needs to be emegred with sparse (and lapack) USE flags.

The patch works. cartographer_ros now emerged.

@allenh1
Copy link
Contributor

allenh1 commented Oct 26, 2018

ceres-solver needs to be emegred with sparse (and lapack) USE flags.

Hm... Ok, would you mind adding that USE flag to the appropriate rosdep in the ros/rosdistro repo?

The patch works. cartographer_ros now emerged.

Great! Let me know if you get it working. I was having trouble with it when I last tried (kept getting a std::bad_alloc exception), but that is probably some weirdness on my system's configuration.

@flabrosse
Copy link
Contributor Author

I have never used git and so have no idea how to add the USE flags in the repo (and at the moment life is too short to learn git). I'm also not sure where the USE flags need to be added.

I ran the first of the two demos given at the bottom of https://google-cartographer-ros.readthedocs.io/en/latest/ and that worked fine, after emerging cartographer_rviz.

@allenh1
Copy link
Contributor

allenh1 commented Oct 26, 2018

I have never used git and so have no idea how to add the USE flags in the repo (and at the moment life is too short to learn git). I'm also not sure where the USE flags need to be added.

Alright, I don't mind doing it then. ;) I'll tag you in the PR so you can see the process.

I ran the first of the two demos given at the bottom of https://google-cartographer-ros.readthedocs.io/en/latest/ and that worked fine, after emerging cartographer_rviz.

Great!

@allenh1
Copy link
Contributor

allenh1 commented Oct 26, 2018

Once ros/rosdistro#19354 is merged, I'll swap your patch in and regenerate the packages.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants