Compilers

Building and testing on multiple platforms – introducing minicoin

Published Tuesday June 4th, 2019 | 7 Comments on Building and testing on multiple platforms – introducing minicoin
Posted in Build system, C++, CI, Compilers, cross-platform, Dev Loop, Test | Tags:

When working on Qt, we need to write code that builds and runs on multiple platforms, with various compiler versions and platform SDKs, all the time. Building code, running tests, reproducing reported bugs, or testing packages is at best cumbersome and time consuming without easy access to the various machines locally. Keeping actual hardware around is […]

Read More
Ivan Donchevskii

ClangFormat plugin in Qt Creator 4.9

Published Wednesday April 17th, 2019 | 13 Comments on ClangFormat plugin in Qt Creator 4.9
Posted in C++, Compilers, QtCreator | Tags: , , , ,

Starting with Qt Creator 4.8 we ship the new ClangFormat plugin based on the LibFormat library. In 4.9 it is not experimental anymore but still disabled by default. Let’s shortly recall the history of ClangFormat support and why we’ve decided to have a new plugin. Beautifier plugin The clang-format tool could already be used in […]

Read More
Simon Hausmann

Reducing Application Size using Link Time Optimization

Published Wednesday January 2nd, 2019 | 39 Comments on Reducing Application Size using Link Time Optimization
Posted in Compilers, Dev Loop, Embedded, Performance

We need to talk about calories! Not the calories from your Christmas cookies — those don’t count. But, calories in your Qt application. We’re going to take a look at a technique that is easy to enable and helps you save precious bytes around your application’s waistline. The Old vs The New Traditionally, you would […]

Read More
Allan Sandfeld Jensen

Testing Qt on Emulated Architectures Using QEMU User Mode

Published Friday November 9th, 2018 | Comments Off on Testing Qt on Emulated Architectures Using QEMU User Mode
Posted in Compilers, Debugging, Dev Loop, Embedded | Tags: , ,

Have you ever wanted to test if your application works on ARM, but don’t want to make an image and launch a real device, or wanted to test an architecture you don’t even have hardware for? I have been following a set of instructions I have gathered from various online sources, and have been teaching others […]

Read More
Jesús Fernández

Using Compiler Explorer with Qt

Published Thursday June 22nd, 2017 | 2 Comments on Using Compiler Explorer with Qt
Posted in C++, Compilers, Dev Loop | Tags: ,

One of my preferred developer tools is a web called Compiler Explorer. The tool itself is excellent and useful when trying to optimize your code. The author of the tool describes it in the Github repository as: Compiler Explorer is an interactive compiler. The left-hand pane shows editable C/C++/Rust/Go/D/Haskell code. The right, the assembly output of […]

Read More
Laszlo Agocs

Qt Weekly #28: Qt and CUDA on the Jetson TK1

Published Tuesday March 3rd, 2015 | 7 Comments on Qt Weekly #28: Qt and CUDA on the Jetson TK1
Posted in Compilers, Embedded, Graphics, OpenGL, QPA

NVIDIA’s Jetson TK1 is a powerful development board based on the Tegra K1 chip. It comes with a GPU capable of OpenGL 4.4, OpenGL ES 3.1 and CUDA 6.5. From Qt’s perspective this is a somewhat unorthodox embedded device because its customized Linux system is based on Ubuntu 14.04 and runs the regular X11 environment. […]

Read More
Kai Koehne

Using gcc’s 4.8.0 Address Sanitizer with Qt

Published Wednesday April 17th, 2013 | 19 Comments on Using gcc’s 4.8.0 Address Sanitizer with Qt
Posted in Build system, C++, Compilers, Debugging, Qt | Tags: , , , ,

One of the cool new features of gcc 4.8 is the built in “Address Sanitizer”: a memory error detector for C/C++ that will tell you instantly when you e.g. access already deleted memory. This is actually a Google project from Clang/LLVM, so for LLVM users this might be old stuff, but it wasn’t for me […]

Read More
Get started today with Qt Download now