Build QtCreator on Raspberry Pi

21/05/2019 - 15:18
Average: 4 (7 votes)

This tutorial will explain how to build a native QtCreator 4.9 to run on a Raspberry Pi using Qt 5.10 or later.

First steps

Remove installed Qt packages

For some reason installed Qt libraries might cause link failures, so we need to get rid of them first. So if you have Qt 5.7 already installed from Debian Stretch packages, remove them first with apt-get:

apt-get remove <list-all-installed-qt-packages-here>

Build and install Qt 5.10 or later

First you need to various build tool and of course build Qt 5 for your Raspberry Pi, for example if using Qt 5.10, follow this tutorial for instructions on how to install required packages and building of Qt. Note that the deprecated QtScript module is required.

When you have done that succesfully, come back here.

Install required packages

No need to install other that Qt 5 and what it requires for building.

Build QtCreator

Download QtCreator sources


Unpack the source

tar xf qt-creator-opensource-src-4.9.0.tar.xz

Configure the build

Run qmake against the sources. We will assume that Qt 5.10 is installed in /opt/Qt5.10 (and if not, adjust the path for your installation)


Compile QtCreator

Next start the compilation. This will take a while.


Install QtCreator

Next install the just built QtCreator, you can use whatever path you like, I prefer installing custom software under /opt.

make install INSTALL_ROOT=/opt/QtCreator4.9

Run QtCreator

You should now be able to start QtCreator with (running under X11):

/opt/QtCreator4.9/bin/qtcreator -platform xcb

You can also run it without X11, in that case just run without the platform parameter:

25/03/2019 - 14:21
Qt, QtCreator, Raspberry Pi