openharmony 鸿蒙 quickstart-pkg-3568-build

2022-12-05 浏览 (741)

Building Source Code

For details about the functions of the OpenHarmony compilation and building module, see Compilation and Building Guide.

Prerequisites

Procedure

Method 1: using hb for compilation (install compilation tools first)

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
    
  2. Select the current path.

    .
    
  3. Select rk3568 under hihope and press Enter.

    icon-note.gif 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 RK3568 build settings

    quickstart-standard-rk3568-build

  4. If you are building the source code into a 32-bit system, skip this step.

    If you are building the source code into a 64-bit system, run the following command:

    hb build --target-cpu arm64
    
  5. Start building.

    icon-note.gif 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
    
  6. 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.

Method 2: using the build.sh script for compilation

For details, see Building Source Code Using the build.sh Script.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Getting Started

harmony 鸿蒙Build Form Factors

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

harmony 鸿蒙Building Source Code

harmony 鸿蒙Burning an Image

harmony 鸿蒙Writing a Hello World Program

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/ad1b7a024ba241a1a45a2ba02daf8d22