为 VxWorks 设备创建工具包

要为 VxWorks 开发 Qt 应用程序,请为 VxWorks 构建Qt并创建 VxWorks工具包。目前,您可以使用 Qt 6.8 开发应用程序,并为 VxWorks 24.03 设备构建这些应用程序。您还不能将设备连接到Qt Creator ,因此必须将构建的软件包部署到设备上并在设备上手动运行。

注意: 启用 VxWorks 插件才能使用。

创建工具包

  1. 转到首选项>Devices >VxWorks

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

  2. VxWorks installation folder 中,选择 WindRiver 安装程序安装 VxWorks 的目录。
  3. 选择Add Kit
  4. Kit name 中,输入工具包的名称。

    创建新工具包对话框

  5. Qt version 中,选择包含 Qt VxWorks 构建用 qmake 的文件夹。
  6. VBS path 中,输入 VxWorks 源代码构建 (VSB) 目录的路径。
  7. Host name 中,输入设备的主机名或 IP 地址。
  8. 选择OK 以创建 VxWorks 工具包。
  9. 转到Projects >Build & Run ,为您的项目激活工具包。

注意: 要部署已构建的软件包,可以在项目的部署配置中添加一个构建步骤,将项目的已构建二进制文件复制到与设备共享的 NFS 目录中。

另请参阅 启用和禁用插件为项目激活工具包在 VxWorks 设备上调试 C++ 应用程序远程 Linux 部署配置VxWorks 版 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.