https://github.com/raulmur/ORB_SLAM2?tab=readme-ov-file
For WSL, C++11 compiler is not by default installed. Run
sudo apt-get update
sudo apt-get install build-essential
and double check g++ version
!! Use Pangolin v0.6 on 16.04 and check Building section
git clone https://github.com/stevenlovegrove/Pangolin.git --branch v0.6
I found this useful https://gist.github.com/umardx/dfce1dc74d925629a9eb8ad409740b47
There's an if-else bug in OpenCVCompilerOptions, comment out line 21 and 22
## Fix Flow control statements are not properly nested issue
sed -i '21,22 s/^/#/' cmake/OpenCVCompilerOptions.cmake
At the last step, may encounter symlink issue:
sudo chown $USER:$USER /usr/lib/wsl/lib # change permission
rm libcuda.so.1
rm libcuda.so
ln -s libcuda.so.1.1 libcuda.so.1 --force
ln -s libcuda.so.1.1 libcuda.so --force
check microsoft/WSL#5548
Download, unzip, then
mkdir build
cd build
cmake ..
make
sudo make install
If accidentally installed 3.4.0, raulmur/ORB_SLAM2#317 Refer to this raulmur/ORB_SLAM2#144 when error of usleep not defined
https://askubuntu.com/questions/1137931/unable-to-install-libopencv-nonfree-dev-in-ubuntu-16-04
Make sure to setup github SSH before cloning git@github.com:uzh-rpg/dslam_open.git