because /usr/include does not have opencv2 folder or opencv2/xxx.h header file
If you installed opencv4, you might have installed the opencv installation path on /usr/local/ during installation.
/usr/local/include/opencv4/opencv2 folder can be found to have the xxx.h header file!
따라서
#include <opencv4/opencv2/xxxx.h>
====================================================
c++ include 기본 경로를 보는 명령어는
echo | gcc -v -x c -E -
echo | gcc -v -x c++ -E -
=================================================
make했을때 경로에러가 난다면 Makefile 에
Top comments (0)