在raspberry-pi中安装QtVirtualkeyboard吗?

问题描述

我尝试使用PyQt5 - Show virtual keyboard在RaspBerrypi中实现Qt-Virtualkeyboard,但是我没有找到它的前缀路径,bin,plugin等文件夹,实际上整个Qt文件夹都不存在。 / p>

解决方法

my previous solution中,我使用了正式提供的Qt二进制文件,但与RPI体系结构不兼容,因此您必须对其进行编译:

sudo apt-get update
sudo apt install git build-essential
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
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
git clone -b 5.11 https://github.com/qt/qtvirtualkeyboard.git
cd qtvirtualkeyboard
qmake 
sudo make
sudo make install