[ 86%] Built target opencv_calib3d_pch_dephelp
[ 86%] Built target pch_Generate_opencv_calib3d [ 88%] Built target opencv_calib3d
[ 88%] Built target opencv_perf_calib3d_pch_dephelp [ 88%] Built target pch_Generate_opencv_perf_calib3d
[ 89%] Built target opencv_perf_calib3d
[ 90%] Built target pch_Generate_opencv_test_calib3d [ 92%] Built target opencv_test_calib3d
[ 92%] Built target opencv_stitching_pch_dephelp
[ 92%] Built target pch_Generate_opencv_stitching
[ 93%] Built target opencv_stitching
[ 93%] Built target opencv_test_stitching_pch_dephelp
[ 93%] Built target pch_Generate_opencv_test_stitching [ 93%] Built target opencv_test_stitching
[ 93%] Built target opencv_perf_stitching_pch_dephelp [ 94%] Built target pch_Generate_opencv_perf_stitching
[ 95%] Built target opencv_perf_stitching
[ 95%] Built target opencv_videostab_pch_dephelp [ 95%] Built target pch_Generate_opencv_videostab
[ 96%] Built target opencv_videostab [ 96%] Built target opencv_test_videostab_pch_dephelp
[ 96%] Built target pch_Generate_opencv_test_videostab [ 97%] Built target opencv_test_videostab
[ 97%] Built target gen_opencv_python_source [ 97%] Linking CXX shared module ..\..\lib\python3\cv2.cp35-win32.pyd
collect2.exe: error: ld returned 5 exit status
mingw32-make[2]: *** [modules\python3\CMakeFiles\opencv_python3.dir\build.make:104: lib/python3/cv2.cp35-win32.pyd] Error 1 mingw32-make[2]: *** Deleting file 'lib/python3/cv2.cp35-win32.pyd'
mingw32-make[1]: *** [CMakeFiles\Makefile2:7584: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2
(py3cv4) D:\Python-Virtual\OpenCV-4\opencv\opencv\build>
This is the error occuring. I'm stuck at 97% and trying to build the python module but it doesn't say anything either about what seems to be failing.