-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building a static binary Lost Quirc #1179
Comments
I even tried to compile in the gocv/opencv: 4.10.0 static Docker image, but it didn't work command-line-arguments/usr/local/go/pkg/tool/linux_amd64/link: running g++ failed: exit status 1 |
It was introduced in cgo_static.go, not the library introduced in my project |
I don't understand why others haven't experienced this situation |
After completing the Quirc compilation |
Why do I still have dynamic library links after going through countless hardships and finally compiling them |
1 similar comment
Why do I still have dynamic library links after going through countless hardships and finally compiling them |
Try adding the CMake option -DWITH_QUIRC=ON when building OpenCV |
I am using the official Docker image for compilation. I am not familiar with C++myself, and I cannot even cross compile from Windows to Linux. I am truly ashamed |
quirc is used in gocv, but it is disabled in the default rules of opencv, so you need to enable it manually by "-DWITH_QUIRC=ON" |
我感觉我们都是中国人,可以讲中文吗?英语不太好,我是需要在这边下载的脚本中去修改他的CMake标志就可以了是吧 |
我有时间去研究一下,但是我感觉我需要先研究怎么在Windows环境交叉编译,非常感谢 |
command-line-arguments
C:\go\pkg\tool\windows_amd64\link.exe: running g++ failed: exit status 1
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lquirc
collect2.exe: error: ld returned 1 exit status
While attempting static compilation, I encountered an error and don't understand why Quirc is required.
The text was updated successfully, but these errors were encountered: