harmony(鸿蒙)Building

  • 2022-08-09
  • 浏览 (485)

Building

You can build source code with hb or the build.sh script. This section exemplifies how to build source code with hb. For details about how to build with the build.sh script, see Building Source Code Using the build.sh Script.

Go to the root directory of the source code in the Ubuntu environment and perform the following steps:

  1. Set the build path.
   hb set
  1. Select the current path.
   .
  1. Select rk3568 under built-in and press Enter.

  2. Start building.

icon-note.gif NOTE - To build a component (for example, hello), run the hb build -T _ Target name _ 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
 **Figure 1** RK3568 build settings

 ![en-us_image_0000001226922302](figures/en-us_image_0000001226922302.png)
  1. Check the build result. If “rk3568 build success” is displayed, the building is successful.

icon-notice.gif NOTICE The build result and log files are stored in out/rk3568.

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Getting Started

harmony(鸿蒙)Overall Description of Compilation Form Factors

harmony(鸿蒙)Importing a Source Code Project

harmony(鸿蒙)Setting Up the Windows+Ubuntu Hybrid Development Environment

harmony(鸿蒙)Introduction to the Hi3516 Development Board

harmony(鸿蒙)Introduction to the Hi3861 Development Board

harmony(鸿蒙)Mini and Small System Overview

harmony(鸿蒙)Obtaining Source Code

harmony(鸿蒙)Building

harmony(鸿蒙)Burning

0  赞