• Lv0
    粉丝0

积分0 / 贡献0

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

作者动态

    使用hb build -f -b debug --gn-args build_xts=true编译时报错

    憨憨王 显示全部楼层 发表于 2024-10-18 15:11:16

    使用hb build -f -b debug --gn-args build_xts=true编译XTS时报错,内容如下:

    [OHOS INFO] Downloading https://repo.huaweicloud.com/harmonyos/compiler/gn/1717/linux/gn-linux-x86-1717.tar.gz ...
    [OHOS INFO] Download complete!
    [OHOS INFO] Extracting to /home/whq/OpenHarmony-5.0-Release/OpenHarmony/prebuilts/build-tools/linux-x86/bin, please wait...
    [OHOS INFO] ERROR Could not load dotfile.
    [OHOS INFO] The file "/home/whq/OpenHarmony-5.0-Release/OpenHarmony/build/lite/.gn" couldn't be loaded.
    [OHOS ERROR] you can check build log in /home/whq/OpenHarmony-5.0-Release/OpenHarmony/out/xts_demo/xts_demo/build.log
    [OHOS ERROR] command: "/home/whq/OpenHarmony-5.0-Release/OpenHarmony/prebuilts/build-tools/linux-x86/bin/gn gen /home/whq/OpenHarmony-5.0-Release/OpenHarmony/out/xts_demo/xts_demo --root=/home/whq/OpenHarmony-5.0-Release/OpenHarmony --dotfile=/home/whq/OpenHarmony-5.0-Release/OpenHarmony/build/lite/.gn --script-executable=/usr/bin/python3 --args=ohos_build_compiler_specified="gcc" product_path="/home/whq/OpenHarmony-5.0-Release/OpenHarmony/vendor/ohemu/xts_demo" device_path="/home/whq/OpenHarmony-5.0-Release/OpenHarmony/device/qemu/xts_demo/liteos_m" ohos_kernel_type="liteos_m" huks_use_lite_storage = true huks_use_hardware_root_key = true huks_config_file = "hks_config_lite.h" mbedtls_porting_path = "//device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls" init_feature_begetctl_liteos = true init_lite_use_thirdparty_mbedtls = true utils_lite_feature_file = true enable_ohos_test_xts_acts_use_thirdparty_lwip = false ohos_build_type="debug" ohos_build_time="1729205622786" ohos_build_datetime="2024-10-18 14:53:42" build_xts=true ohos_full_compile=true ohos_build_enable_ccache=true" failed
    [OHOS ERROR] return code: 1
    [OHOS ERROR] execution path: /home/whq/OpenHarmony-5.0-Release/OpenHarmony
    

    请问有没有大佬遇到过,请教一下,谢谢。

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

    精彩评论1

    kuaile

    沙发 发表于 昨天 14:49
    缺少了.gn文件,检查一下配置再重新编译

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

    返回顶部