Orb_slam2: Failed to build ORB_SLAM on UBUNTU 16.04

Created on 28 Jul 2017  路  4Comments  路  Source: raulmur/ORB_SLAM2

config.h not found!

Scanning dependencies of target rospack_genmsg_libexe
[ 0%] Built target rospack_genmsg_libexe
Scanning dependencies of target rosbuild_precompile
[ 0%] Built target rosbuild_precompile
Scanning dependencies of target ORB_SLAM
[ 5%] Building CXX object CMakeFiles/ORB_SLAM.dir/src/main.cc.o
In file included from /home/pulkit/ORB_SLAM/ORB_SLAM/Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37:0,
from /home/pulkit/ORB_SLAM/ORB_SLAM/Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/pulkit/ORB_SLAM/ORB_SLAM/Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/pulkit/ORB_SLAM/ORB_SLAM/include/LoopClosing.h:33,
from /home/pulkit/ORB_SLAM/ORB_SLAM/include/LocalMapping.h:26,
from /home/pulkit/ORB_SLAM/ORB_SLAM/include/Tracking.h:31,
from /home/pulkit/ORB_SLAM/ORB_SLAM/src/main.cc:29:
/home/pulkit/ORB_SLAM/ORB_SLAM/Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:26: fatal error: ../../config.h: No such file or directory
compilation terminated.
CMakeFiles/ORB_SLAM.dir/build.make:118: recipe for target 'CMakeFiles/ORB_SLAM.dir/src/main.cc.o' failed
make[2]: * [CMakeFiles/ORB_SLAM.dir/src/main.cc.o] Error 1
CMakeFiles/Makefile2:227: recipe for target 'CMakeFiles/ORB_SLAM.dir/all' failed
make[1]:
[CMakeFiles/ORB_SLAM.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *
* [all] Error 2

Kindly Suggest ?

Most helpful comment

Have you executed build.sh?

All 4 comments

Have you executed build.sh?

Try adding the Thirdparty folder or Thirdparty/g2o folder into the include directories list in the CMakeLists.txt

Did you able to run it? @pulkitver1991

@EugeneLew
Thanks for your response, and sorry for being late. I solved the issue using the same idea..Mark this issue as Closed. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jinfagang picture jinfagang  路  4Comments

kilimeters picture kilimeters  路  3Comments

Zico2017 picture Zico2017  路  3Comments

imrasp picture imrasp  路  6Comments

EasternH picture EasternH  路  5Comments