Setting Up the Development Environment
You are advised to use the server based on Ubuntu 22.04 in the development environment. The AArch64 architecture the same as that in the operating environment is preferred. If the development environment uses the server of the x86_64 architecture, install the cross compilation toolchain.
- The Glibc version in the development environment must be 2.28 or later.
- The Python version in the development environment must be 3.8 or later.
Installing Tools
Before secondary development, developers need to confirm the development environment by referring to Table 1.
Dependency |
Description |
Installation Command or Procedure |
|---|---|---|
cmake |
CMake is used to compile source code, make program libraries, generate wrappers, and construct executable files in any sequence. |
Run the following commands to install CMake.
|
git |
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. |
Run the following commands to install Git:
|
make |
Make is a construction tool based on specified shell commands. |
Run the following commands to install Make:
|
gcc |
GCC is a frontend program for compilation. It invokes other programs to compile program source files into target files. |
Run the following commands to install GCC:
|
crossbuild-essential-arm64 |
(Optional, required only the x86 compilation environment) Dependency tool package for cross compilation |
Run the following commands to install the dependency tool package for cross compilation:
|
pam-devel |
Pluggable authentication module (PAM) is a system security tool that allows system administrators to set authentication policies without recompiling programs that process authentication. |
Run the following commands to install pam-devel:
|
node.js/npm |
Compiles frontend code. |
To ensure the successful dependency download and compilation of the customized frontend project, install node.js of the 14.21.3 version and npm of the 6.14.18 version. The procedure is as follows:
|
zip |
Tool for compressing files |
Run the following commands to install the .zip packages:
|