gaoxiang12 / ORBSLAM2_with_pointcloud_map

830 stars 346 forks source link

Error when I make the ORB_SLAM2_modified #30

Open Cw-zero opened 6 years ago

Cw-zero commented 6 years ago

Compile errors are as follows when it compiles to 84%

[ 80%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/pointcloudmapping.cc.o Linking CXX shared library ../lib/libORB_SLAM2.so [ 80%] Built target ORB_SLAM2 Scanning dependencies of target mono_kitti [ 84%] Building CXX object CMakeFiles/mono_kitti.dir/Examples/Monocular/mono_kitti.cc.o Linking CXX executable ../Examples/Monocular/mono_kitti /usr/bin/ld: warning: libopencv_core.so.3.3, needed by ../Thirdparty/DBoW2/lib/libDBoW2.so, may conflict with libopencv_core.so.2.4 /usr/bin/ld: CMakeFiles/mono_kitti.dir/Examples/Monocular/mono_kitti.cc.o: undefined reference to symbol '_ZN2cv6String10deallocateEv' /usr/local/lib/libopencv_core.so.3.3: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: [../Examples/Monocular/mono_kitti] 错误 1 make[1]: [CMakeFiles/mono_kitti.dir/all] 错误 2 make: *** [all] 错误 2 chenwei@Ubuntu14:~/project/ORBSLAM2_with_pointcloud_map-master/orbslam2_modified/ORB_SLAM2_modified/build$

Cw-zero commented 6 years ago

I have solved the problem. My computer's OpenCV is 3.3, but SLAM requires OpenCV 2.4. So I change it in the CMakeLists.txt and succeed.