ubuntu 20.04 pangolin安装 cmakeLists

一些依赖的安装

sudo apt-get install libglew-dev
sudo apt-get install libboost-dev libboost-thread-dev libboost-filesystem-dev
sudo apt-get install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev
# The most important part, or error[1], error[2]
sudo apt-get install libpng-dev

找一个文件夹下载pangolin

git clone https://github.com/stevenlovegrove/Pangolin.git

build

cd Pangolin
mkdir build
cd build

cmake

cmake -DCPP11_NO_BOOST=1 ..

make

make -j

这样就安装好了,然后为了能include头文件,在CmakeLists.txt中加入如下

find_package(Pangolin REQUIRED)
include_directories( ${Pangolin_INCLUDE_DIRS})
target_link_libraries(VisionSLAM ${Pangolin_LIBRARIES}) #改成自己的项目名

然后就能include了

#include <pangolin/pangolin.h>
上一篇:windows10 环境下忘记enkins密码处理方法


下一篇:Ubutu 16 安装VMware Tools的详细教程