-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Failed to build ORB-SLAM2 UBUNTU 16.04 #202
Comments
@haythemsgh I don't have this problem but I did meet other problems during installation. I solved them by adding |
Another solution to make it work with OpenCV 3 is to delete the 2.4 dependency in this line: https://github.com/raulmur/ORB_SLAM2/blob/master/CMakeLists.txt#L31 I tried it in Ubuntu 16.04 with ROS Kinetic (which includes OpenCV 3) and it worked without problems. |
@drinking-tea Thank you for your response, but the thing is that I want to build ORBslam2 with ROS Kinetic so I want to build it with opencv 3.1. In file included from /usr/include/eigen3/Eigen/Core:297:0, I've tried another solution to change SparseMatrix::Index to int in ORB_SLAM2/Thirdparty/g2o/g2o/solvers/linear_solver_eigen.h but nothing worked. |
Try doing the opposite. I fixed it by changing |
@cranil Thank you very much .Thanks to your solution I succeeded to build orbslam2 in ubuntu 16.04 without errors. |
The solution of @drinking-tea is a way to solve this! The true problem of this error is link to the wrong Eigen lib directory. Maybe your system has installed more than one eigen with another version before? so that the newer version doesn't have
You can edit CMakeLists.txt to set |
I also have similar issue I am attaching a file which contains my bash output. Can someone suggest a fix? |
I stuck on this error any idea on this error: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libOpenGL.so: undefined reference to |
I got a very similar error with TUM Dataset |
Hi,
I want to install Orbslam2 on ubuntu 16.04.
I've installed all the necessary dependencies. At first i've got error to build the third library Dbow2 because i've installed opencv 3.1 then i've fixed by installing opencv 2.4.11 and modified the cmakelists by replacing find_package(opencv required) by opencv 2.4.11 and it worked. But when it comes to building orbslam it stopped at 81% and show me this message.
The text was updated successfully, but these errors were encountered: