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

Build error in ubuntu 16.04 #64

Closed
hyx007 opened this issue Dec 12, 2017 · 4 comments
Closed

Build error in ubuntu 16.04 #64

hyx007 opened this issue Dec 12, 2017 · 4 comments

Comments

@hyx007
Copy link

hyx007 commented Dec 12, 2017

Hi, I'm trying to run segmatch on ubuntu 16.04,I notice that I should run catkin config --merge-devel before catkin build -DCMAKE_BUILD_TYPE=Release laser_mapper,and I did so, But I still get error "Error: The current devel space layout, linked,is incompatible with the configured layout, merged." . How to fix this error? Thanks a lot !

@hyx007
Copy link
Author

hyx007 commented Dec 12, 2017

I think I have found where the problem is. I delete the .catkin_tools and devel,build folders,Then run catkin config --merge-devel and catkin build -DCMAKE_BUILD_TYPE=Release laser_mapper it works, maybe because when I build this package first time I did not notice the note and generate wrong .catkin_tools folder. Anyway, it works, but I found this package depends on OpenCV2, but default OpenCV version of kinetic is OpenCV3, that's the problem I need to fix next or do you have any suggestions to fix this?

@rdube
Copy link
Contributor

rdube commented Dec 12, 2017

Hi @YuxiHuang1 yes that might very well be the issue. I have moved the note up in the installation instructions in order to avoid this problem in the future.

As for the opencv issue, what error are you getting exactly? Have you installed libopencv-dev?

@hyx007
Copy link
Author

hyx007 commented Dec 12, 2017

Hi,@rdube,thanks for your reply, I have download opencv 2.4.9 fromhttps://github.com/opencv/opencv/releases/tag/2.4.9, and intall it from the source,and change find_package(OpenCV 2 REQUIRED) to find_package(OpenCV 2.4.9 REQUIRED) in segmatch CMakeLists.txt, then I can compile the package successfully.

@rdube
Copy link
Contributor

rdube commented Dec 12, 2017

Great! Happy to see that you managed to compile segmatch! I'll hint to the present thread if someone has the same issue in the future. It would normally be preferable to open a PR to fix this issue but that will not be necessary here as we will update segmatch in the near future and remove the dependency to opencv. Can we close this issue? Thank you!

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