Open RollingIsland opened 4 years ago
You don't need to install g2o separately to run ORB-SLAM2 since it has the source code in the subfolder Thirdparty. Just make sure that g2o is compiled (see build.sh script).
@mgladkova Thanks for your kind reply! Well, I wonder whether it's no need to install g2o separately, or it's just wrong not to use the g2o code in ORB-SLAM2? I'm new to SLAM & g2o library.
In this context I am more inclined to say that it is highly recommended to use the g2o version provided by ORB-SLAM2, unless you would like to dig into the code of ORB-SLAM2 and make it compatible with the vcpkg version of g2o.
We haven't done it with vcpkg, but under Linux and macOS we regularly change the version shipped with ORBSLAM and CCM-SLAM. There are several reasons, including the fact that the older version of g2o triggers a lot of warnings in Eigen.
Chaning the code just takes a few minutes of work. The main difficulties are:
@sjulier Thanks for your reply! I will try as you told.
Let me know what happens. I haven't tried vcpkg. It's on my list to try.
I installed g2o with vcpkg successfully but when I tried to build ORB-SLAM2 it went wrong. Has the code been updated in vcpkg? Or what else possible reason for the error shown below?