用QT扫描API
我正在尝试使用嵌入式板的 SWUpdate 工具更新我的应用程序。 我已经创建了我的 .swu 包,并使用 ssh 命令行,它工作正常。 我需要从 Qt 应用程序启动更新。 我该怎么办?
也许我可以启动 QProcess::execute("swupdate -i /run/media/AppUpdate.swu"),但它仍然不起作用。
如何与已安装的 Qt SWUpdate API 链接?
谢谢。
I'm trying to update my application using SWUpdate tool for my embedded board.
I already created my .swu pack, anche with ssh command line, it works fine.
I need to launch the update from my Qt application.
How can I do?
Maybe I can launch QProcess::execute("swupdate -i /run/media/AppUpdate.swu"), but it still not working.
How can I link with Qt the SWUpdate API installed?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您没有说明您正在使用哪个 Qt 版本。较新的版本在您使用 QProcess::execute 调用时弃用了它(程序名称和参数在一个字符串中)。
尝试一下:
我建议还实现并连接 readyRead 信号并保存/记录 swupdate 的输出,以防更新期间出现问题。
You did not state which Qt version you are using. The more recent ones deprecated the QProcess::execute call as you are using it (program name and arguments in one string).
Try this:
I recommend to also implement and connect the readyRead signal and save/log swupdate's output in case something goes wrong during the update.