Skip to content

Commit c602d48

Browse files
rpi docs
1 parent 4d81687 commit c602d48

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

RPI.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Raspberry Pi
2+
====================
3+
4+
Please use Raspberry Pi OS Bullseye. Older OSes are not tested.
5+
6+
We have published a binary wheel using Raylib in X11 mode. This *should* install and work on Bullseye
7+
with
8+
9+
::
10+
11+
python3 -m pip install raylib==4.2.0.0.dev1
12+
13+
If it doesn't work, or we haven't published a binary wheel for the latest version,
14+
or if you want to use Raylib in ``PLATFORM_DRM`` mode, you will need to compile your own raylib
15+
and have pip compile the wheel.
16+
17+
::
18+
19+
git clone https://github.com/raysan5/raylib.git
20+
cd raylib
21+
mkdir build
22+
cd build
23+
cmake -DPLATFORM="DRM" -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
24+
make
25+
sudo make install
26+
pip3 install --no-binary raylib --upgrade --force-reinstall raylib==4.2.0.0.dev2
27+
28+
(or newer version)
29+
30+
.. attention::
31+
32+
The Broadcom proprietary Open GL ES 2.0 drivers (installed by Raspbian into ``/opt/vc`` and compiled in Raylib
33+
with ``PLATFORM_RPI``) do not work with Bullseye and have not been tested with the bindings. They will probably
34+
require additional linker arguments to be added to ``build.py``. Suggest you use ``PLATFORM_DRM`` instead.

0 commit comments

Comments
 (0)