在本页中

Boot to Qt 设备开发

如何开发Boot to Qt

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

Boot to Qt堆栈可在各种硬件上运行。Qt 许可证持有者可自定义堆栈内容,并将其用于生产硬件。

注: 启用Boot to Qt 插件即可使用。

如果计算机上安装了用于为Boot to Qt 设备构建应用程序的工具链,可将其添加到带有Boot to Qt 设备类型的套件中,以便为其构建应用程序并在设备上运行。

设备偏好设置中的设备选项卡

保护设备连接

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

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

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

如果经常出现超时,请考虑使用基于密钥的身份验证。使用ssh-keygen 工具在Qt Creator 中创建 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.