I've seen some articles about how to compile and uses FFmpeg for Android.

These are 2 good examples - [example1](http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/) and [example2](https://stackoverflow.com/questions/10665039/does-anyone-find-this-useful-compiling-ffmpeg-on-windows-with-cywin-and-ndk-r)

Unfortunately, non off them, or others I found helped me. In those two examples a build\_android.sh is created and configure the FFmpeg's configuraion file and call to make. Every time when I'm running the script I'm getting the following error:

```
c:\android\development\android-ndk-r9\sources\ffmpeg>sh build_android.sh
c:/android/development/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebu
ilt/windows-x86_64/arm-linux-androideabi/bin/bin/arm-linux-androideabi-gcc is un

able to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
Makefile:2: config.mak: No such file or directory
Makefile:49: /common.mak: No such file or directory
Makefile:92: /libavutil/Makefile: No such file or directory
Makefile:92: /library.mak: No such file or directory
Makefile:169: /doc/Makefile: No such file or directory
Makefile:170: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'.  Stop.
Makefile:2: config.mak: No such file or directory

```

If someone encountered and solved this issue it'll be much appreciated!

After trying the suggested script I ran into a new problem that I couldn't solved, this is the output of the script:

.... Enabled components list....

In the end of the list I got the following:

Enabled indevs:
dv1394 v4l2i
fbdev

Enabled outdevs:
fbdev v4l2

License: LGPL version 2.1 or later
Creating config.mak, config.h, and doc/config.texi...

WARNING: C:/android/development/android-ndk-r9/toolchains/arm-linux-androideabi-
4.8/prebuilt/windows-x86\_64/bin/arm-linux-androideabi-pkg-config not found, libr
ary detection may fail.
make: \*\*\* No rule to make target `libavfilter/libavfilter.so', needed by` all-ye
s'. Stop.
make: \*\*\* No rule to make target `install-libavfilter-shared', needed by` instal
l-libs-yes'. Stop.