OpenHarmony开发者论坛
标题:
OpenHarmony4.1 编译软总线工具softbus tool出错
[打印本页]
作者:
晚秋大魔王
时间:
2025-4-11 16:40
标题:
OpenHarmony4.1 编译软总线工具softbus tool出错
[md]参照大佬的资料
https://forums.openharmony.cn/fo ... thread&tid=2469
将相关仓库
https://gitee.com/zhan-zhaoming/dsoftbus_tool
代码拉取到了tools目录下

然后需要在foundation/BUILD.gn中添加 `"softbus_tool:softbus_tool"`字段,但是4.1版本目录下压根没有这个文件,从4.0版本仓库中拉取了一个进入,修改过后,使用命令编译

报错

请教大佬该怎么解决
[/md]
作者:
chunchuchenchen
时间:
2025-4-16 13:33
按理来说应该还有个bundle.json的描述文件泥没有配置,去源码上似乎也没,有这个才能认得到,如果还认不到就得去改vendor下的一个config.json文件添加你的应用名字。
作者:
shixiaocheng
时间:
2025-4-17 15:11
可以看看这个
https://gitee.com/shixiaocheng12138/dsoftbus_tool
作者:
晚秋大魔王
时间:
2025-4-21 09:55
回复
shixiaocheng
: 谢谢您,我编译过去了。原因是hilog日志使用要添加依赖。但是现在运行发布或者接受就会报错ERROR - UnPublishService fail, ret = -426442749.实在是不知道怎么办了
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5