在 raspberry-pi 中安装 QtVirtualkeyboard? [英] Install QtVirtualkeyboard in raspberry-pi?

查看:91
本文介绍了在 raspberry-pi 中安装 QtVirtualkeyboard?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 Raspberry-pi 中实现 Qt-Virtualkeyboard,使用 PyQt5 - 显示虚拟键盘 但是我没有找到它的前缀路径,bin,plugin 等文件夹,实际上整个 Qt 文件夹都不存在.

I am try to implement Qt-Virtualkeyboard in Raspberry- pi, using PyQt5 - Show virtual keyboard but I did'nt find the prefix path for it, bin, plugin etc folder, actually whole Qt folder doesn't exist.

推荐答案

我之前的解决方案 我使用了官方提供的 Qt 二进制文件,但与 RPI 架构不兼容,所以你必须编译它:

In my previous solution I used the Qt binaries officially provided but not compatible with the RPI architecture so you have to compile it:

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

这篇关于在 raspberry-pi 中安装 QtVirtualkeyboard?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆