© Jan Newmarch 2017

Jan Newmarch, Raspberry Pi GPU Audio Video Programming , 10.1007/978-1-4842-2472-4_3

3. Compiling Programs for the Raspberry Pi

Jan Newmarch

(1)Oakleigh, Victoria, Australia

Every system has its own quirks when it comes to compilation. The RPi is no exception. This chapter looks at the process of compiling C code for the RPi.

Generic Information

Here is some general information:

  • The command arch gives the Linux idea of the CPU. On the RPi 2, it gives armv7l. According to the Arch Linux ARM ( http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2 ), this means “ARMv7l Cortex-A7 quad-core. […] The SoC is a Broadcom BCM2836.”

  • The file /etc/issue contains the information Raspbian GNU/Linux 7.

  • The file /etc/os-release contains ...

Get Raspberry Pi GPU Audio Video Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.