在Raspberry Pi 3上构建Qt:E:无法满足libqt5gui5的构建依赖性

时间:2016-12-11 00:49:51

标签: c++ qt raspberry-pi raspberry-pi3

我正在尝试在Raspberry Pi上安装Qt进行交叉编译。我按照Qt Wiki的说明进行操作。

我在全新的Raspberry Pi 3 Model B上全新安装了Raspbian Jessie。

我的问题出在上述链接维基页面的第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.

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

1 个答案:

答案 0 :(得分:0)

我想你可以替换:

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应用程序。这个repo包含准备sysroot,交叉编译Qt和将Qt库部署到Raspberry所需的所有脚本。"也许它对你有用。有关官方网站的更多信息:www.qtrpi.com

相关问题