• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Building
2
3
4You 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](../quick-start/quickstart-standard-reference.md).
5
6
7Go to the root directory of the source code in the Ubuntu environment and perform the following steps:
8
9
101. Set the build path.
11
12   ```
13   hb set
14   ```
15
162. Select the current path.
17
18   ```
19   .
20   ```
21
223. Select **Hi3516D V300** under **built-in** and press **Enter**.
23
244. Start building.
25
26   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
27   > - To build a component (for example, **hello**), run the **hb build -T _ Target name _** command.
28   >
29   > - To build a product incrementally, run the **hb build** command.
30   >
31   > - To build a product from the scratch, run the **hb build -f** command.
32   >
33   > This example builds a product from the scratch.
34
35
36   ```
37   hb build -f
38   ```
39
40
41     **Figure 1** Hi3516 build settings
42
43     ![en-us_image_0000001271562433](figures/en-us_image_0000001271562433.png)
44
455. Check the build result. If "build success" is displayed, the building is successful.
46
47   > ![icon-notice.gif](public_sys-resources/icon-notice.gif) **NOTICE**
48   > The build result and log files are stored in **out/hispark_taurus**.
49