在 Win10 中同时使用 gocv+ 和 andlabs/ui 时出现以下错误
D:\Dev\Go\pkg\tool\windows_amd64\link.exe: running g++ failed: exit status 1 D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../lib\libgdi32.a(libgdi32s00803.o):(.text+0x0): multiple definition of `Rectangle'; C:\Users\Administrator\AppData\Local\Temp\go-link-4038213707\000061.o:C:\Users\Administrator\go\pkg\mod\gocv.io\\\\x\[email protected]/imgproc.cpp:404: first defined here D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_core460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_face460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_videoio460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_imgproc460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_highgui460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_imgcodecs460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_objdetect460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_features2d460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_video460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_dnn460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_xfeatures2d460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_plot460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_tracking460: No such file or directory D:\Dev\msys64\mingw64\bin\../lib\gcc\ x86_64-w64-mingw32\12.1.0\../../../../x86_64-w64-mingw32\bin\ld.exe: cannot find -lopencv_img_hash460: No such file or directory
内容来源: andlabs/ui