Development environment construction
Prepare the development environment
We recommend using Ubuntu 22.04 or higher for compilation. Other Linux versions may require adjustments to the packages. In addition to the system requirements, there are other hardware and software requirements.
Hardware requirements: 64-bit system, at least 16GB of RAM, 500GB of hard disk space. If you do multiple builds, you will need more hard disk space.
Software requirements: Ubuntu 22.04 or later.
Installing libraries and toolsets
When using the command line for device development, you can install the libraries and tools required to compile the SDK by following the steps below. Use the following apt-get command to install the libraries and tools required for subsequent operations:
sudo apt-get update
sudo apt-get install binutils git git-lfs gnupg gperf build-essential zip curl zlib1g-dev gcc-multilib lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3-pip ruby ccache libgl1-mesa-dev g++-multilib libc6-dev-i386 flex bison openjdk-19-jdk openssl libelf-dev lz4 genext2fs libncurses5 libssl-dev u-boot-tools dosfstools mtools libstdc++-12-dev repo python2 cpio nodejs npm