OpenHarmony开发者论坛

标题: 使用hb build -f -b debug --gn-args build_xts=true编译时报错 [打印本页]

作者: 憨憨王    时间: 2024-10-18 15:11
标题: 使用hb build -f -b debug --gn-args build_xts=true编译时报错
[md]使用hb build -f -b debug --gn-args build_xts=true编译XTS时报错,内容如下:

```bash
[OHOS INFO] Downloading https://repo.huaweicloud.com/har ... nux-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

```

请问有没有大佬遇到过,请教一下,谢谢。
[/md]
作者: kuaile    时间: 昨天 14:49
缺少了.gn文件,检查一下配置再重新编译




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