ubuntu下slam⼗四讲环境安装
第0章,安装c++与cmake,建⽴环境#安装c++⽀持
sudo apt install build-essential
#安装cmake
sudo apt install cmake
第3章,包括eigen3,opengl,opencv以及pangolin#安装eigen3
sudo apt install libeigen3-dev#安装opengl
安装必要的依赖以及opengl本体sudo apt-get install libgl1-mesa-devsudo apt-get install freeglut3-devsudo apt-get install libglew-dev libsdl2-dev libsdl2-image-dev libglm-dev libfreetype6-dev
#安装pangolin安装pangolin需要cpp, eighen3, opengl,安装完成之后,正式安装pangolingit clone https:///stevenlovegrove/Pangolin
直接链接github较慢,请⾃⾏寻找github的镜像站。
安装其他依赖 sudo apt-get install wayland-protocols
然后进⾏源码的编译。
编译结束后,sudo vim /etc/ld.so.conf
并在⽂件中加⼊/usr/local/lib
保存退出后,运⾏sudo ldconfig 第四章,包括fmt,sophus
安装fmtgit clone https:///fmtlib/fmt
安装sophussophus需要安装依赖:fmt
git clone https:///strasdat/Sophus
第四章案例运⾏成功,如fmt报错,则需要在CMakeLists.txt中加⼊target_link_libraries(trajectoryError ${Sophus_LIBRARIES} fmt)提供fmt⽀持。第四章完结。