lifunudt / CORB-SLAM

Other
75 stars 32 forks source link

fatal error: corbslam_client/corbslam_insert.h: No such file or directory #7

Open gaotao19890725 opened 4 years ago

gaotao19890725 commented 4 years ago

@ junzhang2016 According to your suggestion, I still can not build the project. I do not know why, can you give me some suggestion. Thank you a million.

gaotao@gaotao-desktop:~/data/catkin_ws_CORB_SLAM$ catkin_make corbslam_client Base path: /home/gaotao/data/catkin_ws_CORB_SLAM Source space: /home/gaotao/data/catkin_ws_CORB_SLAM/src Build space: /home/gaotao/data/catkin_ws_CORB_SLAM/build Devel space: /home/gaotao/data/catkin_ws_CORB_SLAM/devel Install space: /home/gaotao/data/catkin_ws_CORB_SLAM/install

Running command: "make cmake_check_build_system" in "/home/gaotao/data/catkin_ws_CORB_SLAM/build"

-- Using CATKIN_DEVEL_PREFIX: /home/gaotao/data/catkin_ws_CORB_SLAM/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic -- This workspace overlays: /opt/ros/melodic -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/gaotao/data/catkin_ws_CORB_SLAM/build/test_results -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.28 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~ -- ~~ traversing 2 packages in topological order: -- ~~ - corbslam_client -- ~~ - corbslam_server -- ~~~~~~~~~~~~~ -- +++ processing catkin package: 'corbslam_client' -- ==> add_subdirectory(CORB-SLAM/corbslam_client) Build type: Release -- Using flag -std=c++11. -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Boost version: 1.65.1 -- Found the following Boost libraries: -- serialization -- system -- filesystem -- corbslam_client: 1 messages, 2 services -- +++ processing catkin package: 'corbslam_server' -- ==> add_subdirectory(CORB-SLAM/corbslam_server) Build type: Release -- Using flag -std=c++11. -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Boost version: 1.65.1 -- Found the following Boost libraries: -- serialization -- system -- filesystem -- corbslam_server: 1 messages, 2 services -- Configuring done -- Generating done -- Build files have been written to: /home/gaotao/data/catkin_ws_CORB_SLAM/build

Running command: "make corbslam_client -j4 -l4" in "/home/gaotao/data/catkin_ws_CORB_SLAM/build"

[ 8%] Building CXX object CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LocalMapping.cc.o [ 8%] Building CXX object CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/Tracking.cc.o [ 12%] Building CXX object CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/System.cc.o [ 16%] Building CXX object CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LoopClosing.cc.o In file included from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/KeyFrame.h:31:0, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/MapPoint.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/FrameDrawer.h:25, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Viewer.h:25, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Tracking.h:28, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/src/Tracking.cc:22: /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Cache.h:20:10: fatal error: corbslam_client/corbslam_insert.h: No such file or directory

include "corbslam_client/corbslam_insert.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. In file included from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/MapPoint.h:27:0, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/KeyFrame.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/LocalMapping.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/src/LocalMapping.cc:21: /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Cache.h:20:10: fatal error: corbslam_client/corbslam_insert.h: No such file or directory

include "corbslam_client/corbslam_insert.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/build.make:86: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/Tracking.cc.o' failed make[3]: [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/Tracking.cc.o] Error 1 make[3]: Waiting for unfinished jobs.... CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/build.make:110: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LocalMapping.cc.o' failed make[3]: *** [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LocalMapping.cc.o] Error 1 In file included from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/MapPoint.h:27:0, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/KeyFrame.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/LoopClosing.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/src/LoopClosing.cc:21: /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Cache.h:20:10: fatal error: corbslam_client/corbslam_insert.h: No such file or directory

include "corbslam_client/corbslam_insert.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/build.make:134: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LoopClosing.cc.o' failed make[3]: *** [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LoopClosing.cc.o] Error 1 In file included from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/KeyFrame.h:31:0, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/MapPoint.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/FrameDrawer.h:25, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Viewer.h:25, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Tracking.h:28, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/System.h:29, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/src/System.cc:23: /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Cache.h:20:10: fatal error: corbslam_client/corbslam_insert.h: No such file or directory

include "corbslam_client/corbslam_insert.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/build.make:62: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/System.cc.o' failed make[3]: [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/System.cc.o] Error 1 CMakeFiles/Makefile2:1780: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/all' failed make[2]: [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/all] Error 2 CMakeFiles/Makefile2:1792: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/rule' failed make[1]: [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/rule] Error 2 Makefile:799: recipe for target 'corbslam_client' failed make: [corbslam_client] Error 2 Invoking "make corbslam_client -j4 -l4" failed gaotao@gaotao-desktop:~/data/catkin_ws_CORB_SLAM$

conallwang commented 4 years ago

@ junzhang2016 According to your suggestion, I still can not build the project. I do not know why, can you give me some suggestion. Thank you a million.

gaotao@gaotao-desktop:~/data/catkin_ws_CORB_SLAM$ catkin_make corbslam_client Base path: /home/gaotao/data/catkin_ws_CORB_SLAM Source space: /home/gaotao/data/catkin_ws_CORB_SLAM/src Build space: /home/gaotao/data/catkin_ws_CORB_SLAM/build Devel space: /home/gaotao/data/catkin_ws_CORB_SLAM/devel Install space: /home/gaotao/data/catkin_ws_CORB_SLAM/install

Running command: "make cmake_check_build_system" in "/home/gaotao/data/catkin_ws_CORB_SLAM/build"

-- Using CATKIN_DEVEL_PREFIX: /home/gaotao/data/catkin_ws_CORB_SLAM/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic -- This workspace overlays: /opt/ros/melodic -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/gaotao/data/catkin_ws_CORB_SLAM/build/test_results -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.28 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~ -- ~~ traversing 2 packages in topological order: -- ~~ - corbslam_client -- ~~ - corbslam_server -- ~~~~~~~~~~~~~ -- +++ processing catkin package: 'corbslam_client' -- ==> add_subdirectory(CORB-SLAM/corbslam_client) Build type: Release -- Using flag -std=c++11. -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Boost version: 1.65.1 -- Found the following Boost libraries: -- serialization -- system -- filesystem -- corbslam_client: 1 messages, 2 services -- +++ processing catkin package: 'corbslam_server' -- ==> add_subdirectory(CORB-SLAM/corbslam_server) Build type: Release -- Using flag -std=c++11. -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Boost version: 1.65.1 -- Found the following Boost libraries: -- serialization -- system -- filesystem -- corbslam_server: 1 messages, 2 services -- Configuring done -- Generating done -- Build files have been written to: /home/gaotao/data/catkin_ws_CORB_SLAM/build

Running command: "make corbslam_client -j4 -l4" in "/home/gaotao/data/catkin_ws_CORB_SLAM/build"

[ 8%] Building CXX object CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LocalMapping.cc.o [ 8%] Building CXX object CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/Tracking.cc.o [ 12%] Building CXX object CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/System.cc.o [ 16%] Building CXX object CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LoopClosing.cc.o In file included from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/KeyFrame.h:31:0, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/MapPoint.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/FrameDrawer.h:25, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Viewer.h:25, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Tracking.h:28, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/src/Tracking.cc:22: /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Cache.h:20:10: fatal error: corbslam_client/corbslam_insert.h: No such file or directory

include "corbslam_client/corbslam_insert.h"

^~~~~~~~~~~ compilation terminated. In file included from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/MapPoint.h:27:0, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/KeyFrame.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/LocalMapping.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/src/LocalMapping.cc:21: /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Cache.h:20:10: fatal error: corbslam_client/corbslam_insert.h: No such file or directory

include "corbslam_client/corbslam_insert.h"

^~~~~~~~~~~ compilation terminated. CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/build.make:86: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/Tracking.cc.o' failed make[3]: [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/Tracking.cc.o] Error 1 make[3]: Waiting for unfinished jobs.... CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/build.make:110: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LocalMapping.cc.o' failed make[3]: *** [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LocalMapping.cc.o] Error 1 In file included from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/MapPoint.h:27:0, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/KeyFrame.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/LoopClosing.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/src/LoopClosing.cc:21: /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Cache.h:20:10: fatal error: corbslam_client/corbslam_insert.h: No such file or directory

include "corbslam_client/corbslam_insert.h"

^~~~~~~~~~~ compilation terminated. CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/build.make:134: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LoopClosing.cc.o' failed make[3]: *** [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/LoopClosing.cc.o] Error 1 In file included from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/KeyFrame.h:31:0, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/MapPoint.h:24, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/FrameDrawer.h:25, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Viewer.h:25, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Tracking.h:28, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/System.h:29, from /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/src/System.cc:23: /home/gaotao/data/catkin_ws_CORB_SLAM/src/CORB-SLAM/corbslam_client/include/Cache.h:20:10: fatal error: corbslam_client/corbslam_insert.h: No such file or directory

include "corbslam_client/corbslam_insert.h"

^~~~~~~~~~~ compilation terminated. CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/build.make:62: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/System.cc.o' failed make[3]: [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/src/System.cc.o] Error 1 CMakeFiles/Makefile2:1780: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/all' failed make[2]: [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/all] Error 2 CMakeFiles/Makefile2:1792: recipe for target 'CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/rule' failed make[1]: [CORB-SLAM/corbslam_client/CMakeFiles/corbslam_client.dir/rule] Error 2 Makefile:799: recipe for target 'corbslam_client' failed make: [corbslam_client] Error 2 Invoking "make corbslam_client -j4 -l4" failed gaotao@gaotao-desktop:~/data/catkin_ws_CORB_SLAM$

To solve this problem, You can run catkin_make in catkin_ws/ first.

Then, "corbslam_insert.h" will be generated in catkin_ws/devel/include/corbslam_client and catkin_ws/devel/include/corbslam_server.

And you should add these directories to the include_dictionaries in corbslam_client/CMakeLists.txt.

Finally, you return to catkin_ws, and run catkin_make corbslam_client. It will be work.