OpenHarmony开发者论坛

标题: 【求大佬帮看】编译标准系统时product qemu_standard_system_demo@ohemu not found [打印本页]

作者: zzy_jld1    时间: 7 天前
标题: 【求大佬帮看】编译标准系统时product qemu_standard_system_demo@ohemu not found
[md]### 【问题描述】

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](https://forums-obs.openharmony.c ... jn4jctaea399wb4.png "image.png")

### 【运行环境】

VMware Workstation

ubuntu-24.04.1-desktop-amd64.iso
[/md]
作者: onefan    时间: 5 天前
安装下 试试
pip3 install --upgrade pyparsing packaging
作者: zzy_jld1    时间: 5 天前
回复 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    时间: 5 天前
回复 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下




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5