It used to be tedious to set up a cross compile environment. Sure you can compile on the Raspberry Pi itself, but sometimes you want to use your big computer — and you can use it when your Pi is not ...
sudo apt-get install g++-arm-linux-gnueabihf sudo apt-get install gdb-multiarch The first line installs the general build tools. The second installs the C and C++ compiler and build tools for the Pi’s ...