14514f5e3Sopenharmony_ci# Environment Setup and Compilation 24514f5e3Sopenharmony_ci 34514f5e3Sopenharmony_ci## Environment Configuration 44514f5e3Sopenharmony_ci 54514f5e3Sopenharmony_ciUse Ubuntu 18.04 or 20.04. For details about how to set up the environment, see: 64514f5e3Sopenharmony_ci 74514f5e3Sopenharmony_ci[Setting Up Ubuntu Development Environment with Installation Package and Building Source Code](https://developer.huawei.com/consumer/cn/training/course/video/C101639988048536240) 84514f5e3Sopenharmony_ci 94514f5e3Sopenharmony_ci## Compilation 104514f5e3Sopenharmony_ci 114514f5e3Sopenharmony_ci1. First compilation: 124514f5e3Sopenharmony_ci 134514f5e3Sopenharmony_ci ``` 144514f5e3Sopenharmony_ci ./build.sh --product-name rk3568 154514f5e3Sopenharmony_ci ``` 164514f5e3Sopenharmony_ci 174514f5e3Sopenharmony_ci2. Compile an ARK runtime after the first compilation: 184514f5e3Sopenharmony_ci 194514f5e3Sopenharmony_ci linux-x86: 204514f5e3Sopenharmony_ci ``` 214514f5e3Sopenharmony_ci ./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages 224514f5e3Sopenharmony_ci ``` 234514f5e3Sopenharmony_ci 244514f5e3Sopenharmony_ci oh-arm64: 254514f5e3Sopenharmony_ci ``` 264514f5e3Sopenharmony_ci ./build.sh --product-name rk3568 --gn-args use_musl=true --target-cpu arm64 --build-target ark_js_packages 274514f5e3Sopenharmony_ci ``` 284514f5e3Sopenharmony_ci 294514f5e3Sopenharmony_ci oh-arm32: 304514f5e3Sopenharmony_ci ``` 314514f5e3Sopenharmony_ci ./build.sh --product-name rk3568 --build-target ark_js_packages 324514f5e3Sopenharmony_ci ``` 334514f5e3Sopenharmony_ci 344514f5e3Sopenharmony_ci3. Compile the ARK frontend after the first compilation: 354514f5e3Sopenharmony_ci 364514f5e3Sopenharmony_ci ``` 374514f5e3Sopenharmony_ci ./build.sh --product-name rk3568 --build-target ets_frontend_build 384514f5e3Sopenharmony_ci ``` 394514f5e3Sopenharmony_ci 404514f5e3Sopenharmony_ci**NOTE**: Run the compilation commands in the project root directory. 414514f5e3Sopenharmony_ci 424514f5e3Sopenharmony_ciThe binary files related to ARK are available in the following paths: 434514f5e3Sopenharmony_ci 444514f5e3Sopenharmony_ci``` 454514f5e3Sopenharmony_ciout/hispark_taurus/arkcompiler/runtime_core/ 464514f5e3Sopenharmony_ciout/hispark_taurus/arkcompiler/ets_frontend/ 474514f5e3Sopenharmony_ciout/hispark_taurus/arkcompiler/ets_runtime/ 484514f5e3Sopenharmony_ciout/hispark_taurus/clang_x64/arkcompiler/runtime_core/ 494514f5e3Sopenharmony_ciout/hispark_taurus/clang_x64/arkcompiler/ets_frontend/ 504514f5e3Sopenharmony_ciout/hispark_taurus/clang_x64/arkcompiler/ets_runtime 514514f5e3Sopenharmony_ci``` 52