Last active
September 23, 2021 11:34
-
-
Save RomanVolkov/20990a1e417d814ecbdb35ce5fba027c to your computer and use it in GitHub Desktop.
compile orb slam 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd / | |
export DEBIAN_FRONTEND=noninteractive | |
ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime | |
apt update | |
apt install -y cmake git wget libpython2.7-dev g++ libssl-dev libboost-all-dev | |
mkdir /src | |
cd /src | |
wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2 | |
tar -xf eigen-3.4.0.tar.bz2 | |
rm eigen-3.4.0.tar.bz2 | |
cd eigen-3.4.0 | |
mkdir build | |
cd build | |
cmake .. | |
make install | |
cd /src | |
git clone https://github.com/opencv/opencv.git | |
cd opencv | |
git checkout 3.4.15 | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . | |
make install | |
cd /src | |
git clone https://github.com/UZ-SLAMLab/ORB_SLAM3.git | |
cd ORB_SLAM3 | |
git checkout tags/v0.3-beta | |
wget https://gist.githubusercontent.com/RomanVolkov/c93bd36c4744286dd66b15a72399d7ac/raw/810527b39f95f2772df9865c6d8fe11ebd316092/patch.patch | |
git apply ./patch.patch | |
sh ./build.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment