Page 1 of 1

MingGW-w64 Build Script 3.6.7

Posted: Wed Aug 05, 2015 4:51 pm
by Zeranoe
Version 3.6.7 of the MingGW-w64 Build Script has been released.

Download mingw-w64-build-3.6.7

Code: Select all

Script Features
  • Builds both Win32 and Win64 toolchains.
  • Checks for missing packages before the compile begins.
  • Builds are “full featured” toolchain (isl 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, Binutils, and MinGW-w64 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
  • Support for command line arguments, see:

    Code: Select all

    bash ./mingw-w64-build-3.6.7 --help
    for more information
Supported Stable Package Versions Changes & Fixes
  • Updated MinGW-w64 to 4.0.4
  • Added support for GCC to 5.2.0
  • Updated GCC to 4.9.3
  • Updated MPFR to 3.1.3
  • Updated Binutils to 2.25.1
  • Updated ISL to 0.14
  • Removed Binutils snapshot support
  • Bash changed
Please note that a toolchain is a set of tools that act as a compiler. With this toolchain FFmpeg can be cross compiled, but this script will not compile FFmpeg along with the toolchain.

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.

Multi (32-bit and 64-bit), static, MinGW-w64 4.0.4, GCC 4.9.3, Binutils 2.25.1, using all cores/threads detected, with pthread-w32 support and gendef:

Code: Select all

bash ./mingw-w64-build-3.6.7 --build-type=multi --default-configure --disable-shared --enable-gendef
The script is licensed under the GNU General Public License Version 3

Re: MingGW-w64 Build Script 3.6.7

Posted: Mon Aug 17, 2015 1:49 pm
by Getfree
Can this script be used for compiling with support for non-free libraries like libfdk_aac?
I searched the text "libfdk_aac" inside the script, but found nothing.

Re: MingGW-w64 Build Script 3.6.7 - out of date ?

Posted: Tue Apr 11, 2017 5:31 am
by hydra3333
Just wondering, is 3.6.7 the latest ? It seems maybe not.

Zeranoe's build readme says
This build was compiled on Ubuntu 16.04.2 LTS: <>
GCC 6.3.0 was used to compile this FFmpeg build: <>
Whereas this ... uild-3.6.7
indicates an older version of gcc than 6.3.0

Code: Select all

   75:  ## Versions
   76:  mingw_w64_release_ver='4.0.4'
   77:  gcc_release_ver='5.2.0'
   78:  gcc_old_release_ver='4.9.3'
   79:  mpfr_release_ver='3.1.3'
and RDP's script uses a newer ming build toolchain as well)

Would it be possible to post the latest toolchain, viz mingw_w64_release_ver='5.0.1' ? Please ?

Re: MingGW-w64 Build Script 3.6.7

Posted: Thu Apr 27, 2017 5:17 am
by oviano
I recently updated the script to use the latest versions of all the components, you can find my version here.

This built the toolchain without errors on a fresh install of Ubuntu 17.04, although I haven't actually used the built compiler/tools yet. ...

Re: MingGW-w64 Build Script 3.6.7

Posted: Thu Apr 27, 2017 10:42 am
by hydra3333
Thanks. My feeble attempt, with gcc 6.3.0 patches per deadsix27's script, is like this
<snip> no longer useful
Ubuntu 16.04.2 in a VM.