在Raspberry Pi 3:E上建造QT:无法满足Libqt5Gui5的构建依赖性



我正在尝试安装QT以在Raspberry Pi上进行交叉编译。我正在遵循QT Wiki的说明。

我在新的Raspberry Pi 3型B。

上有新的Raspbian Jessie安装

我的问题是在上面链接的Wiki页面的步骤3上:sudo apt-get build-dep libqt5gui5

pi@raspberrypi:~ $ sudo apt-get build-dep libqt5gui5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Picking 'qtbase-opensource-src' as source package instead of 'libqt5gui5'
The following packages have unmet dependencies:
libgles2-mesa-dev : Depends: libegl1-mesa-dev but it is not going to be installed
libopenvg1-mesa-dev : Depends: libegl1-mesa-dev but it is not going to be installed
E: Build-dependencies for libqt5gui5 could not be satisfied.

我尝试手动安装这些依赖项,但与其他依赖关系遇到了更多的问题。

我想你可以替换:

sudo apt-get build-dep qt4-x11 libqt5gui5

apt-get build-dep -y qt4-x11 qtbase-opensource-src

这是我们在开源项目中的操作方式:QTRPI设置Raspberry Pi sysroot以进行QT交叉补偿。

还检查项目ITSEFT,它"为Raspberry Pi上的跨编译QT应用程序提供了易于使用的环境。此回购包含准备Sysroot,跨编译QT和部署QT库所需的所有脚本到你的覆盆子。"也许这对您有用。官方网站上的更多信息:www.qtrpi.com

最新更新