diff --git a/Compile-your-game-for-Raspberry-Pi.md b/Compile-your-game-for-Raspberry-Pi.md index 4d6ebed..87f2048 100644 --- a/Compile-your-game-for-Raspberry-Pi.md +++ b/Compile-your-game-for-Raspberry-Pi.md @@ -1,19 +1,26 @@ -**Building raylib sources on Raspberry Pi:** +To build your raylib game for Raspberry Pi you need to download raylib git repository and install some dependencies. raylib already comes with ready-to-use makefiles to compile source code and examples. -_Step 1._ Make sure you have installed in your Raspberry Pi OpenAL Soft library for audio: +###Installing dependencies + +raylib only requires one additional library dependency to the ones that already comes with Raspbian, this library is OpenAL Soft (audio system management). Just install it: sudo apt-get install libopenal1 libopenal-dev -_Step 2._ Navigate from command line to `raylib/src/` folder and type: +###Compiling raylib source code + +Before compiling your game, raylib library must be recompiled for Raspbian. To do that, just navigate to `raylib\src\` directory and run: make PLATFORM=PLATFORM_RPI -**Building raylib examples on Raspberry Pi:** - -_Step 1._ Make sure you have installed in your Raspberry Pi the OpenAL Soft library for audio: - - sudo apt-get install libopenal1 libopenal-dev - -_Step 2._ Navigate from command line to `raylib/examples/` folder and type: +###Compiling raylib examples +Just move to folder `raylib/examples/` and run: make PLATFORM=PLATFORM_RPI + +To compile just one specific example: + + make core_basic_window PLATFORM=PLATFORM_RPI + +To force one example recompile: + + make core_basic_window PLATFORM=PLATFORM_RPI-B