大家好,
我尝试用Qt5安装Yocto工具链,以便在我的ubuntu16.04虚拟机上为我的Gumstix Overo板交叉编译代码。
我成功地通过了使用bitbake core-image-sato there构建的第一步,但现在我需要使用bitbake meta-toolchain-qt5通过Qt5构建,这就是我的问题所在。
这就是错误:
ERROR: meta-toolchain-qt5-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/bschneider/overo/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/bschneider/overo/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/sdk/image/etc/dnf/dnf.conf --setopt=reposdir=/home/bschneider/overo/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/sdk/image/etc/yum.repos.d --repofrompath=oe-repo,/home/bschneider/overo/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/oe-sdk-repo --installroot=/home/bschneider/overo/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/sdk/image --setopt=logdir=/home/bschneider/overo/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/temp --nogpgcheck install nativesdk-packagegroup-sdk-host packagegroup-cross-canadian-overo nativesdk-packagegroup-qt5-toolchain-host' returned 1: Added oe-repo repo from /home/bschneider/overo/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/oe-sdk-repo Last metadata expiration check: 0:00:01 ago on Fri 01 Jun 2018 02:46:23 PM UTC.
这就是所有的结果:
有人能帮我解决这个问题吗?我尝试了很多次来构建它,但现在我不知道如何修复它。
谢谢你。
发布于 2018-06-06 10:03:07
我认为您需要从上游meta-qt5向后移植此patch
发布于 2018-06-08 20:45:49
@哼哼,我试着用你的建议替换我的nativesdk-qtbase_git.bb,但这只造成了一个兼容性错误...
最后,我找到了在补丁there中的第二个链接中提出的解决方案。我将local.conf文件中的PACKAGE_CLASSES ?= "package_rpm"替换为PACKAGE_CLASSES ?= "package_ipk"。
在那之后,我用bitbacke meta-toolchain-qt5重新编译了工具链,并且工作了。
谢谢。
https://stackoverflow.com/questions/50674909
复制相似问题