Reputation: 72
I'm trying to use a virtual keyboard for a touchscreen, using python 3.6 and PyQt5.10 on Armbian Bionic (Linux for ARM development boards). My hardware is ASUS Tinker Board.
I checked the answer by @eyllanesc in this Link. It's worked fine when I follow the instruction in Windows 10, but I do the same in the Armbian Bionic but had no luck. It seems this answer's work for x86 and x64 architecture. I also tried to install the latest version of PyQt5-5.15.0 after updating python3 and pip with the following command:
pip3 install pyqt5
But it encounters the following errors:
So finally I searched the web and find out I need to cross-compile the PyQt5 in the host Linux!
Can anyone help me find the quickest and easiest solution? Thanks
Upvotes: 1
Views: 572
Reputation: 243955
In my previous solution just point out how to install Qt and what files should be copied but in this case it is not possible to apply that solution since Qt does not provide binaries for your OS. Generally the OS already provides compiled Qt so you must install it with:
sudo apt-get update
sudo apt-get install python3-pyqt5 qt5-default qtdeclarative5-dev libqt5svg5-dev qtbase5-private-dev qml-module-qtquick-controls2 qml-module-qtquick-controls qml-module-qt-labs-folderlistmodel
git clone -b 5.9.8 https://github.com/qt/qtvirtualkeyboard.git
cd qtvirtualkeyboard
qmake
make
sudo make install
Qt and PyQt5 usually share the same libraries and plugins so it should work.
Upvotes: 1