• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Environment Setup and Compilation
2
3## Environment Configuration
4
5Use Ubuntu 18.04 or 20.04. For details about how to set up the environment, see:
6
7[Setting Up Ubuntu Development Environment with Installation Package and Building Source Code](https://developer.huawei.com/consumer/cn/training/course/video/C101639988048536240)
8
9## Compilation
10
111.  First compilation:
12
13    ```
14    ./build.sh --product-name rk3568
15    ```
16
172.  Compile an ARK runtime after the first compilation:
18
19    linux-x86:
20	```
21    ./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages
22    ```
23
24	oh-arm64:
25	```
26	./build.sh --product-name rk3568 --gn-args use_musl=true --target-cpu arm64 --build-target ark_js_packages
27	```
28
29	oh-arm32:
30	```
31	./build.sh --product-name rk3568 --build-target  ark_js_packages
32	```
33
343.  Compile the ARK frontend after the first compilation:
35
36    ```
37    ./build.sh --product-name rk3568 --build-target ets_frontend_build
38    ```
39
40**NOTE**:  Run the compilation commands in the project root directory.
41
42The binary files related to ARK are available in the following paths:
43
44```
45out/hispark_taurus/arkcompiler/runtime_core/
46out/hispark_taurus/arkcompiler/ets_frontend/
47out/hispark_taurus/arkcompiler/ets_runtime/
48out/hispark_taurus/clang_x64/arkcompiler/runtime_core/
49out/hispark_taurus/clang_x64/arkcompiler/ets_frontend/
50out/hispark_taurus/clang_x64/arkcompiler/ets_runtime
51```
52