Wednesday, October 14, 2015

Monday, October 12, 2015

Boost and ICU build scripts for MinGW-w64

My MinGW distro is long gone now. However I still privately use a MinGW-w64 toolchain to test and study C++.

I have kept two scripts to build both ICU and Boost so I can have Boost libraries always available.

The scripts are for the latest version of both libraries. Built first ICU, uncompress the generated package and then build Boost.

You will need:


  • Create a directory, eg, C:\mingw-build;
  • Under this directory create other three directories: dest, scripts and sources;
  • Copy both and to the scripts directory;
  • Download icu4c-55_1-src.tgz and from ICU site to the sources directory;
  • Download boost_1_59_0.tar.bz2 from Boost site to the sources directory;
  • Download the MinGW-w64 toolschain and uncompress it to C:\MinGW64
  • Configure your system and add C:\MinGW64\bin to the PATH
  • Download the tools (bsdtar, diff, patch, gnufind, bzip2 and xz) to C:\MinGW64\bin (or any other directory in the PATH);
  • Open Bash;
  • Go to the scripts directory: cd /c/mingw-build/scripts
  • Execute the ICU build script: ./
  • If the build is successful the icuc-55.1-w64-amd64.tar.xz file is created in the C:\mingw-build\dest directory;
  • Go to the MinGW64\bin directory: cd /c/MinGW64
  • Uncompress the ICU package: bsdtar xzf /c/mingw-build/dest/icuc-55.1-w64-amd64.tar.xz
  • Go back to the scripts directory: cd /c/mingw-build/scripts
  • Execute the Boost build script: ./
  • If the build is successful the boost-1.59.0-w64-amd64.tar.xz file is created in the C:\mingw-build\dest directory;
  • Go to the MinGW64\bin directory: cd /c/MinGW64
  • Uncompress the Boost package: bsdtar xzf /c/mingw-build/dest/boost-1.59.0-w64-amd64.tar.xz
  • Now you have a MinGW-w64 installation with the Boost libraries

Please send your feedback: comments, suggestions and bug reports!!

DISCLAIMER: the scripts are provided "as is" without warranty of any kind.

Tuesday, February 11, 2014

Qt 5: QStandardPaths::DownloadLocation returns Documents folder starting from Vista

In Qt 5 the QStandardPaths provides access to the (guess what?) system standard paths like user's documents path, fonts path, etc.

There is also a Downloads path (QStandardPaths::DownloadLocation) that should return the directory where downloaded files are stored. Starting with Windows Vista there is a special directory for downloads. Before that the Documents directory was used.

However the Qt implementation of QStandardPaths does not make use of this new directory and always returns the Documents (QStandardPaths::DocumentsLocation) when the Downloads location is requested.

This patch fixes this issue, now QStandardPaths::DownloadLocation will correctly return the Downloads directory for Vista (or greater).

The patch has to be applied to file qtbase\src\corelib\io\qstandardpaths_win.cpp
And it is good for both Qt 5.2 and 5.2.1

Thursday, December 12, 2013

MinGW Distro - December 2013 Edition

DISCLAIMER: this is a private, custom build of MinGW. It is neither supported nor sponsored by

Updates: GCC 4.8.2, GDB 7.6.1, Boost 1.55.0, ICU 52.1, SQLite 3.8.1, cURL 7.33.0, wxWidgets 3.0.0, POCO Libraries 1.4.6p2, Apache Portable Runtime 1.5.0, Apache Portable Runtime Utils 1.5.3

MinGW-Distro-Addons.exe - 77 Mb - Full with add-ons
SHA1: 029334806ff1ca1cadc1fd7cdbfeaa5a9fd4f9ad

This is the latest version I will provide. Unfortunately I have no time to keep track of the updates, work on patches and build the packages. In a next post I will make scripts and patches available for anyone that would take them and continue.

Sunday, August 11, 2013

MinGW Distro - August 2013 Edition

DISCLAIMER: this is a private, custom build of MinGW. It is neither supported nor sponsored by

Updates: Boost 1.54.0, cURL 7.31.0, PCRE 8.33, FreeType 2.5.0, wxWidgets 2.9.5, xz 5.0.5

Added: Apache log4cxx 0.10.0, Apache Portable Runtime 1.4.8, Apache Portable Runtime iconv 1.2.1, Apache Portable Runtime Util 1.5.2

The ICU static libraries were removed. Now only ICU DLLs.

MinGW-Distro-Addons.exe - 73 Mb - Full with add-ons
SHA1: a73ddf6141535fd55935b083d86ddbdedcc291de

MinGW-Distro-Core.exe - 16 Mb - Core Components
SHA1: 6be8fd7ec3e65c6f25e4194dec9355d2ce7a9b00

For more information visit MinGW Distro