Environment Setup and Compilation

Environment Configuration

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

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