下载所需库
1 | # 下载依赖库 |
make gui
1 | sudo apt install cmake-qt-gui |
下载opencv安装包
1 | sudo git clone https://codeload.github.com/opencv/opencv |
编译
1 | cmake ../opencv-4.10.0 -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local # new |
build success
安装
1 | # 编译安装 |
成功效果
other
- 1.cmake
1 | wget https://cmake.org/files/v3.22/cmake-3.22.1.tar.gz |
- 2.Eigen3
1 | git clone https://gitlab.com/libeigen/eigen/-/releases/3.4.0 |
- 3.Sophus
1 | sudo git clone https://github.com/strasdat/Sophus.git |
- g2o
1 | sudo git clone https://github.com/RainerKuemmerle/g2o/archive/refs/tags/20230223_git.zip |
other
1 | // vim ./include/file.cpp |
debug model lib
1 | sudo apt install libgtk2.0-dev pkg-config |
build win exe on unbuntu
1 |
|
open gui on ubuntu
1 | nautilus /path/to/directory |