Skip to content

Instantly share code, notes, and snippets.

@geoaxis
Forked from malachib/PyQt5+EGLFS.md
Created July 22, 2020 12:25
Show Gist options
  • Save geoaxis/e8172b7e3d1679eeeb140cb5a5fa0849 to your computer and use it in GitHub Desktop.
Save geoaxis/e8172b7e3d1679eeeb140cb5a5fa0849 to your computer and use it in GitHub Desktop.
PyQt5 + Raspberry Pi + EGLFS notes

Debian

Modules you probably need:

sudo apt-get install qt5-default qml-module-qtquick-controls qml-module-qtquick-controls2

Also recommended:

sudo apt-get install qml-module-qtlocation qml-module-qtpositioning

I think also

sudo apt-get install qml-module-qtquick-templates2

At present, https://packages.debian.org/buster/libs/qml-module-qtcharts indicates we can't easily insdtall qtcharts yet

Raspbian

For pyqt, regular pip install won't do. Use:

sudo apt-get install pyqt5-dev pyqt5-dev-tools python3-pyqt5.qtquick

Also recommended

sudo apt-get install python3-pyqt5.qtpositioning

Be sure to use raspi-config and set Advanced Options|GL Driver|G1 GL (Full KMS)

macOS

Do pip3 install pyqt5

Also experimenting with pip3 install PyQtChart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment