hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, OpenCV Contrib, and OpenVINO.
https://gocv.io
Other
6.72k stars 867 forks source link

error when running win_build_opencv.cmd #977

Open slrem opened 2 years ago

slrem commented 2 years ago

[ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/trace.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/types.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/datafile.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/filesystem.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/logtagconfigparser.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/logtagmanager.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/samples.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/va_intel.cpp.obj [ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.obj [ 10%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj [ 10%] Linking CXX shared library ....\bin\libopencv_core455.dll [ 10%] Built target opencv_core Scanning dependencies of target opencv_flann [ 10%] Building CXX object modules/flann/CMakeFiles/opencv_flann.dir/src/flann.cpp.obj [ 10%] Building CXX object modules/flann/CMakeFiles/opencv_flann.dir/src/miniflann.cpp.obj [ 10%] Building RC object modules/flann/CMakeFiles/opencv_flann.dir/vs_version.rc.obj [ 10%] Building CXX object modules/flann/CMakeFiles/opencv_flann.dir/opencv_flann_main.cpp.obj [ 10%] Linking CXX shared library ....\bin\libopencv_flann455.dll [ 10%] Built target opencv_flann [ 10%] Processing OpenCL kernels (imgproc) Scanning dependencies of target opencv_imgproc [ 10%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.cpp.obj [ 10%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.dispatch.cpp.obj [ 10%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/approx.cpp.obj [ 10%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/bilateral_filter.dispatch.cpp.obj [ 10%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/blend.cpp.obj [ 10%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/box_filter.dispatch.cpp.obj [ 10%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/canny.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/clahe.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color_hsv.dispatch.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color_lab.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color_rgb.dispatch.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color_yuv.dispatch.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/colormap.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/connectedcomponents.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/contours.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/convhull.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/corner.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/cornersubpix.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/demosaicing.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/deriv.cpp.obj [ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/distransform.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/drawing.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/emd.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/featureselect.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.dispatch.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/floodfill.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/gabor.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/generalized_hough.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/geometry.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/grabcut.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hershey_fonts.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/histogram.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hough.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.obj [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/intelligent_scissors.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/intersection.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/linefit.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/lsd.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/main.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/matchcontours.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/median_blur.dispatch.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/min_enclosing_triangle.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/moments.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/morph.dispatch.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/phasecorr.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/pyramids.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/rotcalipers.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/samplers.cpp.obj [ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/segmentation.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/shapedescr.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/smooth.dispatch.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/spatialgradient.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/subdivision2d.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/sumpixels.dispatch.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/tables.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/templmatch.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/thresh.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/utils.cpp.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/opencl_kernels_imgproc.cpp.obj [ 14%] Building RC object modules/imgproc/CMakeFiles/opencv_imgproc.dir/vs_version.rc.obj [ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/opencv_imgproc_main.cpp.obj [ 14%] Linking CXX shared library ....\bin\libopencv_imgproc455.dll [ 14%] Built target opencv_imgproc Scanning dependencies of target opencv_intensity_transform [ 14%] Building CXX object modules/intensity_transform/CMakeFiles/opencv_intensity_transform.dir/src/bimef.cpp.obj [ 15%] Building CXX object modules/intensity_transform/CMakeFiles/opencv_intensity_transform.dir/src/intensity_transform.cpp.obj [ 15%] Building RC object modules/intensity_transform/CMakeFiles/opencv_intensity_transform.dir/vs_version.rc.obj [ 15%] Building CXX object modules/intensity_transform/CMakeFiles/opencv_intensity_transform.dir/opencv_intensity_transform_main.cpp.obj [ 15%] Linking CXX shared library ....\bin\libopencv_intensity_transform455.dll [ 15%] Built target opencv_intensity_transform Scanning dependencies of target opencv_ml [ 15%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/ann_mlp.cpp.obj [ 15%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/boost.cpp.obj [ 15%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/data.cpp.obj [ 15%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/em.cpp.obj [ 15%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/gbt.cpp.obj [ 15%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/inner_functions.cpp.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/kdtree.cpp.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/knearest.cpp.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/lr.cpp.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/nbayes.cpp.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/rtrees.cpp.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/svm.cpp.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/svmsgd.cpp.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/testset.cpp.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/tree.cpp.obj [ 16%] Building RC object modules/ml/CMakeFiles/opencv_ml.dir/vs_version.rc.obj [ 16%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/opencv_ml_main.cpp.obj [ 16%] Linking CXX shared library ....\bin\libopencv_ml455.dll [ 16%] Built target opencv_ml Scanning dependencies of target opencv_phase_unwrapping [ 17%] Building CXX object modules/phase_unwrapping/CMakeFiles/opencv_phase_unwrapping.dir/src/histogramphaseunwrapping.cpp.obj [ 17%] Building RC object modules/phase_unwrapping/CMakeFiles/opencv_phase_unwrapping.dir/vs_version.rc.obj [ 17%] Building CXX object modules/phase_unwrapping/CMakeFiles/opencv_phase_unwrapping.dir/opencv_phase_unwrapping_main.cpp.obj [ 17%] Linking CXX shared library ....\bin\libopencv_phase_unwrapping455.dll [ 17%] Built target opencv_phase_unwrapping [ 17%] Processing OpenCL kernels (photo) Scanning dependencies of target opencv_photo [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/align.cpp.obj [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/calibrate.cpp.obj [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/contrast_preserve.cpp.obj [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/denoise_tvl1.cpp.obj [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/denoising.cpp.obj [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/denoising.cuda.cpp.obj [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/hdr_common.cpp.obj [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/inpaint.cpp.obj [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/merge.cpp.obj [ 17%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/npr.cpp.obj [ 18%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/seamless_cloning.cpp.obj [ 18%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/seamless_cloning_impl.cpp.obj [ 18%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/tonemap.cpp.obj [ 18%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/opencl_kernels_photo.cpp.obj [ 18%] Building RC object modules/photo/CMakeFiles/opencv_photo.dir/vs_version.rc.obj [ 18%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/opencv_photo_main.cpp.obj [ 18%] Linking CXX shared library ....\bin\libopencv_photo455.dll [ 18%] Built target opencv_photo Scanning dependencies of target opencv_plot [ 18%] Building CXX object modules/plot/CMakeFiles/opencv_plot.dir/src/plot.cpp.obj [ 18%] Building RC object modules/plot/CMakeFiles/opencv_plot.dir/vs_version.rc.obj [ 18%] Building CXX object modules/plot/CMakeFiles/opencv_plot.dir/opencv_plot_main.cpp.obj [ 18%] Linking CXX shared library ....\bin\libopencv_plot455.dll [ 18%] Built target opencv_plot Scanning dependencies of target opencv_quality [ 18%] Building CXX object modules/quality/CMakeFiles/opencv_quality.dir/src/qualitybrisque.cpp.obj [ 18%] Building CXX object modules/quality/CMakeFiles/opencv_quality.dir/src/qualitygmsd.cpp.obj [ 18%] Building CXX object modules/quality/CMakeFiles/opencv_quality.dir/src/qualitymse.cpp.obj [ 19%] Building CXX object modules/quality/CMakeFiles/opencv_quality.dir/src/qualityssim.cpp.obj [ 19%] Building RC object modules/quality/CMakeFiles/opencv_quality.dir/vs_version.rc.obj [ 19%] Building CXX object modules/quality/CMakeFiles/opencv_quality.dir/opencv_quality_main.cpp.obj [ 19%] Linking CXX shared library ....\bin\libopencv_quality455.dll [ 19%] Built target opencv_quality Scanning dependencies of target opencv_reg [ 19%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/map.cpp.obj [ 19%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mapaffine.cpp.obj [ 19%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mapper.cpp.obj [ 19%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mappergradaffine.cpp.obj [ 19%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mappergradeuclid.cpp.obj [ 19%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mappergradproj.cpp.obj [ 20%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mappergradshift.cpp.obj [ 20%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mappergradsimilar.cpp.obj [ 20%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mapperpyramid.cpp.obj [ 20%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mapprojec.cpp.obj [ 20%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/src/mapshift.cpp.obj [ 20%] Building RC object modules/reg/CMakeFiles/opencv_reg.dir/vs_version.rc.obj [ 20%] Building CXX object modules/reg/CMakeFiles/opencv_reg.dir/opencv_reg_main.cpp.obj [ 20%] Linking CXX shared library ....\bin\libopencv_reg455.dll [ 20%] Built target opencv_reg Scanning dependencies of target opencv_surface_matching [ 20%] Building CXX object modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/src/icp.cpp.obj [ 20%] Building CXX object modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/src/pose_3d.cpp.obj [ 21%] Building CXX object modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/src/ppf_helpers.cpp.obj [ 21%] Building CXX object modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/src/ppf_match_3d.cpp.obj [ 21%] Building CXX object modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/src/t_hash_int.cpp.obj [ 21%] Building RC object modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/vs_version.rc.obj [ 21%] Building CXX object modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/opencv_surface_matching_main.cpp.obj [ 21%] Linking CXX shared library ....\bin\libopencv_surface_matching455.dll [ 21%] Built target opencv_surface_matching Scanning dependencies of target opencv_xphoto [ 21%] Building CXX object modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/bm3d_image_denoising.cpp.obj [ 22%] Building CXX object modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/dct_image_denoising.cpp.obj [ 22%] Building CXX object modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/grayworld_white_balance.cpp.obj [ 22%] Building CXX object modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/inpainting.cpp.obj [ 22%] Building CXX object modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/learning_based_color_balance.cpp.obj [ 22%] Building CXX object modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/oilpainting.cpp.obj [ 22%] Building CXX object modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/simple_color_balance.cpp.obj [ 22%] Building CXX object modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/tonemap.cpp.obj [ 22%] Building RC object modules/xphoto/CMakeFiles/opencv_xphoto.dir/vs_version.rc.obj [ 22%] Building CXX object modules/xphoto/CMakeFiles/opencv_xphoto.dir/opencv_xphoto_main.cpp.obj [ 22%] Linking CXX shared library ....\bin\libopencv_xphoto455.dll [ 22%] Built target opencv_xphoto Consolidate compiler generated dependencies of target libprotobuf [ 22%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.obj In file included from C:\opencv\opencv-4.5.5\3rdparty\protobuf\src\google\protobuf\arena.cc:42:0: C:/opencv/opencv-4.5.5/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h: In constructor 'constexpr google::protobuf::internal::WrappedMutex::WrappedMutex()': C:/opencv/opencv-4.5.5/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h:124:29: error: temporary of non-literal type 'google::protobuf::internal::CallOnceInitializedMutex' in a constant expression constexpr WrappedMutex() {} ^ C:/opencv/opencv-4.5.5/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h:98:7: note: 'google::protobuf::internal::CallOnceInitializedMutex' is not literal because: class CallOnceInitializedMutex { ^~~~~~~~ C:/opencv/opencv-4.5.5/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h:98:7: note: 'google::protobuf::internal::CallOnceInitializedMutex' has a non-trivial destructor mingw32-make[2]: [3rdparty\protobuf\CMakeFiles\libprotobuf.dir\build.make:91: 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.obj] Error 1 mingw32-make[1]: [CMakeFiles\Makefile2:3363: 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2 mingw32-make: *** [Makefile:165: all] Error 2

Lukiya commented 1 year ago

Same here

ltto commented 1 year ago

Same here

38888 commented 1 year ago

Same here

Yihsiwei commented 1 year ago

Same here

mineroot commented 1 year ago

Downloading MinGW-W64 GCC-8.1.0 instead of 7.3 solved issue for me.