连接远程 Linux 设备
在通用 Linux 设备和Qt Creator 之间建立连接,以便在这些设备上运行、调试和分析应用程序。
配置Qt Creator 与远程 Linux 设备之间的连接:
- 确保可以通过 IP 地址连接到您的设备。
- 转到首选项>Kits >Qt Versions 。
- 选择Add 添加嵌入式 Linux 的 Qt XML 版本。
- 转到Preferences >Kits >Compilers 。
- 选择Add ,添加用于构建应用程序的编译器。
- 转到Preferences >Devices >Devices 。
- 选择Add 添加远程 Linux 设备。
- 转到Preferences >Kits 。
- 选择Add ,添加用于为设备构建的工具包。
- 选择上面添加的 Qt 版本、编译器和设备。
- 在Run device 中选择Remote Linux Device ,在Type 中选择 ,然后在Device 中选择要运行的实际设备。
- 指定构建设置:
- 为要在设备上开发的应用程序打开一个项目。
- 选择Projects >Build & Run ,启用上文指定的工具包。
- 选择Run 以指定运行设置。通常可以使用默认设置。
运行项目时,Qt Creator 会按照部署步骤的指定部署应用程序。
另请参阅 如何:为远程 Linux 开发、如何:管理工具包、为远程 Linux 设备开发、远程 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.