Antirreni91
Posts: 1
Joined: Fri May 12, 2017 12:49 pm
Location: Amsterdam

Up to date setup guide to run Qt (EGLFS) on Raspbian

Fri May 12, 2017 12:59 pm

This might sound like I didn't search for this question already, but I did (a lot).

I am trying to install Qt on a Raspberry Pi 2 and 3, fresh with Raspbian lite, following all kind of guides and scripts. But it seems impossible.

I have a RPi 7' official display, and I want to run a simple Qt Quick binary using -platform EGLFS.

Is there a mid-2017 way to not having to cross-compile Qt or to not build it from source (time > 1 day)?

Thanks in advance.

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Up to date setup guide to run Qt (EGLFS) on Raspbian

Tue May 16, 2017 8:59 pm

I've done an update to my script here: https://github.com/Topguy/Raspberry-Qt5 ... e_setup.sh

My script installs pre-compiled Qt5.5.1 packages from the repository at twolife.be. From a Raspbian Lite I assume it might drag in a lot of X11 dependencies even if you don't need them. But I just did a quick test (on full raspbian) and qmlscene opens in fullscreen using EGL. There is a few QtQuick2 modules that you have to install yourself if you need them.

If you have questions or run into problems post it here and I'll try to answer as good as I can.

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Up to date setup guide to run Qt (EGLFS) on Raspbian

Thu May 18, 2017 11:14 am

NB!! I have to issue a warning about my own script.
Don't do an "apt-get upgrade" while the "twolife" repository is active. It will install a newer firmware and your system might not boot afterwards.
Comment out the repository, and do a "apt-get update" after you have installed the Qt5 packages you need.

Someone who is good at "pinning" packages with apt might be able to safely control which packages get upgraded, but I have not dug that deep yet.

Return to “Graphics programming”