首页 > 解决方案 > ORB-SLAM2 openCV安装错误

问题描述

我正在尝试 ORB SLAM2 来进行姿势估计的进一步处理。我在 Ubuntu 中安装它,在安装了 python、openGL、openCV、C++ 编译器、Pangolin、Eigen3、BLAS 和 LAPACK 之后,我在安装 DBoW2 时遇到了 make 错误。错误如下。

 root@wehubs:/src/orbslam2/DBoW2/build# cmake ..
-- Boost version: 1.54.0
DLib library not found in the system, it will be downloaded on build
-- Configuring done
-- Generating done
-- Build files have been written to: /src/orbslam2/DBoW2/build
root@wehubs:/src/orbslam2/DBoW2/build# 
root@wehubs:/src/orbslam2/DBoW2/build# make
[  6%] Performing update step for 'DLib'
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 13%] Performing configure step for 'DLib'
-- Configuring done
-- Generating done
-- Build files have been written to: /src/orbslam2/DBoW2/build/dependencies/src/DLib-build
[ 20%] Performing build step for 'DLib'
[  3%] Building CXX object CMakeFiles/DLib.dir/src/DVision/BRIEF.cpp.o
In file included from /src/orbslam2/DBoW2/build/dependencies/src/DLib/src/DVision/BRIEF.cpp:13:0:
/src/orbslam2/DBoW2/build/dependencies/src/DLib/include/DVision/BRIEF.h:32:28: fatal error: opencv2/core.hpp: No such file or directory
 #include <opencv2/core.hpp>
                            ^
compilation terminated.
make[5]: *** [CMakeFiles/DLib.dir/src/DVision/BRIEF.cpp.o] Error 1
make[4]: *** [CMakeFiles/DLib.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [dependencies/src/DLib-stamp/DLib-build] Error 2
make[1]: *** [CMakeFiles/DLib.dir/all] Error 2
make: *** [all] Error 2

标签: opencvcmakeubuntu-14.04orbslam

解决方案


推荐阅读