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

we actually need neither of it.
problem is not the code, but “how to configure your ide”