Build Third-Party Component

Building third-party components is a standard procedure after setting up the cross-compilation environment. If the project uses configure, you must specify the correct host triplet for your target platform.

Note

Before you run the following commands, ensure you have setup the cross compilation environment.

For eLxr-based Modalix targets, use the aarch64-linux-gnu host triplet.

user@elxr-sdk:~$ sudo apt update && sudo apt install -y autoconf automake libtool
user@elxr-sdk:~$ git clone https://github.com/htop-dev/htop.git
user@elxr-sdk:~$ cd htop
user@elxr-sdk:~/htop$ ./autogen.sh
user@elxr-sdk:~/htop$ ./configure --host=aarch64-linux-gnu --prefix=/usr
user@elxr-sdk:~/htop$ make

Copy the binary to the DevKit and run it:

user@elxr-sdk:~/htop$ scp htop sima@<Modalix-IP>:~/
user@elxr-sdk:~/htop$ ssh sima@<Modalix-IP> "./htop"