Note that there are some explanatory texts on larger screens.

plurals
  1. PODoes anyone find this useful? - Compiling FFMPEG on Windows with Cywin and NDK r5
    text
    copied!<p>Does anyone find this information useful in anyway?</p> <p>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.</p> <p>Since I don't have a blog, I thought it wouldn't hurt to post on here instead.</p> <p>I have managed to compile FFMPEG 0.10.3 (Freedom) on Windows 7 (32 bit) using NDK r5 and Cygwin. The steps:</p> <p>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 <em>are</em> plenty of tutorials on this.</p> <p>2 - Download NDK r5 from <a href="http://dl.google.com/android/ndk/android-ndk-r5-windows.zip" rel="nofollow noreferrer">here</a> and extract to the root of your C drive.</p> <p>3 - Download FFMPEG 0.10.3 from <a href="http://ffmpeg.org/download.html" rel="nofollow noreferrer">here</a> and extract to the root of your C drive.</p> <p>4 - Open the file 'configure' in the root of the FFMPEG directory in a text editor.</p> <p>5 - Comment out lines 2073, 2074 and 2075.</p> <p>6 - Below 2075, add the following line: </p> <blockquote> <p>TMPDIR=c:/cygwin/tmp</p> </blockquote> <p>7 - Download <a href="http://roman10.net/src/build_android_r5b.txt" rel="nofollow noreferrer">this</a> script (thankyou roman10) and place it inside your FFMPEG root directory. Rename the file to </p> <blockquote> <p>build_android.sh</p> </blockquote> <p>8 - Open the script in a text editor and edit line 17 to read </p> <blockquote> <p>c:/android-ndk-r5</p> </blockquote> <p>9 - Click start > run and type "bash" (without the speech marks) and press enter.</p> <p>10 - Type the following and press enter: </p> <blockquote> <p>cd /cygdrive/c/ffmpeg-0.10.3</p> </blockquote> <p>11 - Type the following and press enter: </p> <blockquote> <p>dos2unix build_andoird.sh</p> </blockquote> <p>12 - Type the following and press enter: </p> <blockquote> <p>./build_android.sh</p> </blockquote> <p>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.</p> <p>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.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload