Missing files after following the official installation instructions

that seems to be some kind of ide.
did you remember to adjust the include path somewhere there to

/usr/local/include/opencv4 ??

try on a plain console, using

g++ my.cpp -I/usr/local/include/opencv4 -lopencv_core [more opencv libs] -o myprog