• 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
6
7## Compilation
8
91.  First compilation:
10
11    ```
12    ./build.sh --product-name rk3568
13    ```
14
152.  Compile an ARK runtime after the first compilation:
16
17    linux-x86:
18	```
19    ./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages
20    ```
21
22	oh-arm64:
23	```
24	./build.sh --product-name rk3568 --gn-args use_musl=true --target-cpu arm64 --build-target ark_js_packages
25	```
26
27	oh-arm32:
28	```
29	./build.sh --product-name rk3568 --build-target  ark_js_packages
30	```
31
323.  Compile the ARK frontend after the first compilation:
33
34    ```
35    ./build.sh --product-name rk3568 --build-target ets_frontend_build
36    ```
37
38**NOTE**:  Run the compilation commands in the project root directory.
39
40The binary files related to ARK are available in the following paths:
41
42```
43out/hispark_taurus/arkcompiler/runtime_core/
44out/hispark_taurus/arkcompiler/ets_frontend/
45out/hispark_taurus/arkcompiler/ets_runtime/
46out/hispark_taurus/clang_x64/arkcompiler/runtime_core/
47out/hispark_taurus/clang_x64/arkcompiler/ets_frontend/
48out/hispark_taurus/clang_x64/arkcompiler/ets_runtime
49```
50