libgcc_s_sjlj-1.dll missing from MinGw64 distro (Bug #3214)
Description
I was happy to find that the current binary distribution for Windows supports MinGW64.
However those dlls depend on libgcc_s_sjlj-1.dll, which was not in my MinGW64 package.
So I suggest you add libgcc_s_sjlj-1.dll to opencv/build/x64/mingw/bin.
History
Updated by Thomas Sharpless over 11 years ago
Ahh, I see it is not that simple.
Is there a reason why the released dlls have to be built sjlj rather than dwarf?
If not, could you please supply both flavors, pending resolution of this nasty mess
by the gcc folks?
Updated by Sergei Nosov over 11 years ago
Alexander, could you, please, elaborate? Static maybe static linking will solve the issue?
- Assignee set to Alexander Smorkalov
- Status changed from New to Open
- Target version set to 2.4.7
Updated by Alexander Smorkalov over 11 years ago
The only sollution I can propose is to add -static-libgcc to gcc command line to link against libgcc statically. See the same problem discussion here: http://stackoverflow.com/questions/12921911/mingw-libgcc-s-sjlj-1-dll-is-missing.
Updated by Sergei Nosov over 11 years ago
Do you have any plans to fix this?
Updated by Alexander Smorkalov over 11 years ago
Problem fixed by statical linkage with libgcc.
- Pull request set to https://github.com/Itseez/opencv/pull/1368
Updated by Alexander Smorkalov over 11 years ago
It looks like we cannot link libgcc statically because it leads to problems with C++ exceptions outside OpenCV library. I cancel the pull request. The only solution here is change your MinGW distribution or update up to newer version. I cancel the ticket.
See more details here: http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#index-static_002dlibgcc-1064
Updated by Alexander Smorkalov over 11 years ago
- Status changed from Open to Cancelled
Updated by Jan Bajana over 11 years ago
Default compilation used sjlj exceptions. Problem will be fixed just recompilation of OpenCV with your MinGW in windows.
I used this tutorial.
http://stackoverflow.com/questions/17393311/openvc-2-4-5-eclipse-cdt-juno-mingw-error-0xc0000005/17402441#17402441
For compilation I try to used MinGW and Msys 64 bit and everything run fain.
I use this MinGW:
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/