Building Qt projects with Qmake

Building Site

Article from Issue 151/2013
Author(s):

Qt’s own build system Qmake is often overlooked for larger projects, but many experienced developers appreciate Qmake support for shadow builds and pre- or post-build dependencies.

Qmake, the build system originally developed by Trolltech for Qt applications, often goes unnoticed. Many developers are happy to use the combination of Qmake and the Qt library for small- to medium-sized projects. But as the projects grow, many Qt developers suddenly switch to the Qmake alternative Cmake, which originated as the build system for ITK (the Insight Segmentation and Registration Toolkit).

The reason most often heard for neglecting Qmake is that it is simply unsuitable for many tasks. In the KDE project, for example, Cmake is the tool of choice for compiling large amounts of source code. (Other build systems, such as Autotools, Ant, and the like play a very small role in Qt development because of the increased integration overhead.) As this article shows, however, Qmake can do so much more than most developers realize.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Buildroot

    Whether you need a tiny OS for 1MB of flash memory or a complex Linux with a graphical stack, you can quickly set up a working operating system using Buildroot.

  • Kindd

    Kindd offers a GUI alternative to the ubiquitous dd command-line tool, offering a risk-free option for transferring bootable images to USB sticks.

  • QJournalctl

    QJournalctl is a convenient GUI tool that will help you track down log data in the systemd journal.

  • Create a DIY Planner with Dynamic Templates
  • Like Qlockwork

    QML makes writing desktop applications a breeze, and you can later compile them into standalone programs that work more or less anywhere.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News