本页内容

Boot to Qt 设备进行开发

操作指南:为Boot to Qt

Boot to Qt 设备连接到计算机,以便运行、调试和分析从Qt Creator 构建的应用程序。

Boot to Qt 该技术栈可在多种硬件上运行。Qt 许可证持有者可以自定义该技术栈的内容,并将其部署到生产硬件中。

注意:请启用 Boot to Qt 插件才能使用它。

如果计算机上已安装用于构建Boot to Qt 设备应用程序的工具链,请将其添加到一个套件中,并设置为“Boot 到 Qt XML”设备类型,以便构建应用程序并在设备上运行。

“设备”首选项中的“设备”选项卡

保护设备连接

为保护Qt Creator 与设备之间的连接,请使用OpenSSH通过 SSH 协议进行远程登录。OpenSSH 套件未随Qt Creator 一起提供,因此请将其下载并安装到计算机上。然后,在Qt Creator 中配置工具的路径。

您需要使用密码或 SSH 公钥和私钥对进行身份验证。如果您没有 SSH 密钥,请使用ssh-keygen 工具在Qt Creator 中创建。

注意: Qt Creator 不存储密码,因此如果您使用密码认证,可能需要在每次连接设备时输入密码;或者,如果启用了缓存,则在每次Qt Creator 重启时都需要输入密码。

如果您经常遇到超时问题,请考虑使用基于密钥的身份验证。请在Qt Creator 中使用ssh-keygen 工具创建一个 SSH 密钥。

在 macOS 和 Linux 系统上,请转至Preferences >Devices >SSH ,并在“Connection sharing timeout ”字段中增加 SSH 连接共享的时间(以分钟为单位)。Windows 系统不支持共享连接。

“设备”偏好设置中的“SSH”选项卡

另请参阅 《如何:为Boot to Qt 进行开发》《如何:管理开发套件》、Qt Application Manager 中运行》以及《Boot to Qt :文档》

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.