• Lv2
    粉丝0

积分0 / 贡献0

提问2答案被采纳0文章0

【求大佬帮看】编译标准系统时product qemu_standard_system_demo@ohemu not found

zzy_jld1 显示全部楼层 发表于 7 天前

【问题描述】

  1. 我想下载、编译OpenHarmony5.0源码,生成OHOS_Image可执行

  2. 相关的代码:

    sudo docker run -it -v /home/zzy/下载/code-v5.0.0-Release:/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/docker_oh_standard:3.2

    cd /home/openharmony/OpenHarmony-v5.0.0-Release/OpenHarmon

    python3 build.py -p qemu_standard_system_demo@ohemu

  3. 运行结果及报错

    image.png

【运行环境】

VMware Workstation

ubuntu-24.04.1-desktop-amd64.iso

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论3

onefan

沙发 发表于 5 天前
安装下 试试
pip3 install --upgrade pyparsing packaging

zzy_jld1

发表于 2025-2-17 11:10  IP属地: 河南省许昌市

回复 onefan: 谢谢谢谢,但是现在hb build以后报错变成了GN Failed。

下面是error.log的内容
ERROR at //build/config/BUILDCONFIG.gn:1000:13: Undefined identifier

configs = default_executable_configs
......

root_out_dir=//out/arm_mps2_an386/qemu_mini_system_demo

root_build_dir=//out/arm_mps2_an386/qemu_mini_system_demo

root_gen_dir=//out/arm_mps2_an386/qemu_mini_system_demo/gen

current_toolchain=
..........

host_toolchain=//build/toolchain/linux:clang_x64
下面是build.log的部分内容
[OHOS ERROR]
[OHOS ERROR] Code:        3000
[OHOS ERROR]
[OHOS ERROR] Reason:      GN Failed! Please check error in /home/zzy/下载/code-v5.0.0-Release/OpenHarmony-v5.0.0-Release/OpenHarmony/out/arm_mps2_an386/qemu_mini_system_demo/error.log, and for more build information in /home/zzy/下载/code-v5.0.0-Release/OpenHarmony-v5.0.0-Release/OpenHarmony/out/arm_mps2_an386/qemu_mini_system_demo/build.log
[OHOS ERROR]
[OHOS ERROR] Error Type:  UNKNOWN
[OHOS ERROR]
[OHOS ERROR] Description: An unknown error occurred while executing 'gn gen'.
[OHOS ERROR]
[OHOS ERROR] Solution:    There is no solution available. You can check the 'gn_error.log' in the output directory for more information
[OHOS ERROR]

onefan

发表于 2025-2-17 12:05  IP属地: 湖北省黄冈市

回复 zzy_jld1: sudo apt-get update && sudo apt-get install binutils binutils-dev git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib gcc-arm-linux-gnueabi libc6-dev-i386 libc6-dev-amd64 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3.8 python3-pip ruby genext2fs device-tree-compiler make libffi-dev e2fsprogs pkg-config perl openssl libssl-dev libelf-dev libdwarf-dev u-boot-tools mtd-utils cpio doxygen liblz4-tool openjdk-8-jre gcc g++ texinfo dosfstools mtools default-jre default-jdk libncurses5 apt-utils wget scons python3.8-distutils tar rsync git-core libxml2-dev lib32z-dev grsync xxd libglib2.0-dev libpixman-1-dev kmod jfsutils reiserfsprogs xfsprogs squashfs-tools pcmciautils quota ppp libtinfo-dev libtinfo5 libncurses5-dev libncursesw5 libstdc++6 gcc-arm-none-eabi vim ssh locales libxinerama-dev libxcursor-dev libxrandr-dev libxi-dev
都执行了吗?

还要重新bash build/prebuilts_download.sh下

【2 条回复】

Copyright   ©2025  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部