Does anyone find this information useful in anyway?
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 and extract to the root of your C drive.
3 - Download FFMPEG 0.10.3 from here 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 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:
dos2unix build_andoird.sh
12 - Type the following and press enter:
./build_android.sh
13 - Sit back and wait... libffmpeg.so will soon appear in your "c:\ffmpeg-0.10.3\android\" directory (where 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.