Skip to content

Commit cbcb071

Browse files
Update RPI.rst
1 parent 7bfd7d2 commit cbcb071

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

RPI.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,29 @@ with
88

99
::
1010

11-
python3 -m pip install raylib==4.2.0.0.dev1
11+
python3.9 -m pip install raylib==4.2.1.2
1212

1313
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.
14+
or if you want to use Raylib in ``PLATFORM_DRM`` mode, you will need to compile your own raylib.
15+
For full instructins on this, see https://github.com/raysan5/raylib/wiki/Working-on-Raspberry-Pi . If you need help with this ask Raylib.
16+
17+
This 'worked for me':
1618

1719
::
1820

19-
git clone https://github.com/raysan5/raylib.git
21+
git clone https://github.com/raysan5/raylib.git --branch 4.2.0 --single-branch
2022
cd raylib
2123
mkdir build
2224
cd build
2325
cmake -DPLATFORM="DRM" -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
2426
make
2527
sudo make install
26-
pip3 install --no-binary raylib --upgrade --force-reinstall raylib==4.2.0.0.dev2
28+
29+
Then have pip compile the wheel:
30+
31+
::
32+
33+
pip3 install --no-binary raylib --upgrade --force-reinstall raylib==4.2.1.2
2734

2835
(or newer version)
2936

0 commit comments

Comments
 (0)