Skip to content

Commit f9584fd

Browse files
update build instructions
1 parent fb93d5f commit f9584fd

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

BUILDING.rst

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ Build and install Raylib from the raylib-c directory.
5656
copy raylib\Release\raylib.lib ..\..
5757
cd ..\..
5858

59-
To update the dynamic libs, download the official release,
60-
e.g. https://github.com/raysan5/raylib/releases/download/3.7.0/raylib-3.7.0_win64_msvc16.zip
61-
and extract ``raylib.dll`` into ``dynamic/raylib``.
59+
6260

6361
To build a binary wheel distribution:
6462

@@ -69,12 +67,10 @@ To build a binary wheel distribution:
6967
pip3 install wheel
7068
python setup.py bdist_wheel
7169

72-
Alternatively, if you don’t want the static binaries and just want to
73-
use DLLs with raylib.dynamic:
74-
75-
::
70+
.. TODO::
71+
There's a hardcoded path (to the raylib header files) in `raylib/build.py` you will probably need to edit.
72+
Would be useful if some Windows user could figure out how to auto detect this.
7673

77-
python3 setup_dynamic.py bdist_wheel
7874

7975
Then install it:
8076

@@ -88,8 +84,6 @@ here.)
8884
Linux manual build
8985
~~~~~~~~~~~~~~~~~~~~~~
9086

91-
These instructions have been tested on Ubuntu 20.10 and 16.04.
92-
9387
Clone this repo including submodules so you get correct version of
9488
Raylib.
9589

@@ -99,6 +93,10 @@ Raylib.
9993

10094
Build and install Raylib from the raylib-c directory.
10195

96+
.. note::
97+
You can instead use a different version of Raylib you installed from elsewhere, and it should still
98+
work!
99+
102100
::
103101

104102
sudo apt install cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
@@ -131,7 +129,7 @@ Build
131129
rm -rf build raylib/_raylib_cffi.*
132130
python3 raylib/build.py
133131

134-
.. note:: (Optional) To update the Linux dynamic libs (names will be different on other platfroms):
132+
.. note:: (Optional) To update the Linux dynamic libs (names will be different on other platforms):
135133

136134
::
137135

@@ -185,10 +183,13 @@ Build and install Raylib from the raylib-c directory.
185183

186184
::
187185

188-
cd raylib-python-cffi/raylib-c/src
189-
make
190-
sudo cp libraylib.a /usr/local/lib/libraylib.a
191-
cd ../..
186+
cd raylib-python-cffi/raylib-c/
187+
mkdir build
188+
cd build
189+
cmake -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
190+
make
191+
sudo make install
192+
cd ../..
192193

193194

194195
Build and install module.

0 commit comments

Comments
 (0)