Building Qt projects with Qmake

Building Site

Article from Issue 151/2013

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

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • 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.

  • 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.

  • Qt for Maemo

    Write your own smartphone apps with Qt's toolkit for the Maemo platform.

  • Programming with QCanvas

    The Qt toolkit from Trolltech sports features that appeal to any developer’s needs, but one of the most fascinating and powerful parts of the toolkit is the QCanvas class.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95