#887·ORB_SLAM2

ORB_SLAM2 build error - OpenCV not found

Author: DimitarDevPCreated Apr 16, 2020Updated Mar 14, 2025

I have built all the required dependencies listed in the Dependencies.md file including OpenCV v 4.3.0 (latest). When i tried to build ORB_SLAM2 in a /build/ folder using the following command: sudo cmake -S ../ -B ./ I got the following error:

CMake Error at CMakeLists.txt:35 (message):
  OpenCV > 2.4.3 not found.

I googled and found an existing issue which basically set up the lib paths in env, so i did that but it didnt work out for me.

OS: Linux (Manjaro) OpenCV: 4.3.0 (without contrib) CMake: 3.16.4 All other dependencies have the latest version.