1# Building Source Code 2 3 4You 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](quickstart-pkg-common-build.md). 5 6 7For details about the functions of the OpenHarmony compilation and building module, see [Compilation and Building Guide](../subsystems/subsys-build-all.md). 8 9 10## Prerequisites 11 12- The [required libraries and tools](quickstart-pkg-install-package.md) have been installed. 13 14- The [compilation tools](quickstart-pkg-install-tool.md) have been installed. 15 16- The Hello World program is ready for use. 17 18- The access to the Ubuntu environment is normal. 19 20 21## Procedure 22 23Go to the root directory of the source code and run the build command. 24 251. Set the build path. 26 27 ``` 28 hb set 29 ``` 30 312. Select the current path. 32 33 ``` 34 . 35 ``` 36 373. Select **ipcamera_hispark_taurus** under **hisilicon** and press **Enter**. 38 >  **NOTE** 39 > 40 > 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](quickstart-appendix-compiledform.md). 41 42 **Figure 1** Hi3516 build settings 43 44  45 464. Start building. 47 >  **NOTE** 48 > - To build a component (for example, **hello**), run the **hb build -T *targetName*** command. 49 > 50 > - To build a product incrementally, run the **hb build** command. 51 > 52 > - To build a product from the scratch, run the **hb build -f** command. 53 > 54 > This example builds a product from the scratch. 55 56 57 ``` 58 hb build -f 59 ``` 60 615. Check the build result. If "build success" is displayed, the building is successful. 62 >  **NOTICE** 63 > 64 > Paths to burning-related files: 65 > 66 > - Build result and log files: **out/hispark_taurus/ipcamera_hispark_taurus** 67 > 68 > - U-Boot file: **device/board/hisilicon/hispark_taurus/uboot/out/boot/u-boot-hi3516dv300.bin** 69