克隆代码到本地
git clone https://github.com/gaoxiang12/slambook2.git
//更新子模块
git submodule init
git submodule update
安装依赖项
安装Pangolin所需依赖项
sudo apt-get install libglew-dev
sudo apt-get install libboost-dev libboost-thread-dev libboost-filesystem-dev
编译依赖库
mkdir build
cd build
cmake ..
make -j2
//上述命令执行完后执行
sudo make install