Opened 16 months ago

#10125 new defect

ffmpeg-3.4.12 does not build (i686-w64-mingw32)

Reported by: Carlo Bramini Owned by:
Priority: normal Component: build system
Version: 3.4.12 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I tried to build ffmpeg-3.4.12, which is the last one supporting Windows XP, but it fails to compile the resource file for Windows.
Running verbose build, it prints this output on the console:

$ make V=1
i686-w64-mingw32-windres -I. -Isrc/ --preprocessor "i686-w64-mingw32-gcc -E -xc-header -DRC_INVOKED -MMD -MF libavdevice/avdeviceres.d -MT libavdevice/avdeviceres.o" -o libavdevice/avdeviceres.o /home/carlo/packages/ffmpeg/mingw64-i686-ffmpeg-3.4.12-1.noarch/src/ffmpeg-3.4.12/libavdevice/avdeviceres.rc
/bin/sh: i686-w64-mingw32-gcc -E -xc-header -DRC_INVOKED -MMD -MF libavdevice/avdeviceres.d -MT libavdevice/avdeviceres.o: No such file or directory
make: *** [/home/carlo/packages/ffmpeg/mingw64-i686-ffmpeg-3.4.12-1.noarch/src/ffmpeg-3.4.12/ffbuild/common.mak:86: libavdevice/avdeviceres.o] Error 1

I found a solution by comparing ffbuild/common.mak between this version and the latest 5.1.2, which has already fixed this bug. According to this reply that I received on the mailing list:

http://ffmpeg.org/pipermail/ffmpeg-devel/2022-December/305046.html

a patch already exists in commit f9626d1065c43f1d51afe66bdf988b9f33729440.
Is it possible to apply this patch also to 3.4 branch, to allow building this version on Windows, when an updated release will be made public?

Thank you very much.

Sincerely.

Change History (0)

Note: See TracTickets for help on using tickets.