[问答]windows平台编译 harmony code 1.1.1-LTS 版本 utf-8问题 hi3861

阅读量0
0
4
初始化代码后build编译报错内容如下

Processing hi3861 (platform: hisilicon; board: hi3861; framework: hb)
----------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
builder(["outhispark_pegasuswifiiot_hispark_pegasusHi3861_wifiiot_app.out"], [])
[OHOS INFO] [1/46] AR libs/libbroadcast.a
[OHOS INFO] [2/46] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/source/libsamgr.samgr_lite.o
[OHOS INFO] [3/46] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/adapter/cmsis/libsamgr_adapter.memory_adapter.o     
[OHOS INFO] [4/46] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/adapter/cmsis/libsamgr_adapter.queue_adapter.o      
[OHOS INFO] [5/46] gcc cross compiler obj/utils/native/lite/kv_store/src/kvstore_impl_hal/libutils_kv_store.kv_store.o
[OHOS INFO] [6/46] gcc cross compiler obj/utils/native/lite/kv_store/src/kvstore_common/libutils_kv_store.kvstore_common.o
[OHOS INFO] [7/46] STAMP obj/applications/sample/wifi-iot/app/startup/startup.stamp
[OHOS INFO] [8/46] COPY ../../../foundation/distributedschedule/samgr_lite/config/system_capability.json obj/foundation/distributedschedule/samgr_lite/config/system_capability.json
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "c:usersqylin.deveco-device-toolcoredeveco-venvlibsite-packageshb__main__.py", line 80, in main
[OHOS ERROR]     status = args.command(args)
[OHOS ERROR]   File "c:usersqylin.deveco-device-toolcoredeveco-venvlibsite-packageshbbuildbuild.py", line 94, in exec_command      
[OHOS ERROR]     return build.build(args.full, cmd_args=cmd_args)
[OHOS ERROR]   File "c:usersqylin.deveco-device-toolcoredeveco-venvlibsite-packageshbbuildbuild_process.py", line 119, in build     
[OHOS ERROR]     exec_cmd(cmd_args)
[OHOS ERROR]   File "c:usersqylin.deveco-device-toolcoredeveco-venvlibsite-packageshbbuildbuild_process.py", line 200, in ninja_build
[OHOS ERROR]     exec_command(ninja_cmd, log_path=self.config.log_path, log_filter=True)
[OHOS ERROR]   File "c:usersqylin.deveco-device-toolcoredeveco-venvlibsite-packageshbcommonutils.py", line 113, in exec_command     
[OHOS ERROR]     for line in iter(process.stderr.readline, ''):
[OHOS ERROR]   File "C:UsersqylinAppDataLocalProgramsPythonPython38libcodecs.py", line 322, in decode
[OHOS ERROR]     (result, consumed) = self._buffer_decode(data, self.errors, final)
[OHOS ERROR] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 24: invalid start byte
[OHOS ERROR] Unhandled error: 'utf-8' codec can't decode byte 0xbe in position 24: invalid start byte

*** [outhispark_pegasuswifiiot_hispark_pegasusHi3861_wifiiot_app.out] Error -1


回帖

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
链接复制成功,分享给好友