Before you begin
This guide assumes:
- You have a Raspberry Pi board. Arm has tested these instructions on a Raspberry Pi 2 Model B V1.1 that runs Raspian 9, a Rasberry Pi 3 Model B+ that runs Raspian 8, and a Raspberry Pi 4 Model B that runs Raspian 9.
- You compile on a Linux virtual machine. Arm has tested these instructions on an Ubuntu 16.04 virtual machines that runs on MacOS and Windows 10 and an Ubuntu 18.04 machine.
You must install the following software tools on your virtual machine:
Git A version control system software developers use for source code management.
Scons An open-source software construction tool.
GNU C and C++ compilers for the armhf architecture The Raspberry Pi uses the armhf Arm architecture.
For the instructions in this guide to work, the cross-compiler version on the host machine must match the compiler version on your Raspberry Pi.
Curl A tool for transferring data to or from a Linux or Unix-like server.
GNU Autoconf A tool for producing configure scripts for building, installing and packaging software.
GNU libtool A generic library support script.
CMake An open-source and cross-platform family of tools for building, testing, and packaging software.
To install the tools you require, open a command window and enter the following commands:
sudo apt-get install git sudo apt-get install scons sudo apt-get install gcc-arm-linux-gnueabihf sudo apt-get install g++-arm-linux-gnueabihf sudo apt-get install curl sudo apt-get install autoconf sudo apt-get install libtool sudo apt-get install cmake