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. Sumo Lounge Emperor
  2. Gallium3D Continues Improving OpenGL For Older Radeon GPUs
  3. 15-Way Open vs. Closed Source NVIDIA/AMD Linux GPU Comparison
  4. Nouveau vs. NVIDIA Linux Comparison Shows Shortcomings
Latest Software Articles
  1. The Cost Of Ubuntu Disk Encryption
  2. Btrfs vs. EXT4 vs. XFS vs. F2FS On Linux 3.10
  3. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
  4. F2FS File-System Shows Regressions On Linux 3.10
Latest Linux News
  1. QEMU 1.5 Supports VGA Passthrough, Better USB 3.0
  2. Handbrake 0.9.9 Supports OpenCL Offloading
  3. Freedreno Gallium3D Now Banging The Adreno A3XX
  4. Jolla Announces Their First Phone
  5. Mageia 3 Released, Still Using Legacy GRUB
  6. NetBSD 6.1 Brings In More Features
  7. Using Six Monitors With AMD's Open-Source Linux Driver
  8. Benchmarking The Intel P-State, CPUfreq Changes
  9. FreeBSD Still Working On Next-Gen Package Manager
  10. DNF Still Advancing As Experimental Yum For Fedora
  11. Logitech Begins Supporting Linux Users
Latest Forum Talk
  1. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
  2. FreeBSD Still Working On Next-Gen Package Manager
  3. Kubuntu, KDE Has Little Hope For Ubuntu's Mir
  4. Jolla Announces Their First Phone
  5. BHyVe: A New Hypervisor Coming To FreeBSD 10.0
  6. The Cost Of Ubuntu Disk Encryption
  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