讨论广场 问答详情
HarmonyOS arkguard编译报错
csy157486 2024-07-26 23:14:12
11 评论 分享
harmonyos

基于arkguard做二次开发,如何编译arkguard工程?
目前按照https://gitee.com/openharmony/arkcompiler_ets_frontend/tree/master/arkguard 配置gn、ninja等编译环境,存在编译问题:

ERROR at //arkcompiler/toolchain/build/toolchain/toolchain. gni:57:5: Undefined identifierl 
if (is_mac) { 
  See //arkcompiler/toolchain/build/ark. gni:18:1: whence it was imported. 
  import("$build_root/toolchain/toolchain. gni") 
  See //arkcompiler/ets_frontend/ets_frontend_config.gni:24:3: whence it was inported.import(“Sbuild_root/ark.gni”) 
  See //arkcompiler/toolchain/build/core/gn/BUILD. gn:14:1: whence it was imported. 
  inport("//arkcompiler/ets_frontend/ets_frontend_config.gni")

 

11 评论 分享
写回答
全部评论(1)

ohos-typescript-4.9.5-r4.tgz解压后,把包名改成typescript。 按照下方这种操作:

1:将arkguard目录下node_modules中的typescript删除。

2:将ohos-typescript.xxx.tgz解压到arkguard目录下的node_modules,并将解压出来的包名package改为typescript。

2024-07-26 23:16:38