OpenHarmony开发者论坛
标题:
如何构建OpenHarmony的debug版本用于进行子系统调试。
[打印本页]
作者:
weggle
时间:
2023-11-5 23:20
标题:
如何构建OpenHarmony的debug版本用于进行子系统调试。
[md]我想用GDB调试OpenHarmony的子系统,所以构建时增加debug选项,用来在构建时保留更多符号信息以助于debug,我参考了
https://blog.csdn.net/openharmony/article/details/128558711
帖子 使用以下命令进行构建:
```
./build.sh --product-name=rk3568 --gn-args="is_debug=true use_unstripped_as_runtime_outputs=true"
```
然而,构建过程中发生报错,报错内容如下:
![image.png](
"image.png")
请问是否处理过这种错误,或者是否尝试过构建debug版本的openharmony源代码。
[/md]
作者:
weggle
时间:
2023-11-5 23:21
[md]我想上传完整的build log,但是没有发现上传附件的选项
[/md]
作者:
s_hao
时间:
2023-11-6 15:12
回复
weggle
: 完整的图片能否发我一下,或者贴在评论区
作者:
weggle
时间:
2023-11-6 20:19
回复
s_hao
: 改了一些构建文件以及注释了一些代码,就可以build了,请问您有build过debug版本(就是带debug符号信息)的OH吗?我build后然后烧录也成功了,但是启动的时候一直卡死在启动界面(但是可以通过hdc shell进去),通过查看hilog,我发现日志一直重复输出以下内容:
11-06 20:15:10.828 1678 1678 E C01510/BinderInvoker: 124: SendRequest: handle=0 result = 3
11-06 20:15:10.828 1678 1678 W C01800/SA_CLIENT: GetSystemAbilityWrapper:sa 5100 is not exist
11-06 20:15:10.828 1675 1675 E C01510/BinderInvoker: 124: SendRequest: handle=0 result = 3
11-06 20:15:10.828 1675 1675 W C01800/SA_CLIENT: GetSystemAbilityWrapper:sa 5100 is not exist
11-06 20:15:10.828 252 693 E C01800/SAMGR: [SA Scheduler][SA: 10] not in SA profiles
11-06 20:15:10.828 252 693 W C01800/SAMGR: NOT found service : 10
11-06 20:15:10.828 252 693 I C01800/SAMGR: [SA Scheduler][SA: 10] handle load event by check start
11-06 20:15:10.828 252 693 E C01800/SAMGR: [SA Scheduler][SA: 10] not in SA profiles
11-06 20:15:10.828 687 687 E C01510/BinderInvoker: 124: SendRequest: handle=0 result = 3
11-06 20:15:10.828 687 687 W C01800/SA_CLIENT: GetSystemAbilityWrapper:sa 10 is not exist
11-06 20:15:10.828 252 287 E C01800/SAMGR: [SA Scheduler][SA: 5100] not in SA profiles
11-06 20:15:10.828 252 287 W C01800/SAMGR: NOT found service : 5100
11-06 20:15:10.828 252 287 I C01800/SAMGR: [SA Scheduler][SA: 5100] handle load event by check start
11-06 20:15:10.828 252 287 E C01800/SAMGR: [SA Scheduler][SA: 5100] not in SA profiles
11-06 20:15:10.829 1672 1672 E C01510/BinderInvoker: 124: SendRequest: handle=0 result = 3
11-06 20:15:10.829 1672 1672 W C01800/SA_CLIENT: GetSystemAbilityWrapper:sa 5100 is not exist
11-06 20:15:10.838 1654 1654 E C01800/SA_CLIENT: GetSystemAbilityWrapper sa 5100 didn't start. Returning nullptr
11-06 20:15:10.858 252 287 E C01800/SAMGR: [SA Scheduler][SA: 5100] not in SA profiles
11-06 20:15:10.858 252 287 W C01800/SAMGR: NOT found service : 5100
11-06 20:15:10.858 252 287 I C01800/SAMGR: [SA Scheduler][SA: 5100] handle load event by check start
11-06 20:15:10.859 252 693 E C01800/SAMGR: [SA Scheduler][SA: 5100] not in SA profiles
11-06 20:15:10.859 252 693 W C01800/SAMGR: NOT found service : 5100
11-06 20:15:10.859 252 693 I C01800/SAMGR: [SA Scheduler][SA: 5100] handle load event by check start
11-06 20:15:10.859 252 693 E C01800/SAMGR: [SA Scheduler][SA: 5100] not in SA profiles
复制代码
作者:
论坛小助手
时间:
2023-11-8 17:15
[md]可以使用此命令进行debug版本编译:./build.sh --product-name rk3568 --ccache --gn-args is_debug=true --keep-ninja-going,但是由于门禁默认的是release编译所以会有很多编译问题需要处理
[/md]
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5