Qt Developers Reconsider MinGW For Qt 5.0

Posted by Michael Larabel on September 01, 2012

While we're now up to the Qt 5.0 beta stage, Qt developers are still settling for what MinGW implementation to use for the Windows build of Qt 5.0.

MinGW, the Minimalist GNU for Windows, is the native port of GCC and Binutils that Qt uses for building their Windows version of the Qt tool-kit. Kai Koehne, an official Qt developer, re-sparked the Qt MinGW conversation this week about what package to officially support for the Qt 5.0 release. At the moment they're using MinGW 4.5 32-bit, but the latest MinGW release is now a port of GCC 4.7 except the problem with the official MinGW is that it's still 32-bit-only.

As possible alternatives, Kai tried out the 32/64-bit versions of TDM-GCC, Mingw-64, and Mingw-builds. TDM-GCC presented a nice installer but a somewhat stale GCC 4.6.1 + GDB 7.3.1 and not much activity all around, Mingw-64 is officially at GCC 4.5.4 but there's modern semi-official builds, and for mingw-builds they're closely following upstream GCC.

For why MinGW matters for Qt on Windows, "One might think that the only difference in these packages is the gcc version, but this isn't the truth. They also deviate e.g. in the COM headers, which can easily lead to build breakages ... That's why I think it's important to promote _one_ mingw 64 bit package as the officially supported one, and ideally even get it CI tested."

The mingw-builds project was able to build Qt 5.0 Beta out-of-the-box with only one minor patch being needed. What's being debated now is whether to add mingw-builds (based on GCC 4.7.1) to the list of tier-one configurations as a 64-bit version, support mingw-builds for 32-bit and 64-bit, or just leave it as-is without a more recent MinGW compiler and to be 32-bit-only.

This discussion is taking place on the project's development list. So far most feedback seems to be favoring Mingw-w64. Besides the MinGW-w64 fork supporting both 32-bit and 64-bit modes, it also includes updated files for supporting more recent parts of the Windows API.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
Latest Hardware Reviews
  1. Intel Haswell HD Graphics 4600 vs. AMD Radeon Graphics On Linux
  2. Intel Haswell HD Graphics 4600 Performance On Ubuntu Linux
  3. Intel Core i7 4770K "Haswell" Benchmarks On Ubuntu Linux
  4. The First Experience Of Intel Haswell On Linux
Latest Software Articles
  1. Optimized Binaries Provide Great Benefits For Intel Haswell
  2. 11-Way Linux, BSD Platform Comparison
  3. SNA Acceleration Works Great For Intel Core i7 Haswell
  4. The Linux Evolution For Intel Haswell's Performance
Latest Linux News
  1. NVIDIA Driver Soon Likely To Support EGL, Mir
  2. OpenMandriva Goes Into Alpha Form, Russian-Based
  3. NVIDIA Brings Their Linux Driver To ARM
  4. D Language Still Showing Promise, Advancements
  5. Planetary Annihilation Released For Linux Gamers
  6. Gentoo Starts Work On KDE-Wayland Support
  7. NVIDIA To License Its Kepler GPU Technology
  8. KDE's KWin Made Lots Of Progress In 4.11
  9. Ubuntu Announces Carrier Advisory Group
  10. Qt 5.1 Release Candidate 1 Has Arrived
  11. In-Fighting Continues Over Mir On Non-Unity Ubuntu
Latest Forum Talk
  1. NVIDIA To License Its Kepler GPU Technology
  2. NVIDIA Driver Soon Likely To Support EGL, Mir
  3. D Language Still Showing Promise, Advancements
  4. NVIDIA Brings Their Linux Driver To ARM
  5. Gentoo Starts Work On KDE-Wayland Support
  6. OpenMandriva Goes Into Alpha Form, Russian-Based
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite