连接Boot to Qt 设备
在 Boot to Qt 设备与Qt Creator 之间建立连接,以便在设备上运行、调试和分析应用程序。
注意:需启用 Boot to Qt 插件才能使用。
要配置Qt Creator 与Boot to Qt 设备之间的连接:
- 请确认可以访问该设备的 IP 地址,或使用 USB 将其连接。
- 转至Preferences >Kits >Qt Versions 。
- 选择“Add ”以添加适用于Boot to Qt 的Qt XML版本。
- 转到“Preferences ” > “Kits ” > “Compilers ”。
- 选择“Add ”以添加用于构建应用程序的编译器。
- 转到Tools > Flash Boot to Qt 使用“Boot to Qt 刷写向导”将Boot to Qt 镜像刷写到 SD 卡上。
Boot to Qt 固件刷写向导" src="images/qtcreator-boot2qt-flashing-wizard.png" title="Boot to Qt 固件刷写向导"/>
- 按照向导的指示将镜像刷写到 SD 卡上。
- 访问Preferences >Devices >Devices 。
- 选择“Add ”以添加Boot to Qt 设备。
Qt Creator 系统会自动检测通过 USB 连接的设备。
- 转到“Preferences ” > “Kits ”。
- 选择“Add ”以添加用于该设备的构建套件。
- 选择 Qt 版本、编译器和您上面添加的设备。
- 在“Run device ”中,在“Type ”下选择“Boot2Qt Device ”,然后在“Device ”中选择要运行的实际设备。
- 要指定构建设置:
- 打开要为该设备开发的应用程序项目。
- 转至“Projects ” > “Build & Run ”,以激活您在上一步中指定的开发套件。
- 转至“Run Settings ”以指定运行设置。通常情况下,您可以使用默认设置。
- 运行项目时,Qt Creator 会根据Deploy Settings 中指定的设置部署应用程序。默认情况下,Qt Creator 会将应用程序文件复制到设备上。
另请参阅 “配置 SSH 连接”、“生成 SSH 密钥”、“启用和禁用插件”、“如何:为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.