harmony 鸿蒙Building Source Code
Building Source Code
You can build source code with hb or the build.sh script. This topic describes how to build source code with hb. For details about how to use the build.sh script, see Building Source Code Using the build.sh Script.
For details about the functions of the OpenHarmony compilation and building module, see Compilation and Building Guide.
Prerequisites
The required libraries and tools have been installed.
The compilation tools have been installed.
The tools specially required by Hi3861 have been installed.
The Hello World program is ready for use.
The access to the Ubuntu environment is normal.
Procedure
Go to the root directory of the source code in the Ubuntu environment and perform the following steps:
- Set the build path.
hb set
- Select the current path.
.
- Select wifiiot_hispark_pegasus under hisilicon and press Enter. > NOTE > > When adapting the development board to a specific use case, select an appropriate build form factor, that is, product settings. For details, see Build Form Factors.
Figure 1 Hi3861 build settings
- Start building. > NOTE > - To build a component (for example, hello), run the hb build -T *targetName* command. > > - To build a product incrementally, run the hb build command. > > - To build a product from the scratch, run the hb build -f command. > > This example builds a product from the scratch.
hb build -f
- Check the build result. If “build success” is displayed, the building is successful. > NOTICE > > The build result and log files are stored in out/hispark_pegasus/wifiiot_hispark_pegasus.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Getting Started with the Standard System with Hi3516 (IDE Mode)
harmony 鸿蒙Getting Started with the Standard System with Hi3516 (CLI Mode)
harmony 鸿蒙Hi3516 Development Board
harmony 鸿蒙Hi3861 Development Board
harmony 鸿蒙RK3568 Development Board
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦