-
Notifications
You must be signed in to change notification settings - Fork 211
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 in MSYS2/MinGW with GCC 13.2 fails: undefined reference to `WinMain@16' #1755
Comments
Vincent: Could you take a look at this? Thanks. LigH: I am not familiar with MSYS2/MinGW. The current main branch of libavif uses |
Unfortunately, I am not at all a C/C++ developer. Just a halfwit running the script and interpreting error messages. But the MABS team has a good amount of experience, too... |
Chiming in since I narrowed it down to this commit in the bug report mentioned above... I'll admit I'm also a little lost on mingw specifics, but mingw-w64 gcc supports a Below is my rudimentary patch. The conditional should probably be modified to only apply to a mingw-w64 target since gcc docs mention it's the only target that supports
|
Note that you don't need "WIN32 AND MINGW", checking for MINGW is sufficient (implies WIN32). |
Hi, we are actually trying something simpler to deal with UTF8 and it reverts the commit you are mentioning: does #1752 work for you? Thx |
If we use the |
Unfortunately not, since mt.exe is only provided by the Windows SDK (which may not be installed or in the path) and there doesn't seem to be an equivalent in msys/mingw. |
maybe more informations here : https://sourceforge.net/p/mingw-w64/wiki2/Unicode%20apps/ |
basically :
if I'm not mistaken, the commit only uses wmain() explicitely and convert argv to UTF8 with WideCharToMultiByte(), so |
and to finish : visual studio solutions sets unicode by default |
Thx for the pointers. Would #1802 work for MINGW then ? |
Compiling libavif project in media-autobuild suite, a set of scripts for a MSYS2/MinGW build environment which keeps itself up-to-date before compiling ffmpeg including a lot of codecs.
There is no C:\M\B directory on my Windows partitions. I wonder why these paths are contained in the files CMakeDetermineCompilerABI_C.bin and CMakeDetermineCompilerABI_CXX.bin in build/libavif-git/build-32bit/CMakeFiles/3.27.7
@waldonnis suspects this commit as possible reason in a MABS issue.
logs.zip collected by MABS
The text was updated successfully, but these errors were encountered: