Fatal error: opencv2/alphamat.hpp: No such file or directory

cmake only creates build files (Makefile).

if you run something with sudo, it’s got to be make install. make isn’t cmake. different things.