
If you are using Linux 圆4 and makeff.sh fails with a message about libstdc++.so.6, run the command sudo apt-get install lib32stdc++6 and then rerun the. makeff.sh command doesn't complete successfully, check this file for error messages. The build log is written to the file makeff.log in your ff directory. If you want to change this, you can edit the makeff.sh file. It contains the default FFmpeg components without any nonfree or GPL code. The static binary includes libsoxr and doesn't include any other additional libraries. makeff.shġ2) When the build has completed successfully (about 30 minutes), you will find the static binary as a file named ffmpeg in the directory ffmpeg/ffmpeg-4.1/build underneath your ff directory You will probably need to right-click on the link and select "Save as".Ĩ) Download the script file makeff.sh from this link to your ff directory and make it executable by running the command:ĩ) Edit the makeff.sh script file to change the LINARO= line to match the name of your linaro directoryġ0) If cmake isn't already installed, run the command: sudo apt-get install cmakeġ1) With your ff directory as the current directory, start the build by running the command. Tar xf gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_2Ĥ) Create a local directory (your ff directory) for the FFmpeg build (example: /sd1/ff)ĥ) Download the libsoxr 0.1.3 source archive from this link to your ff directoryĦ) Download the FFmpeg 4.1 source archive from this link to your ff directory.ħ) Download the file crtfastmath.c from this link to your ff directory.

The following instructions have been tested on Ubuntu 16.04 LTS 圆4.ġ) Create a local directory (your linaro directory) that you will use to install the linaro cross-compiler (example: /sd1/linaro)Ģ) Download the linaro gcc cross-compiler from this link to your linaro directoryģ) With your linaro directory as the current directory, run the command: To perform the build, you need an Intel-based computer running Linux. This tutorial describes the steps needed to build a static binary for FFmpeg that can run on an ARMv7 Linux platform (typically a NAS or a single-board computer). Edit: updated this tutorial for FFmpeg 4.1.
