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”

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值