Hello,
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.
So, I'm wondering if it could be possible to apply the same patch for fixing
this tiny issue in the next maintenance release of 3.4.x branch, if it will
happen in the future.
I attached that patch in this email for reference, if somebody can import that
line from development sources.
Sincerely,
Carlo Bramini.
--- origsrc/ffmpeg-3.4.12/ffbuild/common.mak 2022-10-27 22:21:00.000000000
+0200
+++ src/ffmpeg-3.4.12/ffbuild/common.mak 2022-12-23 10:46:32.733625900
+0100
@@ -83,7 +83,7 @@ COMPILE_NVCC = $(call COMPILE,NVCC)
-$(if $(ASMSTRIPFLAGS), $(STRIP) $(ASMSTRIPFLAGS) $@)
%.o: %.rc
- $(WINDRES) $(IFLAGS) --preprocessor "$(DEPWINDRES) -E -xc-header
-DRC_INVOKED $(CC_DEPFLAGS)" -o $@ $<
+ $(WINDRES) $(IFLAGS) $(foreach ARG,$(CC_DEPFLAGS),--preprocessor-arg
"$(ARG)") -o $@ $<
%.i: %.c
$(CC) $(CCFLAGS) $(CC_E) $<
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".