Boot to Qt 设备开发

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

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

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

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

保护设备连接

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

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

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

如果经常出现超时,可以考虑使用基于密钥的身份验证。使用ssh-keygen 工具在Qt Creator 中创建 SSH 密钥。

在 macOS 和 Linux 上,进入首选项>Devices >SSH ,在Connection sharing timeout 字段中增加共享 SSH 连接的时间(分钟)。Windows 不支持共享连接。

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

另请参阅 如何:为Boot to Qt 开发如何:管理工具包Qt Application Manager 运行Boot to Qt 部署配置Boot to Qt 运行设置,以及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.