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 issue -- ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:10: fatal error: ../../config.h: No such file or #1094

Open
suvasis opened this issue Oct 25, 2023 · 2 comments

Comments

@suvasis
Copy link

suvasis commented Oct 25, 2023

I am running into compilation issue on ubuntu 20.4

Has the following error been fixed?

@ubuntu:~/tools/ORB_SLAM2/build$ make -j$(nproc)
Scanning dependencies of target ORB_SLAM2
[ 6%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/LocalMapping.cc.o
[ 6%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/System.cc.o
[ 9%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Tracking.cc.o
[ 12%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/LoopClosing.cc.o
In file included from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37,
from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/suvasis/tools/ORB_SLAM2/include/LoopClosing.h:34,
from /home/suvasis/tools/ORB_SLAM2/src/LoopClosing.cc:21:
/home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:10: fatal error: ../../config.h: No such file or directory
30 | #include "../../config.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:102: CMakeFiles/ORB_SLAM2.dir/src/LoopClosing.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37,
from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/suvasis/tools/ORB_SLAM2/include/LoopClosing.h:34,
from /home/suvasis/tools/ORB_SLAM2/include/LocalMapping.h:26,
from /home/suvasis/tools/ORB_SLAM2/src/LocalMapping.cc:21:
/home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:10: fatal error: ../../config.h: No such file or directory
30 | #include "../../config.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37,
from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/suvasis/tools/ORB_SLAM2/include/LoopClosing.h:34,
from /home/suvasis/tools/ORB_SLAM2/include/LocalMapping.h:26,
from /home/suvasis/tools/ORB_SLAM2/include/System.h:33,
from /home/suvasis/tools/ORB_SLAM2/include/Viewer.h:28,
from /home/suvasis/tools/ORB_SLAM2/include/Tracking.h:28,
from /home/suvasis/tools/ORB_SLAM2/src/Tracking.cc:22:
/home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:10: fatal error: ../../config.h: No such file or directory
30 | #include "../../config.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:89: CMakeFiles/ORB_SLAM2.dir/src/LocalMapping.cc.o] Error 1
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:76: CMakeFiles/ORB_SLAM2.dir/src/Tracking.cc.o] Error 1
In file included from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37,
from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/suvasis/tools/ORB_SLAM2/include/LoopClosing.h:34,
from /home/suvasis/tools/ORB_SLAM2/include/LocalMapping.h:26,
from /home/suvasis/tools/ORB_SLAM2/include/Tracking.h:31,
from /home/suvasis/tools/ORB_SLAM2/include/System.h:29,
from /home/suvasis/tools/ORB_SLAM2/src/System.cc:23:
/home/suvasis/tools/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:10: fatal error: ../../config.h: No such file or directory
30 | #include "../../config.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:63: CMakeFiles/ORB_SLAM2.dir/src/System.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:250: CMakeFiles/ORB_SLAM2.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

@supermice
Copy link

supermice commented Oct 25, 2023 via email

@lx-r
Copy link

lx-r commented Oct 25, 2023 via email

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

3 participants