本页内容

在 QNX 设备上运行

要构建应用程序并在设备上运行:

  1. 将设备连接到计算机或网络。
  2. 转至Preferences >Devices >Devices ,并添加一台 QNX 设备。

    “设备”首选项中的“设备”选项卡中的 QNX 设备

  3. 请确保您的开发套件中已配置好 QNX 设备。
  4. 选择““运行”按钮 ”(Run )。

Qt Creator 将使用 QNX 工具链中指定的编译器来构建应用程序。

注意: 目前仅在 Linux 和 macOS 上完全支持调试 。在 Windows 上无法在运行时插入断点。

故障排除

为了支持从Qt Creator 运行、调试和停止应用程序,QNX Neutrino RTOS 提供了额外的命令行工具和服务,如《Qt for QNX》中所述。

无法显示调试输出

要使命令行输出显示在“应用程序输出”中Qt Creator 必须与设备建立 SSH 连接。只有在 QNX Momentics 未运行,且为设备配置的 SSH 密钥为 4096 位密钥时,才可能实现这一点。

如果未满足这些条件,您将收到一条错误消息,提示无法显示调试输出。

无法运行、调试或停止应用程序

QNX 设备的板级支持包 (BSP) 可能缺少以下部分应用程序,而Qt Creator 需要这些应用程序才能在 QNX 设备上运行、调试和停止应用程序:awkgrepkillnetstatprintprintfpsreadsedsleepunameslog2info 以及cat

另请参阅 《如何:为 QNX 开发》《如何:管理开发套件》、《为 QNX Neutrino 设备开发》、《管理开发套件》和《运行应用程序》。

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.