• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Environment Setup and Compilation<a name="EN-US_TOPIC_0000001174215863"></a>
2
3-   [Configuring the Environment](#section922419503415)
4-   [Compilation](#section1166711064317)
5
6## Configuring the Environment<a name="section922419503415"></a>
7
8Use Ubuntu 18.04 or 20.04. For details about how to set up the environment, see:
9
10[Setting Up Ubuntu Development Environment with Installation Package and Building Source Code](https://gitee.com/openharmony/docs/blob/master/en/device-dev/quick-start/quickstart-standard-package-environment.md)
11
12## Compilation<a name="section1166711064317"></a>
13
141.  First compilation:
15
16    ```
17    ./build.sh --product-name Hi3516DV300
18    ```
19
202.  Compile an ARK runtime after the first compilation:
21
22    ```
23    ./build.sh --product-name Hi3516DV300 --build-target ark_js_runtime
24    ```
25
263.  Compile the ARK frontend after the first compilation:
27
28    ```
29    ./build.sh --product-name Hi3516DV300 --build-target ark_ts2abc_build
30    ```
31
32
33The binary files related to ARK are available in the following paths:
34
35```
36out/ohos-arm-release/ark/ark/
37out/ohos-arm-release/ark/ark_js_runtime/
38out/ohos-arm-release/clang_x64/ark/ark/
39out/ohos-arm-release/clang_x64/ark/ark_js_runtime
40```
41
42