[ 66%] Linking CXX shared library ..\..\bin\libopencv_world452.dll
CMakeFiles\opencv_world.dir/objects.a(window.cpp.obj):window.cpp:(.text$cvSetWindowProperty+0x3d): undefined reference to `cvSetPropVsync_W32(char const*, bool)'
CMakeFiles\opencv_world.dir/objects.a(window.cpp.obj):window.cpp:(.text$cvGetWindowProperty+0x75): undefined reference to `cvGetPropVsync_W32(char const*)'
CMakeFiles\opencv_world.dir/objects.a(window.cpp.obj):window.cpp:(.text$_ZN2cv17setWindowPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEid+0x65): undefined reference to `cvSetPropVsync_W32(char const*, bool)'
CMakeFiles\opencv_world.dir/objects.a(window.cpp.obj):window.cpp:(.text$_ZN2cv17getWindowPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi+0xa4): undefined reference to `cvGetPropVsync_W32(char const*)'
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [modules\world\CMakeFiles\opencv_world.dir\build.make:9333: bin/libopencv_world452.dll] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2311: modules/world/CMakeFiles/opencv_world.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2
大家好,如上图和输出片段所示,我在搭建opencv+qt mingw32环境时一直出现world.dll,highgui.dll两个模块无法成功生成的问题,另外以上三项的配置出现红色,不知道如何解决.
感谢大家的帮助.
CMakeFiles\opencv_highgui.dir/objects.a(window.cpp.obj):window.cpp:(.text$_ZN2cv17setWindowPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEid+0x65): undefined reference to `cvSetPropVsync_W32(char const*, bool)'
CMakeFiles\opencv_highgui.dir/objects.a(window.cpp.obj):window.cpp:(.text$_ZN2cv17getWindowPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi+0xa4): undefined reference to `cvGetPropVsync_W32(char const*)'
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:222: bin/libopencv_highgui452.dll] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2684: modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632
CMakeFiles\opencv_world.dir/objects.a: member CMakeFiles\opencv_world.dir/objects.a(vs_version.rc.obj) in archive is not an object
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [modules\world\CMakeFiles\opencv_world.dir\build.make:9043: bin/libopencv_world453.dll] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:3466: modules/world/CMakeFiles/opencv_world.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2
同样的错误,请问楼主解决了吗
缺少库,下载网络访问失败?,望采纳,不懂的可以关注私信我。