SOLVED - Compiling FFMPEG on Windows with Cywin and NDK r5
This isn't a question - it's an answer for alll of you who have been facing the same problems as I have. I've been trying to compile this thing for a while now and I know of the numerous posts floating around the internet offering help. I have read and tried most of the suggestions and wanted to colate my success into this single post for others to benefit from.

Since I don't have a blog, I thought it wouldn't hurt to post on here instead.

I have managed to compile FFMPEG 0.10.3 (Freedom) on Windows 7 (32 bit) using NDK r5 and Cygwin. The steps:

1 - Download/install Cygwin in the root of your C drive. I'm not going to give instructions on this, it's simple enough and there *are* plenty of tutorials on this.

2 - Download NDK r5 from [here][1] and extract to the root of your C drive.

3 - Download FFMPEG 0.10.3 from [here][2] and extract to the root of your C drive.

4 - Open the file 'configure' in the root of the FFMPEG directory in a text editor.

5 - Comment out lines 2073, 2074 and 2075.

6 - Below 2075, add the following line: 

> TMPDIR=c:/cygwin/tmp

7 - Download [this][3] script (thankyou roman10) and place it inside your FFMPEG root directory. Rename the file to 

> build_android.sh

8 - Open the script in a text editor and edit line 17 to read 

> c:/android-ndk-r5

9 - Click start > run and type "bash" (without the speech marks) and press enter.

10 - Type the following and press enter: 

> cd /cygdrive/c/ffmpeg-0.10.3

11 - Type the following and press enter: 

> ./build_android.sh

12 - Sit back and wait... libffmpeg.so will soon appear in your "c:\ffmpeg-0.10.3\android\<ARCHITECTURE>" directory (where <ARCHITECTURE> is defined in the bottom of the script from roman10's blog). The default architecture is armv7-a.

The script from roman10's blog will actually compile quite a large shared object (.so) file. The compiler flags can be adjusted to suit your needs in the script from roman10's blog.

I hope this helps,

P.

  [1]: http://dl.google.com/android/ndk/android-ndk-r5-windows.zip
  [2]: http://ffmpeg.org/download.html
  [3]: http://roman10.net/src/build_android_r5b.txt
SOLVED - Compiling FFMPEG on Windows with Cywin and NDK r5
===

This isn't a question - it's an answer for alll of you who have been facing the same problems as I have. I've been trying to compile this thing for a while now and I know of the numerous posts floating around the internet offering help. I have read and tried most of the suggestions and wanted to colate my success into this single post for others to benefit from.

Since I don't have a blog, I thought it wouldn't hurt to post on here instead.

I have managed to compile FFMPEG 0.10.3 (Freedom) on Windows 7 (32 bit) using NDK r5 and Cygwin. The steps:

1 - Download/install Cygwin in the root of your C drive. I'm not going to give instructions on this, it's simple enough and there *are* plenty of tutorials on this.

2 - Download NDK r5 from [here][1] and extract to the root of your C drive.

3 - Download FFMPEG 0.10.3 from [here][2] and extract to the root of your C drive.

4 - Open the file 'configure' in the root of the FFMPEG directory in a text editor.

5 - Comment out lines 2073, 2074 and 2075.

6 - Below 2075, add the following line: 

> TMPDIR=c:/cygwin/tmp

7 - Download [this][3] script (thankyou roman10) and place it inside your FFMPEG root directory. Rename the file to 

> build_android.sh

8 - Open the script in a text editor and edit line 17 to read 

> c:/android-ndk-r5

9 - Click start > run and type "bash" (without the speech marks) and press enter.

10 - Type the following and press enter: 

> cd /cygdrive/c/ffmpeg-0.10.3

11 - Type the following and press enter: 

> ./build_android.sh

12 - Sit back and wait... libffmpeg.so will soon appear in your "c:\ffmpeg-0.10.3\android\<ARCHITECTURE>" directory (where <ARCHITECTURE> is defined in the bottom of the script from roman10's blog). The default architecture is armv7-a.

The script from roman10's blog will actually compile quite a large shared object (.so) file. The compiler flags can be adjusted to suit your needs in the script from roman10's blog.

I hope this helps,

P.

  [1]: http://dl.google.com/android/ndk/android-ndk-r5-windows.zip
  [2]: http://ffmpeg.org/download.html
  [3]: http://roman10.net/src/build_android_r5b.txt