[FFmpeg-devel] build for Android on WIndows

Alex Cohn alexcohn at netvision.net.il
Tue Jun 24 16:03:49 CEST 2014

As I mentioned before, build in Windows (using cygwin or Mingw shell
has some problems, due to the limited command line length.

One manifestation is the failure of make clean. Here is a fix:

diff --git a/common.mak b/common.mak
index a493792..161a20c 100644
--- a/common.mak
+++ b/common.mak
@@ -144,7 +144,10 @@ LIBSUFFIXES       = *.a *.lib *.so *.so.* *.dylib
*.dll *.def *.dll.a

 define RULES
-       $(RM) $(OBJS) $(OBJS:.o=.d)
+       $(RM) $(wordlist 1,400,$(OBJS))
+       $(RM) $(wordlist 401,999,$(OBJS))
+       $(RM) $(wordlist 1,400,$(OBJS:.o=.d))
+       $(RM) $(wordlist 401,999,$(OBJS:.o=.d))
        $(RM) $(HOSTPROGS)
        $(RM) $(TOOLS)

I am not very happy about this patch. Using $(wordlist) is an ugly
hack, but unfortunately `make.exe` v.3.81 that ships with Android NDK
r9d still does not support $(file) function.

Alex Cohn

More information about the ffmpeg-devel mailing list