Saturday, May 18, 2013

Building Qt5 with MinGW

Building Qt with MinGW was always a nightmare: weird conflicts, a lot of patching and the result was not good.

Now with the recent release of Qt 5.0.2 things are a little better (hope they get even better with forthcoming Qt 5.1). I finally managed to build (or almost - QtWebkit fails to build, see below) it.

The steps I took are outlined below. If you want to try please let me know if they have worked for you too.

Qt building

Steps to Build

You'll need:
Steps
  • Make sure Perl, Python and MinGW are all in your PATH
  • Create a directory C:\Qt-build
  • Create a directory C:\Qt
  • Uncompress the Qt source distribution to C:\Qt-build
  • Remove directories qtwebkit and qtwebkit-examples-and-demos. For some reason they do not build
  • Create a directory C:\Qt-build\build. You will get a tree like this:
    C:\
      Qt-build
        build
        qt-everywhere-opensource-src-5.0.2
  • Open the "MinGW Command Prompt"
  • Enter cd C:\Qt-build\build
  • Enter touch ..\qt-everywhere-opensource-src-5.0.2\qtbase\.gitignore
  • Enter ..\qt-everywhere-opensource-src-5.0.2\configure -prefix C:\Qt -release -developer-build -opensource -shared -opengl desktop -qt-pcre -nomake tests
  • Enter mingw32-make
  • Enter mingw32-make install

The Qt headers and libraries will be installed in C:\Qt

Thursday, April 04, 2013

GCC 4.8.0 build failing for MinGW

GCC 4.8.0 was released on March 22nd, so in time for April's release of the MinGW Distro.

Unfortunately it failed miserably to build. It is a known problem.

I hope that by the next release of MinGW Distro this problem is already fixed. I'll keep you informed.

Wednesday, April 03, 2013

MinGW Distro - April 2013 Release

Updates: Boost Libraries 1.53.0, cURL 7.29.0, ICU 51.1, libpng 1.5.14, libxml 2.9.0, libxslt 1.1.28, POCO 1.4.6p1, SQLite 3.7.16, OpenSSL 1.0.1e, GLFW 2.7.7, GMP 5.1.1, wget 1.14, gettext 0.18.2.1

Add: rapidjson 0.11

MinGW-Distro-Addons.exe - 75 Mb - Full with add-ons
SHA1: 4ab44b4b303f3090489d4bef721728d9f97106fb

MinGW-Distro-Core.exe - 16 Mb - Core Components
SHA1: 51acdd76db532697e53133368df21550898d5623

Friday, February 08, 2013

OpenSSL 1.0.1d and cURL 7.29.0

It happened again, now with OpenSSL and cURL. New versions of these libraries were released. See below how to update them. As with Boost before the next MinGW distro will include the updated OpenSSL and cURL.
Assuming you have installed it in C:\MinGW directory:
  • Clean up the existing cURL files:
cd C:\MinGW
rmdir /s /q include\curl
rmdir /s /q include\openssl
rmdir /s /q ssl
cd C:\MinGW
bin\bsdtar -xvJf curl-7.29.0.tar.xz
bin\bsdtar -xvJf openssl-1.0.1d.tar.xz

Boost C++ Libraries release 1.53.0

The new release (1.53.0) of Boost Libraries was made available on February 4th, just 3 days after I released the Feburary 2013 edition of my MinGW distro that included release 1.52.0. Because of this I have built the new release and I'm making it available here as a separated download. As usual it also includes the ICU versions of both Boost RegEx and Boost Locale libraries. The next release of the MinGW distro will contain this version of Boost (or a newer if released meanwhile).
Assuming you have installed it in C:\MinGW directory:
  • Clean up the existing Boost files:
cd C:\MinGW
rmdir /s /q include\boost
del lib\libboost*.*
cd C:\MinGW
bin\bsdtar -xvJf boost-1.53.0.tar.xz