When using GoCV: fatal error: opencv2/opencv.hpp: No such file or directory

I have the same thing in golang when every I try to compile an opencv project

gocv.io/x/gocv

In file included from aruco.cpp:1:
aruco.h:5:10: fatal error: opencv2/opencv.hpp: No such file or directory
5 | #include <opencv2/opencv.hpp>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

@Dave_Duke ,

unsure about gocv (and we probably cant help much)
but looking here it should be

export CGO_CPPFLAGS="-I/usr/local/include/opencv4"

(also wrong in the tutorial you mention)

both receipes also seem to rely on pkg-config, which is no more supported by default

anyway, issues should go here