我用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下面是日志文件:webkit和qt3d。它们很大,但可能很有用。
另外,我在Ubuntu16.04虚拟机(4 CPU,8GB RAM)上编译了它。
发布于 2020-06-24 06:26:43
找到了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'我对Ubuntu16.04并不确定,但在18.04,一切都很适合我。
https://stackoverflow.com/questions/62147753
复制相似问题