arkcompiler_ets_runtime/docs/environment-setup-and-compilation.md
DaiHN cc2fe0f8ae docs modification
fix broken links issue
issue : #I6Y0MW

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: Ic6488e933e0d6834cf4336115108029b4152e98c
2023-04-23 11:38:22 +08:00

1.4 KiB

Environment Setup and Compilation

Environment Configuration

Use Ubuntu 18.04 or 20.04. For details about how to set up the environment, see:

Setting Up Ubuntu Development Environment with Installation Package and Building Source Code

Compilation

  1. First compilation:

    ./build.sh --product-name rk3568
    
  2. Compile an ARK runtime after the first compilation:

    linux-x86:

    ./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages
    

    oh-arm64:

    ./build.sh --product-name rk3568 --gn-args use_musl=true --target-cpu arm64 --build-target ark_js_packages
    

    oh-arm32:

    ./build.sh --product-name rk3568 --build-target  ark_js_packages
    
  3. Compile the ARK frontend after the first compilation:

    ./build.sh --product-name rk3568 --build-target ets_frontend_build
    

NOTE: Run the compilation commands in the project root directory.

The binary files related to ARK are available in the following paths:

out/hispark_taurus/arkcompiler/runtime_core/
out/hispark_taurus/arkcompiler/ets_frontend/
out/hispark_taurus/arkcompiler/ets_runtime/
out/hispark_taurus/clang_x64/arkcompiler/runtime_core/
out/hispark_taurus/clang_x64/arkcompiler/ets_frontend/
out/hispark_taurus/clang_x64/arkcompiler/ets_runtime