[ English | 简体中文 ]
The development workstation should meet the following hardware requirements:
- 64-bit x 86 system
- At least 80 GB of remaining hard disk space for downloading and compiling source codes.
- At least 16 GB of RAM
The development workstation must run a 64-bit Ubuntu 22.04 Linux distribution.
Note
WSL and Docker environments are not supported.
Use Ubuntu 22.04 to compile openvela. Run the following command to install the required packages on Ubuntu 22.04:
sudo apt install \
bison flex gettext texinfo libncurses5-dev libncursesw5-dev xxd \
git gperf automake libtool build-essential gperf genromfs \
libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \
libexpat1-dev gcc-multilib g++-multilib picocom u-boot-tools util-linux \
dfu-util libx11-dev libxext-dev net-tools pkgconf unionfs-fuse zlib1g-dev \
libusb-1.0-0-dev libv4l-dev libuv1-dev npm nodejs nasm yasm libdivsufsort-dev \
libc++-dev libc++abi-dev libprotobuf-dev protobuf-compiler protobuf-c-compiler mtools
Run the following command to install Repo Launcher:
curl https://storage.googleapis.com/git-repo-downloads/repo > repo
chmod +x repo
sudo mv repo /usr/local/bin/
The Repo Launcher provides a Python script that initializes a checkout and downloads the full Repo tool.
The configuration system of openvela uses KConfig. KConfig configures the system via a series of interactive menu-based frontends, part of the kconfig-frontends package.Whether to use a package or build it from source depends on the current operating system. The source code is available in NuttX tools repository.
sudo apt install kconfig-frontends
sudo apt install python3 python3-pip python-is-python3
sudo pip3 install kconfiglib pyelftools cxxfilt
Refer to Download openvela code.