• Lv0
    粉丝0

积分0 / 贡献0

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

作者动态

    使用OpenHarmony-5.0.0-Release源码编译hap应用失败Error: 'distro' not object.

    junjieking 显示全部楼层 发表于 2024-12-11 22:33:58

    【问题描述】

    使用OpenHarmony-5.0.0-Release源码编译hap应用失败,同样的应用代码和配置在OpenHarmony-5.0.1-Release源码下是可以编译通过的,5.0.0则报错Error: 'distro' not object.,求大神指导。

    分析了一圈没找到原因,distro属性是FA的应用才有的,但是我的应用的apiType是stageMode的,应用中也没有查到distro关键字,是哪里编译环境配置有问题吗

    FAILED: gen/applications/standard/QAGPT/qagpt_resources/ResourceTable.h /usr/bin/env ../../build/scripts/compile_resources.py --resources-dir=@FileArg(gen/applications/standard/QAGPT/qagpt_resources.metadata:root:resources) --depfile gen/applications/standard/QAGPT/qagpt_resources__compile_resources.d --restool-path clang_x64/developtools/global_resource_tool/restool --hap-profile=@FileArg(gen/applications/standard/QAGPT/qagpt_resources.metadata:root:hap_profile) --app-profile=@FileArg(gen/applications/standard/QAGPT/qagpt_resources.metadata:root:app_profile) --output-header-file gen/applications/standard/QAGPT/qagpt_resources/ResourceTable.h Traceback (most recent call last): File "/home/h160618383/harmony/OpenHarmony-5.0.0-Release/out/rk3568/../../build/scripts/compile_resources.py", line 119, in <module> sys.exit(main(sys.argv[1:])) ^^^^^^^^^^^^^^^^^^ File "/home/h160618383/harmony/OpenHarmony-5.0.0-Release/out/rk3568/../../build/scripts/compile_resources.py", line 107, in main build_utils.call_and_write_depfile_if_stale( File "/home/h160618383/harmony/OpenHarmony-5.0.0-Release/build/scripts/util/build_utils.py", line 729, in call_and_write_depfile_if_stale md5_check.call_and_record_if_stale(on_stale_md5, File "/home/h160618383/harmony/OpenHarmony-5.0.0-Release/build/scripts/util/md5_check.py", line 121, in call_and_record_if_stale function(args) File "/home/h160618383/harmony/OpenHarmony-5.0.0-Release/build/scripts/util/build_utils.py", line 719, in on_stale_md5 function(args) File "/home/h160618383/harmony/OpenHarmony-5.0.0-Release/out/rk3568/../../build/scripts/compile_resources.py", line 108, in <lambda> lambda: compile_resources(options), ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/h160618383/harmony/OpenHarmony-5.0.0-Release/out/rk3568/../../build/scripts/compile_resources.py", line 80, in compile_resources build_utils.check_output(cmd) File "/home/h160618383/harmony/OpenHarmony-5.0.0-Release/build/scripts/util/build_utils.py", line 257, in check_output raise CalledProcessError(cwd, args, stdout + stderr) util.build_utils.CalledProcessError: Command failed: ( cd /home/h160618383/harmony/OpenHarmony-5.0.0-Release/out/rk3568; clang_x64/developtools/global_resource_tool/restool -i /tmp/tmp_5e_ogaw/gen/compile/resources/../../applications/standard/QAGPT/entry/src/main -i /tmp/tmp_5e_ogaw/gen/compile/resources/../../applications/standard/QAGPT/AppScope -j gen/applications/standard/QAGPT/qagpt_resources/module.json5 -p com.hjj.qagpt -o /home/h160618383/harmony/OpenHarmony-5.0.0-Release/out/rk3568/gen/applications/standard/QAGPT/qagpt_resources/gen -r /tmp/tmp_5e_ogaw/header/ResourceTable.h ) Error: 'distro' not object. at gen/applications/standard/QAGPT/qagpt_resources/module.json5

    ninja: build stopped: subcommand failed.

    【运行环境】

    Ubuntu 18.04

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

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

    返回顶部