felixendres / rgbdslam_v2

RGB-D SLAM for ROS
GNU General Public License v3.0
935 stars 399 forks source link

g2ofork build isuue #110

Closed abdur4373 closed 5 years ago

abdur4373 commented 5 years ago

Hello!

I am getting g20 build error on running nice make -j2 install which is as follows: Scanning dependencies of target viewer_library [ 37%] Building CXX object g2o/apps/g2o_viewer/CMakeFiles/viewer_library.dir/g2o_qglviewer.cpp.o [ 38%] Building CXX object g2o/apps/g2o_viewer/CMakeFiles/viewer_library.dir/main_window.cpp.o /home/maq/RGBD_SLAMV2/g2ofork/g2o/apps/g2o_viewer/main_window.cpp: In member function ‘void MainWindow::on_actionOrthographic_triggered(bool)’: /home/maq/RGBD_SLAMV2/g2ofork/g2o/apps/g2o_viewer/main_window.cpp:378:23: error: ‘ProjType’ is not a class or namespace ProjType t = flag ? ProjType::ORTHOGRAPHIC : ProjType::PERSPECTIVE; ^ /home/maq/RGBD_SLAMV2/g2ofork/g2o/apps/g2o_viewer/main_window.cpp:378:48: error: ‘ProjType’ is not a class or namespace ProjType t = flag ? ProjType::ORTHOGRAPHIC : ProjType::PERSPECTIVE; ^ g2o/apps/g2o_viewer/CMakeFiles/viewer_library.dir/build.make:104: recipe for target 'g2o/apps/g2o_viewer/CMakeFiles/viewer_library.dir/main_window.cpp.o' failed make[2]: [g2o/apps/g2o_viewer/CMakeFiles/viewer_library.dir/main_window.cpp.o] Error 1 CMakeFiles/Makefile2:564: recipe for target 'g2o/apps/g2o_viewer/CMakeFiles/viewer_library.dir/all' failed make[1]: [g2o/apps/g2o_viewer/CMakeFiles/viewer_library.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 39%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/edge_se3_offset.cpp.o [ 39%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/vertex_pointxyz.cpp.o [ 40%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/parameter_camera.cpp.o [ 40%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/parameter_stereo_camera.cpp.o [ 41%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/edge_se3_pointxyz.cpp.o [ 42%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/edge_se3_pointxyz_disparity.cpp.o [ 42%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/edge_se3_pointxyz_depth.cpp.o [ 43%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/edge_se3_prior.cpp.o [ 43%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/edge_se3_lotsofxyz.cpp.o [ 44%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/edge_pointxyz.cpp.o [ 44%] Building CXX object g2o/types/slam3d/CMakeFiles/types_slam3d.dir/types_slam3d.cpp.o [ 45%] Linking CXX shared library ../../../../lib/libg2o_types_slam3d.so [ 45%] Built target types_slam3d Makefile:127: recipe for target 'all' failed make: [all] Error 2

I have followed Error#76. i am using 'cmake .. -DCMAKE_INSTALL_PREFIX=$G2O_REPO_DIR/install -DG2O_BUILD_EXAMPLES=OFF'.

Error#64: sudo apt-get install libsuitesparse-dev libeigen3-dev: libsuitesparse-dev is already the newest version (1:4.4.6-1). libeigen3-dev is already the newest version (3.3~beta1-2).

Result of : sudo apt-get purge ros-kinetic-libg2o libqglviewer-dev: Package 'libqglviewer-dev' is not installed, so not removed Package 'ros-kinetic-libg2o' is not installed, so not removed

I have deleted build directory many times and tried with fresh cmake and make but of no use. Kindly help.

I have ubuntu 16.04 and ros-kinetic on my system.

abdur4373 commented 5 years ago

Just resolved the issue. I dont know what was the problem. Removed the libraries installed during installation and started from the scratch. Compilation worked out fine. Will move on to use RGBD SLAM now.