ubuntu 1604 编译运行DynSLAM全过程记录

首先进入github下载dynSLAM的code
git clone –recursive https://github.com/AndreiBarsan/DynSLAM
但是,此时遇到了第一个错误:github中的子模块下载不下来,从github中找到需要的子模块,手动下载后放在DynSLAM/src/的对应文件夹中,
eigen找不到可以找到eigen官方的code放进去
编译Pangolin
编译dynSLAM遇到imread is not a member of cv 添加头文件
#include “opencv2/imgproc/imgproc.hpp”
#include “opencv2/opencv.hpp”
遇到错误png++/png.hpp no such file or directory
执行:
sudo apt-get install libpng-dev
sudo apt-get install libpng++-dev
sudo apt-get install libpng16-dev
注意:此安装会卸载大量的ros包/库 目前尚不清楚为何
如果安装libpng16-dev后不能解决这个问题则在libpng官网下载最新版本的libpng本地编译安装libpng
遇到nvcc redefined std则在cuda相关的cmakelist中${CUDA_NVCC_FLAGS}; -std=c++11)删掉std=c++11即可解决
遇到‘setw’ was not declared in this scope
添加头文件iomanip
遇到’resize’ is not a member of ‘cv’
‘cvtColor’ is not a member of ‘cv’
‘putText’ is not a member of ‘cv’
这三种错误
添加头文件
#include “opencv2/imgproc/imgproc.hpp”
#include “opencv2/opencv.hpp”

你可能感兴趣的:(ubuntu编译各种工程)