When building ffmpeg:
$ ./configure --enable-memalign-hack --arch=x86_64 --target_os=mingw64 --prefix=/mingw64 --enable-gpl --enable-nonfree --enable-shared --diable-static
Unknown option "--enable-memalign-hack".
$ ./configure --arch=x86_64 --target_os=mingw64 --prefix=/mingw64 --enable-gpl --enable-nonfree --enable-shared --diable-static
Unknown option "--arch=x86_64".
$ ./configure --target_os=mingw64 --prefix=/mingw64 --enable-gpl --enable-nonfree --enable-shared --diable-static
Unknown option "--target_os=mingw64".
$ ./configure --prefix=/mingw64 --enable-gpl --enable-nonfree --enable-shared --diable-static
Unknown option "--prefix=/mingw64".
$ ./configure
Unknown OS ''.
Tested with official 3.0 release and latest git clone.
Seems that sh can't recognize any flags with configure script, nor can it get the OS.
The configure script: http://git.videolan.org/?p=ffmpeg.git;a=blob_plain;f=configure;hb=HEAD
Software version: Windows 10 + MSYS2 20160205
Oh wow, I thought the script was hung, but it was just doing everything in silence...
Anyway, I downloaded ffmpeg-3.0.tar.xz (ffmpeg.org), ran mingw64 shell, ran
tar -xf ffmpeg-3.0.tar.xz,cd ffmpeg-3.0,./configureand I got a good-looking output after a while withCreating config.mak, config.h, and doc/config.texi...at the end.I have
base-devel,mingw-w64-x86_64-toolchain(and various other) packages installed.Did you do anything differently (especially how you started your shell)?
I used
mingw64_shell.bat. Reinstalled MSYS2 but still the same.I think the problem is with the
toupperandtolowerfunction.I wrote a test script.
Run on Linux:
Run on MSYS2:
Seems that if you store the result of the function in a variable then you can't get it again. This is really wired.
Last edit: Albert Chang 2016-02-21
Reinstalled version 20150916 and there was no problem. The test script mentioned above worked well.
But after I ran
update-coreand reopened the shell, it couldn't work. So I suppose it's a BUG of the latest version.Update: Tried every version of msys2-runtime, found that the BUG began with version 2.4.0.16814.ac5d7ed-1. The last version with no problem is 2.4.0.16752.6eb10ef-1.
Last edit: Albert Chang 2016-02-21
I'm running the latest 64-bit MSYS2 and have tested this on Windows Server 2012 R2.
strace bash -xv ./testand paste it somewhere (probably not directly into this discussion, but rather onto pastebin or similar).Seems related to https://sourceforge.net/p/msys2/discussion/general/thread/aa858e3e/.
Well it's the problem of MacType. Same as the issue you mentioned.
Adding
sh.exe(and perhapsbash.exejust in case) to the[UnloadDll]section of MacType config file fixes the problem.Thanks for you help!
Last edit: Albert Chang 2016-02-23
Happy to hear that. Closing.