pythonpython-3.xpyqtpyqt5qtvirtualkeyboard

Using PyQt5 Virtual Keyboard in Tinker Board with Armbian Bionic OS


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: Error During PyQt5-5.15.0 installation Error During PyQt5-5.15.0 installation

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


Solution

  • 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.