qt - 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_webkit和qt3d。它们很大,但很有用。
另外,我在 Ubuntu 16.04 虚拟机(4 CPU,8GB RAM)上编译它
解决方案
找到了 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 上一切正常。
推荐阅读
- python - 从 shell 脚本中的变量解析键值
- javascript - 使用 Web Audio API 平滑音量变化
- python - odoo 13 从“sale.subscription”中的自定义字段创建域
- flutter - 用户更新应用程序的新版本后,shared_preferences 存储的设置/属性/数据是否仍然存在?
- javascript - 我编写了一个闭包来将可拖动元素添加到地图中。我希望外壳能够保存价值。它没有。为什么不?
- mysql - 如何使用主机名更正 Node 与 MySQL 的连接?
- javascript - 在 Node.js 中的文件之间共享变量加载延迟?
- android - Android Navigate 组件导航到子图
- reactjs - 如何在 ant 设计表中混合行跨度和可扩展行
- github - docker push windows 容器镜像到 GitHub 包存储库失败