win10+qt5.14.0(mingw730_64)+opencv4.3.0+contrib+cmake3.17.0个人踩坑分享

装了4天,感谢网上各位大神分享
报错,百度,再报错,再百度。。。
实在太折磨人了,新人第一帖
如果出现dynafu.cpp的错误,BUILD_opencv_rgbd与WITH_OPENGL只能勾选其一。
TEST不选 BUILD_PERF_TESTS BUILD_TESTS

D:\opencv-4.3.0\opencv_contrib-4.3.0\modules\xfeatures2d\src\boostdesc.cpp:654:20: fatal error: boostdesc_bgm.i: No such file or directory
科学上网下载boostdesc_bgm.i(一共14个,具体看CMakeDownloadLog.txt)复制到这个文件夹
https://download.csdn.net/download/Amiao_89/12496047
[ 51%] Building RC object modules/world/CMakeFiles/opencv_world.dir/vs_version.rc.obj
gcc: error: long: No such file or directory
D:\Qt5.14.0\Tools\mingw730_64\bin\windres.exe: preprocessing failed.
将CMake中的 OPENCV/OPENCV_ENABLE_ALLOCATOR_STATS 不打勾

Linking CXX shared library …\bin\libopencv_world430.dll
CMakeFiles\opencv_world.dir/objects.a(zoomableimage.cpp.obj):zoomableimage.cpp:(.text$_ZN3cvv6qtutil13ZoomableImage14emitUpdateAreaEv+0x61): undefined reference to `cvv::qtutil::ZoomableImage::updateArea(QRectF, double) const’
BUILD_opencv_world"(不勾选,如果不编译opencv_contrib则勾选)

你可能感兴趣的:(win10+qt5.14.0(mingw730_64)+opencv4.3.0+contrib+cmake3.17.0个人踩坑分享)