An error when build opencv4.5.2and opencv-contrib4.5.2

System information (version)
  • OpenCV =4.5.2
  • Operating System / Platform =Ubuntu 18.04:
Detailed description

when i run cmake-- build to build opencv4.5.2 and opencv-contrib4.5.2 ,this error happend at 98%.

modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 1 CMakeFiles/Makefile2:9817: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2 Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

And except that , there also are many problems ,this is the logfile: error-logfiles/logfiles·1 at main · AtariaLee/error-logfiles · GitHub

i would appreciate for your help !!