Updated 2017-10-15

About how to install the development environment for Qt 5.x.x on Raspberry Pi

It takes a long time

You can download the source code and compile it yourself. It takes about 50 hours on a Raspberry Pi 2. Particularly long will it take if you choose to compile to static build. It's a good idea, Slackware is running the Qt 4 librarie, so programs you compile will not work with Slackwares dynamic libraries. You must have a 32 Gb MicroSD card when you compile the source code. 16 GB is not enough.

You can find a pre-compiled static Qt 5.5.0 for Slackware on Raspberry Pi 2 here (147 MB, uncompressed 424 MB )
MD5: d80aaf2cd377c0a2dc40763f8a7a9ec9

I have used these compilation settings for Qt 5.5.0
./configure -prefix /opt/Qt/qt5.5.0_static -developer-build -release -opensource -static -qt-xcb -confirm-license -nomake examples -nomake tests -qt-zlib -qt-libpng -qt-libjpeg -optimized-qmake

mkdir /opt/Qt
Unzip to /opt/Qt. NOTE! Do not change any names or paths. It will not work.


You can find a pre-compiled static Qt 5.9.0 for Slackware on Raspberry Pi 3 here (115 MB, uncompressed 385 MB )
MD5: a8c197036df75b862279e5efe1b23305

I have used these compilation settings for Qt 5.9.0
./configure -prefix /opt/Qt5.9.0_static -release -opensource -static -qt-xcb -confirm-license -nomake examples -nomake tests -nomake tools -qt-zlib -qt-libpng -qt-libjpeg -qt-pcre -make libs

Unzip to /opt. NOTE! Do not change any names or paths. It will not work.


You can find a pre-compiled static Qt 5.9.1 for Slackware on Raspberry Pi 3 here (184 MB, uncompressed 542 MB )
MD5: 09fd2af41e23b4ab5dbbf1dcddea0ca4

I have used these compilation settings for Qt 5.9.1
./configure -opensource -confirm-license -static -release -prefix /opt/Qt5.9.1_static -silent -nomake examples -nomake tests -qt-zlib -qt-libjpeg -qt-libpng -qt-xcb -qt-xkbcommon -system-freetype -qt-pcre -qt-harfbuzz -opengl -qt-xkbcommon-x11 -qt-sqlite -sql-mysql -sql-sqlite -qt-assimp -eventfd -inotify

Unzip to /opt. NOTE! Do not change any names or paths. It will not work.


You can find a pre-compiled static Qt 5.9.2 for Slackware on Raspberry Pi 3 here (119 MB, uncompressed 552 MB )
MD5: 28dc90579a3c11c09e33ef23a4092efe

I have used these compilation settings for Qt 5.9.2
./configure -opensource -confirm-license -static -release -prefix /opt/Qt5.9.1_static -silent -nomake examples -nomake tests -qt-zlib -qt-libjpeg -qt-libpng -qt-xcb -qt-xkbcommon -system-freetype -qt-pcre -qt-harfbuzz -opengl -qt-xkbcommon-x11 -qt-sqlite -sql-mysql -sql-sqlite -eventfd -inotify

Unzip to /opt. NOTE! Do not change any names or paths. It will not work.


You can find a pre-compiled static Qt 5.9.3 for Slackware on Raspberry Pi 3 here (119 MB, uncompressed 552 MB )
MD5: aafd91a5d04b1d745406a4751ec71e20

I have used these compilation settings for Qt 5.9.3
./configure -opensource -confirm-license -static -release -prefix /opt/Qt5.9.1_static -silent -nomake examples -nomake tests -qt-zlib -qt-libjpeg -qt-libpng -qt-xcb -qt-xkbcommon -system-freetype -qt-pcre -qt-harfbuzz -opengl -qt-xkbcommon-x11 -qt-sqlite -sql-mysql -sql-sqlite -eventfd -inotify

Unzip to /opt. NOTE! Do not change any names or paths. It will not work.


You can find a pre-compiled static Qt 5.10.0 for Slackware on Raspberry Pi 3 here (124 MB, uncompressed 598 MB )
MD5: 946f6dfa5454f889e42fde7fbc885f1f

I have used these compilation settings for Qt 5.10.0
./configure -opensource -confirm-license -static -release -prefix /opt/Qt5.9.1_static -silent -nomake examples -nomake tests -qt-zlib -qt-libjpeg -qt-libpng -qt-xcb -qt-xkbcommon -system-freetype -qt-pcre -qt-harfbuzz -opengl -qt-xkbcommon-x11 -qt-sqlite -sql-mysql -sql-sqlite -eventfd -inotify

Unzip to /opt. NOTE! Do not change any names or paths. It will not work.




Make sure that this is in the * .pro file:
CONFIG+=debug_and_release
Now just move your projects to Raspberry Pi and run
/opt/Qt/qt5.5.0_static/bin/qmake prog_name.pro (Qt 5.5.0)
/opt/Qt5.x.x_static/bin/qmake prog_name.pro (Qt 5.9.0 and later)
and
make release

We welcome feedback and bug reports

I gratefully accept any comments!