To build your Raylib game for Raspberry Pi you just need to download Raylib git repository (or get the current release from [here](https://github.com/raysan5/raylib/releases)). All required libraries come with the Raylib, **no additional dependencies are required**. Raylib also comes with ready-to-use makefiles to compile source code and examples.
To build your raylib game for Raspberry Pi you just need to download raylib git repository (or get the current release from [here](https://github.com/raysan5/raylib/releases)). All required libraries come with the raylib, **no additional dependencies are required**. raylib also comes with ready-to-use makefiles to compile source code and examples.
By default, Raylib is will compile for a classic X11-based Linux desktop, using the `OpenGL desktop drivers`. However it is also possible to compile in native mode not depending on any windowing system (no X11 required), accessing Broadcom Video driver directly and running programs from the virtual terminal.
By default, raylib is will compile for a classic X11-based Linux desktop, using the `OpenGL desktop drivers`. However it is also possible to compile in native mode not depending on any windowing system (no X11 required), accessing Broadcom Video driver directly and running programs from the virtual terminal.
OpenGL desktop mode requires the GL desktop driver and supposedly it only works for RPI 2 and higher, that limit is set for performance reasons... but, if required, GL desktop driver can be also enabled on RPI B/B+ or Zero, [just follow this guide](https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=166495) to enable it.
### Compiling Raylib source code
### Compiling raylib source code
Before you can use Raylib in your project you will have to compile it, but this is quick and easy!
Before you can use raylib in your project you will have to compile it, but this is quick and easy!
Just navigate to `raylib\src\` directory and run one of the following options depending on your needs: