Problem with opencv c++ compilation

Did you add the include path to your makefile?
Default install location for OpenCV is /usr/local.
Try to add this to your make file:

INCLUDE = -I/usr/local/opencv4

legow00