Compiling the opencv_contrib on ubuntu20.04

Because I can only use two links,the message is not enough ablove.
The errors are below:

/home/hitcrt/Downloads/opencv_contrib-4.7.0/modules/mcc/include/opencv2/mcc/checker_model.hpp:95:29: note:     ‘virtual cv::Point2f cv::mcc::CChecker::getCenter()’
   95 |     CV_WRAP virtual Point2f getCenter() = 0;
      |                             ^~~~~~~~~
make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:76: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:8282: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
make: *** [Makefile:166: all] Error 2