opencv - 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
解决方案
推荐阅读
- python-3.x - UART不发送字节
- node.js - cookie 与会话存储的混淆
- python - 出于某种原因,Tkinter 按钮激活了另一个功能
- spring-boot - Bootstrap 3 样式未使用 Spring boot 和 WebJars 加载
- google-cloud-platform - Cloud Datastore - 删除数据存储中不存在的实体会导致错误吗?
- uml - 这些 UML 图正确吗?
- linux - Affectiva 每秒帧数下降
- android-studio - 我无法在我的 Android Studio 安装中安装模拟器,没有出现在 sdkmanager 列表中
- php - 图片文件未显示在上传文件夹中
- python - Heroku Procfile 不进入目录?