This version is outdated, the newest release of this script can be found at: http://ffmpeg.zeranoe.com/blog/?cat=4
This is a new release of my MinGW-w64 Build Script
Some key features of this script are:
- Builds both win32 and win64 toolchains.
- Checks for missing packages before the compile begins.
- Builds are “full featured” toolchain (ppl and cloog).
- Can choose between a Win32 or Win64 build, or choose to compile both.
- Automatically detects a previous built toolchain and updates the toolchain instead of a full rebuild.
- pthreads is automatically built and installed.
- Builds a toolchain that can compile FFmpeg for Win32 and Win64, along with the external libraries.
- Automatically stops the script if any package fails to build.
- Support for make “jobs” which will use multiple CPU cores/threads.
- Allow user to choose which version of GCC and Binutils to build.
- Allow for a fully static build.
- Clean the build after the build finishes.
- Allow the user to select which languages to build into GCC
- Allow the user to build without NLS support
Some changes/fixes from version 2.8.2 are:
- Update to GCC 4.6.2
- Update to Binutils 2.22
Please download and try it, even if you don’t want to use the resulting toolchain I could use some feedback and bug reports.
I made sure that it’s simple yet effective, you wont be prompted for most things (though if you would like more prompts then feel free to ask/recommend).
This script has been tested on Ubuntu 64-bit, Ubuntu 32-bit, Debian 64-bit, and it should work on any Linux that supports bash.
Download it here: http://www.zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-2.8.4
Here are the steps to get the script running:
- Download it here: http://www.zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-2.8.4 or the command line way (make sure your in the directory you want to save it to): wget http://www.zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-2.8.4
- The script is also available in a bz2 archive if you need would like that instead: http://www.zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-2.8.4.tar.bz2
- Save it to the directory that you want MinGW-w64 to build in, e.g: /home/<username>/software/mingw-w64 or ~/software/mingw-w64
- Change to that directory from the terminal: cd ~/software/mingw-w64 (or whatever path your using).
- Change the permissions of the script so that it can be executed by you: chmod 755 mingw-w64-build-2.8.4
- Run the script: bash mingw-w64-build-2.8.4
The script is released under GPL v3.0