question

Updated 2017-07-02

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.




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.9.x_static/bin/qmake prog_name.pro (Qt 5.9.0 and 5.9.1)
and
make release

We welcome feedback and bug reports
epost
I gratefully accept any comments!