首页 > 解决方案 > meta-qt5 yocto 层无法编译

问题描述

我使用 Yocto 为板编译图像和 SDK。编译图像(没有-c populate_sdk)看起来不错,但是当我尝试填充 SDK 时,我得到了几个错误(似乎问题出在“meta-qt5”层)。

所以,我用bitbake <image_name> -c populate_sdk. 分支是rocko. 执行 bitbake 后,我得到下一个错误:

ERROR: qt3d-5.9.8+gitAUTOINC+0d923f9fc3-r0 do_compile: Function failed: do_compile (log file is located at /opt/PHYTEC_BSPs/IMX6/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/qt3d/5.9.8+gitAUTOINC+0d923f9fc3-r0/temp/log.do_compile.2150)
ERROR: Logfile of failure stored in: /opt/PHYTEC_BSPs/IMX6/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/qt3d/5.9.8+gitAUTOINC+0d923f9fc3-r0/temp/log.do_compile.2150
ERROR: Task (/opt/PHYTEC_BSPs/IMX6/sources/poky/../meta-qt5/recipes-qt/qt5/qtwebkit_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5415 tasks of which 5406 didn't need to be rerun and 2 failed.
NOTE: Writing buildhistory

Summary: 2 tasks failed:
  /opt/PHYTEC_BSPs/IMX6/sources/poky/../meta-qt5/recipes-qt/qt5/qt3d_git.bb:do_compile
  /opt/PHYTEC_BSPs/IMX6/sources/poky/../meta-qt5/recipes-qt/qt5/qtwebkit_git.bb:do_compile

以下是日志文件:qt_webkitqt3d。它们很大,但很有用。

另外,我在 Ubuntu 16.04 虚拟机(4 CPU,8GB RAM)上编译它

标签: qtqt5yoctobitbake

解决方案


找到了 Ubuntu 18.04 的解决方案。

构建 SDK 需要安装一些额外的软件。尝试执行下一个命令并重新运行 bitbake。

sudo apt-get update

sudo apt-get install -y -q --no-install-recommends -o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" build-essential chrpath cpio diffstat file  \
g++-multilib gawk gcc-multilib git-core locales openssh-client python python3 \
socat sudo texinfo tmux unzip wget

sudo rm -rf /var/lib/apt/lists/*

sudo locale-gen en_US.UTF-8

export LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

我不确定 Ubuntu 16.04,但在 18.04 上一切正常。


推荐阅读