OpenvSLAM编译与安装
1.安装依赖
sudo apt update -y
sudo apt upgrade -y --no-install-recommends
//basic dependencies
sudo apt install -y build-essential pkg-config cmake git wget curl unzip
//g2o dependencies
sudo apt install -y libatlas-base-dev libsuitesparse-dev
//OpenCV dependencies
sudo apt install -y libgtk-3-dev
sudo apt install -y ffmpeg
sudo apt install -y libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libavresample-dev
//eigen dependencies
sudo apt install -y gfortran
//other dependencies
sudo apt install -y libyaml-cpp-dev libgoogle-glog-dev libgflags-dev
//(if you plan on using PangolinViewer)
//Pangolin dependencies
sudo apt install -y libglew-dev
//(if you plan on using SocketViewer)
//Protobuf dependencies
sudo apt install -y autogen autoconf libtool
//Node.js
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install -y nodejs
还有另一篇ubuntu18安装opencv的依赖
2.安装Eigen
cd /path/to/working/dir
wget -q https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.bz2
tar xf eigen-3.3.7.tar.bz2
rm