mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Updated Compile your game for Raspberry Pi (markdown)
@ -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
|
||||
|
||||
Reference in New Issue
Block a user