[博客链接]:
https://blog.csdn.net/qq_38373843/article/details/82792720
sudo apt-get install libeigen3-dev
sudo updatedb
locate eigen3
#在CMakeLists.txt文件中添加Eigen头文件的目录
include_directories("/usr/include/eigen3")
下载
OpenCV-3.4.0下载地址(国内镜像)
安装依赖库
sudo apt-get install build-essential libgtk2.0-dev libvtk5-dev libjpeg-dev libtiff5-dev libjasper-dev libopenexr-dev libtbb-dev
sudo apt install libtiff5-dev
unzip opencv-3.4.0
cd opencv-3.4.0
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
make -j2
sudo make install
# 在CMakeLists.txt中添加
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
git clone http://github.com/strasdat/Sophus.git
cd Sophus
git checkout a621ff
mkdir build
cd build
cmake ..
make -j2
sudo make install
# 在CMakeLists.txt中添加
find_package( Sophus REQUIRED )
include_directories( ${Sophus_INCLUDE_DIRS} )
sudo apt-get install liblapack-dev libsuitesparse-dev libcxsparse3.1.4 libgflags-dev libgoogle-glog-dev libgtest-dev
git clone https://github.com/ceres-solver/ceres-solver.git
cd ceres-solver
mkdir build
cd build
cmake ..
make -j2
sudo make install
# 首先将文件夹cmake_modules复制到工程文件夹下,然后在CMakeLists.txt中添加
list( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules )
find_package( Ceres REQUIRED )
include_directories( ${CERES_INCLUDE_DIRS} )
sudo rm -rf /usr/local/include/ceres /usr/local/lib/libceres.a
sudo apt-get install libqt4-dev qt4-qmake libqglviewer-dev libsuitesparse-dev libcxsparse3.1.4 libcholmod3.0.6
git clone https://github.com/RainerKuemmerle/g2o.git
cd g2o
mkdir build
cd build
cmake ..
make -j2
sudo make install
# 首先将文件夹cmake_modules复制到工程文件夹下,然后在CMakeLists.txt中添加
list( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules )
find_package( G2O REQUIRED )
include_directories(
${G2O_INCLUDE_DIRS}
"/usr/include/eigen3"
)
sudo apt-get install libpcl-dev pcl-tools
# 在CMakeLists.txt中添加
find_package( PCL REQUIRED COMPONENT common io )
include_directories( ${PCL_INCLUDE_DIRS} )
add_definitions( ${PCL_DEFINITIONS} )
sudo apt-get install libglew-dev libboost-dev libboost-thread-dev libboost-filesystem-dev
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake -DCPP11_NO_BOOST= 1 ..
make -j2
sudo make install
下载
VScode官网: 下载64位 .deb格式的文件.
安装并启动
# 安装.deb文件
sudo dpkg -i code_1.44.1-1586789296_amd64.deb
# 启动VScode
code
# 启动后可以在VScode里面安装插件: 汉化, C/C++, Python等.
后续进行pytorch的学习!!!