Build mkdir build cd build cmake -DCMAKE_TOOLCHAIN_FILE=../txt-toolchain.cmake .. cmake --build . Manual build g++ -I/usr/include/opencv -lopencv_core -lm -o opencv-ver opencv-ver.cpp