Opened 17 months ago

#11538 new defect

Not possible to compile ffmpeg for 32-bit on mingw32

Reported by: AndersIgelstrom Owned by:
Priority: important Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I am building ffmpeg/x264 on Windows 10.
Have built 64-bit successfully.
The 32-bit configuration gives
"Host Compiler lacks C11 support"

Gcc version is 14.2.0 and should have c11 from wah

This is how I set up the environment to compile.

Installed msys2-x86_64-20250221.exe
In the UCRT64 command window:

  • pacman -S git
  • pacman -S mingw-w64-i686-toolchain
  • pacman -S mingw-w64-x86_64-toolchain
  • pacman -S base-devel
  • pacman -S yasm
  • pacman -S nasm
  • mkdir /src
  • cd /src

In mingw32:

--disable-gpl --enable-lto --host=i686-w64-mingw32

  • make -j8
  • make install
  • cd ../ffmpeg
  • As we have a license I edit ./configure: move libx264 from EXTERNAL_LIBRARY_GPL_LIST to EXTERNAL_LIBRARY_LIST
  • make clean

./configure --prefix=/mingw32 --enable-shared --disable-static

--disable-programs --disable-lzma --disable-doc --disable-sdl2

--enable-libx264 --disable-debug --host=i686-w64-mingw32

Error:
"Host Compiler lacks C11 support"

ffmpeg version 7.1.1.1 and also from git March 15
built on Windows 10

Attachments (1)

config.log (289.9 KB ) - added by AndersIgelstrom 17 months ago.

Download all attachments as: .zip

Change History (1)

by AndersIgelstrom, 17 months ago

Attachment: config.log added
Note: See TracTickets for help on using tickets.