NamDinhRobotics / proSLAM

BSD 3-Clause "New" or "Revised" License
75 stars 24 forks source link

the error when i build the project #1

Open RaymondChanSZU666 opened 4 years ago

RaymondChanSZU666 commented 4 years ago

Hi When i build the project using this commond: catkin build srrg_proslam

The first 6 packages have built successfully,but when it built the 7th package, it will have a error:

`Errors << srrg_proslam:cmake /home/crf/slam/pro/catkin_ws_pro/logs/srrg_proslam/build.cmake.005.log srrg_proslam|build type: 'RELEASE' srrg_proslam|adding flags for 'RELEASE': '-std=c++11 -Wall -Werror -pedantic -Ofast -DNDEBUG' srrg_proslam|using Eigen version: '3' (/usr/include/eigen3) srrg_proslam|using ROS version: 'melodic' (building nodes) srrg_proslam|using ROS OpenCV version: '3.2.0' (ROS) srrg_proslam|xfeatures2d library not found, using ORB instead of BRIEF descriptors srrg_cmake_modules|searching for g2o in: /home/crf/source/libraries/g2o srrg_cmake_modules|g2o not found srrg_proslam|found CMake 3+: assuming new g2o ownership model srrg_proslam|using catkin g2o CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:305 (message): catkin_package() include dir 'CSPARSE_INCLUDE_DIR-NOTFOUND' does not exist relative to '/home/crf/slam/pro/catkin_ws_pro/src/srrg_proslam' Call Stack (most recent call first): /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package) CMakeLists.txt:177 (catkin_package)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CSPARSE_INCLUDE_DIR used as include directory in directory /home/crf/slam/pro/catkin_ws_pro/src/srrg_proslam `

how can i solve this problem? thank you very much

StefanXR commented 4 years ago

I fixed it with: sudo apt-get install libsuitesparse-dev

RaymondChanSZU666 commented 4 years ago

Thank you for your reply.

But after solved this problem,another problem arised.

The following is the error:

Errors     << srrg_proslam:make /home/crf/slam/pro/catkin_ws_pro/logs/srrg_proslam/build.make.006.log /home/crf/slam/pro/catkin_ws_pro/devel/.private/srrg_proslam/lib/libsrrg_proslam_map_optimization_library.so: undefined reference to g2o::csparse_extension::cs_chol_workspace(cs_di_sparse const*, cs_di_symbolic const*, int*, double*)' /home/crf/slam/pro/catkin_ws_pro/devel/.private/srrg_proslam/lib/libsrrg_proslam_map_optimization_library.so: undefined reference tog2o::csparse_extension::writeCs2Octave(char const, cs_di_sparse const, bool)' /home/crf/slam/pro/catkin_ws_pro/devel/.private/srrg_proslam/lib/libsrrg_proslam_map_optimization_library.so: undefined reference to `g2o::csparse_extension::cs_cholsolsymb(cs_di_sparse const, double, cs_di_symbolic const, double, int*)' collect2: error: ld returned 1 exit status make[2]: [/home/crf/slam/pro/catkin_ws_pro/devel/.private/srrg_proslam/lib/srrg_proslam/srrg_proslam_app] Error 1 make[1]: [executables/CMakeFiles/srrg_proslam_app.dir/all] Error 2 make: *** [all] Error 2

I am a green hand,thanks for your patient.

------------------ 原始邮件 ------------------ 发件人: "StefanXR"<notifications@github.com>; 发送时间: 2020年3月15日(星期天) 中午12:17 收件人: "NamDinhRobotics/proSLAM"<proSLAM@noreply.github.com>; 抄送: "陈瑞锋"<765886113@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [NamDinhRobotics/proSLAM] the error when i build the project (#1)

I fixed it with: sudo apt-get install libsuitesparse-dev

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.