ubuntu16.04下安装pangolin
安装教程,具体可以参考github上pangolin的安装文档 https://github.com/stevenlovegrove/Pangolin
首先要安装pangolin的各种依赖项
Glew
sudo apt-get install libglew-dev
CMake
sudo apt-get install cmake
Python2 / Python3
sudo apt-get install libpython2.7-dev
可选依赖项(非必须安装,可以不安装)
FFMPEG (For video decoding and image rescaling)
sudo apt-get install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev
DC1394 (For firewire input)
sudo apt-get install libdc1394-22-dev libraw1394-dev
libuvc (For cross-platform webcam video input via libusb)
git://github.com/ktossell/libuvc.git
安装依赖之后就可以下载代码,从github上获取最新代码
git clone https://github.com/stevenlovegrove/Pangolin.git cd Pangolin mkdir build cd build cmake .. cmake --build .
安装完成
如何在cmake工程中调用pangolin
find_package(Pangolin REQUIRED)
include_directories(${Pangolin_INCLUDE_DIRS})
# Build examples
add_executable(test main.cpp)
target_link_libraries(test ${Pangolin_LIBRARIES})