Cross-compile ORB_SLAM3 for ZCU104 with Pangolin removed.
- Ubuntu 22.04
- GCC-11.3
- Install cross-compiler for aarch64
sudo apt install g++-11-aarch64-linux-gnu
- Download and extract the sysroot by one of the links below
- Modify
aarch64.cmake
on line 4 ~ 6, specify the path of the sysroot and cross-compilerset(CMAKE_SYSROOT <path to zcu104_pynq_3.0.1>) set(CMAKE_C_COMPILER <path to aarch64-linux-gnu-gcc-11>) set(CMAKE_CXX_COMPILER <path to aarch64-linux-gnu-g++-11>)
- Run build
./build.sh
- Boot the board with PYNQ 3.0.1 image.
- Install OpenCV-4.4.0.
- Clone this repository to the board.
- Upload and replace the
lib
,Thirdparty
, andExamples
folders with the newly built one. - Follow the instruction by ORB_SLAM3 to run the examples.