<< 点击显示目录 >> 主页 exOS使用助手 > exOS Automation Help > General information > Workflow |
本章介绍创建 exOS 软件包的步骤。这些步骤可能由 不同角色的开发人员负责 。根据项目和客户情况 的不同,在开发 exOS 软件包时可能会采用不同的方法 。
要创建一个 exOS 软件包,必须采取以下步骤:
•定义与 exOS 组件的接口
接口说明 AR 和 Linux 之间要交换哪些数据。
•生成存根应用程序
使用 exOS 组件生成器创建组件模板。在 AR 端,第一步中定义的接口将用于自动生成的功能块的输入和输出。
•在 Linux 上实现功能
现在,可以在 Linux 应用程序中实现实际功能。
•创建安装包
Linux 应用程序可以 "按原样 "提供(可执行),也可以打包成压缩包(.zip、.tar.gz)或安装包(.deb)。
•在描述文件中更改 exOS 软件包
配置 .exospkg 文件,使其包含 exOS 组件所需的文件和首选 Linux 服务。
This chapter describes the steps to create an exOS Package. Those steps may be handled by developers fulfilling different roles. Depending on the project and customer situation, different approaches may be taken in the development of exOS Packages.
In order to create an exOS Package, the following steps have to be taken:
•Define the interface to the exOS Component
The interface describes what data is exchanged between AR and Linux.
•Generate the stub application
Using the exOS Component Generator, a template for the component is created. On the AR side, the interface defined in the first step is used for the inputs and outputs of an auto-generated function block.
•Implement the functionality on Linux
Now, the actual functionality can be implemented in the Linux application.
•Create the installation package
The Linux application may be provided "as-is" (executable) or may be packaged in an archive (.zip, .tar.gz) or a package installer (.deb).
•Change the exOS Package in the description file
Configure the .exospkg file to include the needed files and preferred Linux services of the exOS Component.