Код: Выделить всё
sudo apt install libopencv-dev libopencv-contrib-dev
Код: Выделить всё
#include
int main(){
cv::Mat mat;
return 0;
}
Код: Выделить всё
algos/math/tt_opencv.cpp:2:9: fatal error: opencv2/opencv.hpp: No such file or directory
2 | #include
| ^~~~~~~~~~~~~~~~~~~~ compilation terminated.
Код: Выделить всё
g++ tt_opencv.cpp -o test
Подробнее здесь: https://stackoverflow.com/questions/786 ... sing-cmake
Мобильная версия