【问题标题】:meta-qt5 yocto layer does not compilemeta-qt5 yocto 层无法编译
【发布时间】:2020-09-20 16:05:48
【问题描述】:

我使用 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)上编译它

【问题讨论】:

    标签: qt qt5 yocto bitbake


    【解决方案1】:

    找到适用于 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 上一切正常。

    【讨论】:

      猜你喜欢
      • 2018-02-03
      • 1970-01-01
      • 2020-10-16
      • 2023-03-04
      • 2016-08-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-29
      相关资源
      最近更新 更多