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

compilation error #8

Open
aaravrav142 opened this issue Jun 20, 2019 · 2 comments
Open

compilation error #8

aaravrav142 opened this issue Jun 20, 2019 · 2 comments

Comments

@aaravrav142
Copy link

aaravrav142 commented Jun 20, 2019

Hi,

I am trying to run this on Ubuntu 16 ROS kinetic but always gettting the same message when doing catkin_make.

Not sure why its not able to find ros libraries because I can see that catkin required packages are there in the CMakeList.

[  0%] Building CXX object mono-slam/CMakeFiles/mono-slam.dir/src/vslamRansac.cpp.o
/home/arav/catkin_ws/src/mono-slam/src/monoslam_ransac.cpp:1:21: fatal error: ros/ros.h: No such file or directory
compilation terminated.
mono-slam/CMakeFiles/mono-slam.dir/build.make:62: recipe for target 'mono-slam/CMakeFiles/mono-slam.dir/src/monoslam_ransac.cpp.o' failed
make[2]: *** [mono-slam/CMakeFiles/mono-slam.dir/src/monoslam_ransac.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/arav/catkin_ws/src/mono-slam/src/vslamRansac.cpp:4:21: fatal error: ros/ros.h: No such file or directory
compilation terminated.
mono-slam/CMakeFiles/mono-slam.dir/build.make:86: recipe for target 'mono-slam/CMakeFiles/mono-slam.dir/src/vslamRansac.cpp.o' failed
make[2]: *** [mono-slam/CMakeFiles/mono-slam.dir/src/vslamRansac.cpp.o] Error 1
CMakeFiles/Makefile2:1577: recipe for target 'mono-slam/CMakeFiles/mono-slam.dir/all' failed
make[1]: *** [mono-slam/CMakeFiles/mono-slam.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  0%] Built target _velodyne_msgs_generate_messages_check_deps_VelodyneScan
[  0%] Built target _velodyne_msgs_generate_messages_check_deps_VelodynePacket
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j3" failed

Thanks

@abougouffa
Copy link

Hi,

I faced the same problem (on Ubuntu 18.10 / ROS Melodic), I fixed it by modifying the CMakeLists.txt, I created a pull request.

@aaravrav142
Copy link
Author

Hi @abougouffa ,
Thanks for the pull request. With your pull on the CMakeList it compiles fine. However, I am unable to see the mapping process after running the rosrun with my image topic. Any pointers on this? 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