From d49e1bb32c8e452ced05fec7b695c00b614eceac Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 9 Nov 2023 16:40:45 +0000 Subject: [PATCH] contrib/android/Readme.md: update "how to run qml gui on linux" section --- contrib/android/Readme.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/contrib/android/Readme.md b/contrib/android/Readme.md index 318308d43..62651ad10 100644 --- a/contrib/android/Readme.md +++ b/contrib/android/Readme.md @@ -95,18 +95,28 @@ adb logcat | grep -F "`adb shell ps | grep org.electrum.electrum | cut -c14-19`" ### The Qml GUI can be run directly on Linux Desktop. How? -Install requirements (debian-based distros): +Install requirements: ``` -sudo apt-get install python3-pyqt5 python3-pyqt5.qtquick python3-pyqt5.qtmultimedia -sudo apt-get install python3-pil -sudo apt-get install qml-module-qtquick-controls2 qml-module-qtquick-layouts \ - qml-module-qtquick-window2 qml-module-qtmultimedia \ - libqt5multimedia5-plugins qml-module-qt-labs-folderlistmodel -sudo apt-get install qtvirtualkeyboard-plugin +python3 -m pip install "pyqt6==6.5.2" "Pillow>=8.4" ``` Run electrum with the `-g` switch: `electrum -g qml` +Notes: + +- pyqt ~6.4 would work best, as the gui has not yet been adapted to styling changes in 6.5 +- However, pyqt6 as distributed on PyPI does not include a required module (PyQt6.QtQml) until 6.5 +- Installing these deps from your OS package manager should also work, + except many don't distribute pyqt6 yet. + For pyqt5 on debian-based distros, this used to look like this: + ``` + sudo apt-get install python3-pyqt5 python3-pyqt5.qtquick python3-pyqt5.qtmultimedia + sudo apt-get install python3-pil + sudo apt-get install qml-module-qtquick-controls2 qml-module-qtquick-layouts \ + qml-module-qtquick-window2 qml-module-qtmultimedia \ + libqt5multimedia5-plugins qml-module-qt-labs-folderlistmodel + ``` + ### debug vs release build If you just follow the instructions above, you will build the apk