连接远程 Linux 设备
在通用 Linux 设备与Qt Creator 之间建立连接,以便在这些设备上运行、调试和分析应用程序。
要配置Qt Creator 与远程Linux设备之间的连接:
- 请确保可以通过 IP 地址访问您的设备。
- 转至Preferences > “Kits ” > “Qt Versions ”。
- 选择“Add ”以添加适用于嵌入式 Linux 的 Qt 版本。
- 转至Preferences >Kits >Compilers 。
- 选择Add 以添加用于构建应用程序的编译器。
- 转到Preferences >Devices >Devices 。
- 选择“Add ”以添加远程 Linux 设备。
- 转到Preferences >Kits 。
- 选择“Add ”以添加用于该设备的构建套件。
- 选择您在上一步中添加的 Qt 版本、编译器和设备。
- 在“Run device ”中,选择“Type ”下的“Remote Linux Device ”,然后在“Device ”中选择实际要运行的设备。
- 要指定构建设置:
- 打开要为该设备开发的应用程序项目。
- 选择“Projects ” > “Build & Run ”,以启用您在上文中指定的开发套件。
- 转至“Run Settings ”以指定运行设置。通常,您可以使用默认设置。
- 运行项目时,Qt Creator 会根据“Deploy Settings ”中的设置部署应用程序。
另请参阅 《操作指南:为远程 Linux 设备开发》、《操作指南:管理套件》以及《为远程 Linux 设备开发》。
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.