Skip to content

Commit 906a4f1

Browse files
mac build instructions
1 parent 0a2ed8e commit 906a4f1

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

BUILDING.rst

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ dynamic binding with your own dll*.
2323
If the Pip build doesn’t work, please submit a bug. (And if you have
2424
fixed it, a PR.)
2525

26+
Manual instructions follow, but see also how we actually build the wheels
27+
at https://github.com/electronstudio/raylib-python-cffi/blob/master/.github/workflows/build.yml
28+
2629
Windows manual build
2730
~~~~~~~~~~~~~~~~~~~~
2831

@@ -87,8 +90,7 @@ here.)
8790
Linux manual build
8891
~~~~~~~~~~~~~~~~~~~~~~
8992

90-
These instructions have been tested on Ubuntu 20.10 and 16.04. Mac
91-
should be very similar.
93+
These instructions have been tested on Ubuntu 20.10 and 16.04.
9294

9395
Clone this repo including submodules so you get correct version of
9496
Raylib.
@@ -115,6 +117,7 @@ Build and install Raylib from the raylib-c directory.
115117

116118
rm -rf *
117119
cmake -DWITH_PIC=on -DBUILD_SHARED_LIBS=on -DCMAKE_BUILD_TYPE=Release ..
120+
make
118121
sudo make install
119122

120123
::
@@ -183,6 +186,41 @@ To build a complete set of libs for Python 3.6, 3.7, 3.8 and 3.9:
183186
move the dynamic libs into a separate package rather than include
184187
them with every one.
185188

189+
190+
191+
Macos manual build
192+
~~~~~~~~~~~~~~~~~~~~~~
193+
194+
These instructions have been tested on Macos 10.14.
195+
196+
Clone this repo including submodules so you get correct version of
197+
Raylib.
198+
199+
::
200+
201+
git clone --recurse-submodules https://github.com/electronstudio/raylib-python-cffi
202+
203+
Build and install Raylib from the raylib-c directory.
204+
205+
::
206+
207+
cd raylib-python-cffi/raylib-c/src
208+
make
209+
cd ../..
210+
211+
212+
Build and install module.
213+
214+
::
215+
216+
pip3 install cffi
217+
rm -rf build raylib/static/_raylib_cffi.*
218+
python3 raylib/static/build.py
219+
pip3 install wheel
220+
python3 setup.py install
221+
222+
223+
186224
Raspberry Pi
187225
~~~~~~~~~~~~
188226

0 commit comments

Comments
 (0)