hai3861板子编译源码失败报错import("${device_path}/config.gni")........
我用的是1.1.2的源码,在windows平台上搭建编译烧录环境。按照物联网技术及应用(HarmonyOS) 实验指导手册操作,到编译这一步时报错如下https://alliance-communityfile-drcn.dbankcdn.com/FileServer/getFile/cmtybbs/551/694/925/0030086000551694925.20220510173056.82183810581902253096486151779943:50530512030137:2800:81A779B17FB823509394F7416C11268791213273BDA9D966D4CEB648A3B785C0.png我看了下源码build\lite\config\BUILDCONFIG.gnimport("${device_path}/config.gni")的device_path,按照/build/lite/ohos_var.gnihttps://alliance-communityfile-drcn.dbankcdn.com/FileServer/getFile/cmtybbs/551/694/925/0030086000551694925.20220510173233.49451900223950460744704259912628:50530512030137:2800:492F14E3D15D63E6F67E899F5EDEA761971A527C3FB493B46FF7D81600E829DD.png全局变量device_path是空的,而build\lite\config\BUILDCONFIG.gn所在路径下https://alliance-communityfile-drcn.dbankcdn.com/FileServer/getFile/cmtybbs/551/694/925/0030086000551694925.20220510173646.14155348095915075943608435965118:50530512030137:2800:038AC93A1FE6B8275509A33B853202B169EF6A2C4B6DE62195A910E085D3FFBC.png,确实没有config.gni这个编译构建文件
请问该如何解决呢,谢谢~
找一下其他地方有没有config.gni文件,还有是最好不要有中文路径 风火轮用户68631 发表于 2022-5-13 14:16
找一下其他地方有没有config.gni文件,还有是最好不要有中文路径
好的我先试一下不带中文的,再搭建一遍看看
页:
[1]