Cross-Compiling for DroboFS: ffmpeg 0.6.1

Here is another post on the cross-compile series for DroboFS.

Introduction: Why ffmpeg?

It’s needed for my insane desire to have my DroboFS appear as another TiVo, from my TiVo

Overall compiling complexity: Easy.

Step 1: Background info

To be able to make use of this post, you need a VM configured as indicated in this post.

Step 2: Enter the cross-compiling environment

See step 2 of this post to see instructions on how to enter the chroot environment.

Step 3: Get the source code

ffmpeg’s website: http://www.ffmpeg.org/
Version: 0.6.1
Direct link: http://www.ffmpeg.org/releases/ffmpeg-0.6.1.tar.gz

Make sure that you are in the folder /root/code, then type:

wget http://www.ffmpeg.org/releases/ffmpeg-0.6.1.tar.gz tar zxf ffmpeg-0.6.1.tar.gz cd ffmpeg-0.6.1

Step 4: Configuration

Configuration for ffmpeg is a bit different than other libraries:

./configure --enable-cross-compile --target-os=linux --arch=armv5te --cross-prefix=arm-none-linux-gnueabi- --prefix=/usr/arm

This should return no errors.

Step 5: Compiling

Within the folder /root/code/ ffmpeg-0.6.1:


Again, there should be no errors. If any errors are reported, make sure you performed steps 3 and 4 correctly. If you still have errors, make sure that the VM is properly configured (e.g. like I did the first time around, when I got the wrong toolchain, or forgot to ‘export’ the proper compiler flags).

Step 6: Installing

Installing is simple:

make install

which will place the compiled library under /usr/arm.

Then we package the whole /usr/arm and copy it over to the DroboFS, as indicated on step 9 here.


Now you can cross-compile any application that uses ffmpeg, since the required headers are libraries are present in /usr/arm both in the VM and on the Drobo.