Hi3861 执行集成三方SDK步骤出错 - HarmonyOS技术社区 - 电子技术william hill官网 - 广受欢迎的专业电子william hill官网 - 威廉希尔官方网站
分享 收藏 返回

SeanOY 关注 私信
[问答]

Hi3861 执行集成三方SDK步骤出错

链接:集成三方SDK
执行到中间的步骤,输入指令出错。
引用: python build.py wifiiot --target //domains/iot/link:iot
错误log:
引用: sean@sean-virtual-machine:~/HarmonyOS_Code$ python build.py wifiiot --target //domains/iot/link:iot
usage:
  python build.py ipcamera_hi3516dv300
  python build.py ipcamera_hi3518ev300
  python build.py wifiiot
build.py: error: unrecognized arguments: --target //domains/iot/link:iot

单独执行指令正确 python build.py wifiiot




之后修改build/lite/product/wifiiot.json下wifiiot相关参数如下
引用:     {
      "name": "domains",
      "component": [
        { "name": "wifi-iot", "dir": "//domains/iot/link", "features":[] }
      ]
    },
使用指令python build.py wifiiot 编译出错,错误信息如下:
引用: sean@sean-virtual-machine:~/HarmonyOS_Code$ python build.py wifiiot

=== start build ===

ERROR at //domains/iot/link/BUILD.gn:24:15: Assignment had no effect.
    version = "1.0.0"
              ^------
You set the variable "version" here and it was unused before it went
out of scope.
See //build/lite/BUILD.gn:19:19: which caused the file to be included.
    product_cfg = read_file("//build/lite/product/${product}.json", "json")
                  ^-------------------------------------------------------
you can check build log in /home/sean/HarmonyOS_Code/out/wifiiot/build.log
/home/sean/gn/gn gen /home/sean/HarmonyOS_Code/out/wifiiot --root=. --dotfile=build/lite/.gn --args='product = "wifiiot" ohos_build_type = "release"' failed, return code is 1
usage:
  python build.py ipcamera_hi3516dv300
  python build.py ipcamera_hi3518ev300
  python build.py wifiiot

positional arguments:
  product               Name of the product

optional arguments:
  -h, --help            show this help message and exit
  -b BUILD_TYPE, --build_type BUILD_TYPE
                        release or debug version.
  -t [TEST [TEST ...]], --test [TEST [TEST ...]]
                        Compile test suit
  -n, --ndk             Compile ndk

请问又遇到相同问题的小伙伴吗?请教下应该如何解决,乔帮主跟我说在application里面进行代码编写,但我觉得如果guide里面的例程都通过不了,那文档本身就存在问题了 :( 谢谢了。


回帖(6)

elecfans小能手

2020-10-29 17:45:02
麻烦请高手来解答下问题@l_xy

emitter

2020-11-4 09:37:24
老哥问题解决没?
1
  • SeanOY: 木有呢,完全按照教程来做的,难道说其他人都没遇到吗 T T

陈伟霆

2020-11-18 08:10:11
ERROR at //domains/iot/link/BUILD.gn:24:15: Assignment had no effect.
    version = "1.0.0"
试着把version="1.0.0"删掉,再编译看看应该可以通过
1

戈英祯

2021-1-26 09:44:41
有一个连老师的paho mqtt的集成教程,可以参考,只需要把模块注册了就可以,编译命令及其他的都不其他修改!

ResolutionLxk

2021-1-27 17:29:02
我也遇到了同样的问题

死龙

2021-1-28 08:42:47
ERROR at //domains/iot/link/BUILD.gn:24:15: Assignment had no effect.
    version = "1.0.0"
去掉这个未使用的定义字段内容
1

更多回帖

×
发帖