@@ -56,9 +56,7 @@ Build and install Raylib from the raylib-c directory.
56
56
copy raylib\Release\raylib.lib ..\..
57
57
cd ..\..
58
58
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
+
62
60
63
61
To build a binary wheel distribution:
64
62
@@ -69,12 +67,10 @@ To build a binary wheel distribution:
69
67
pip3 install wheel
70
68
python setup.py bdist_wheel
71
69
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.
76
73
77
- python3 setup_dynamic.py bdist_wheel
78
74
79
75
Then install it:
80
76
88
84
Linux manual build
89
85
~~~~~~~~~~~~~~~~~~~~~~
90
86
91
- These instructions have been tested on Ubuntu 20.10 and 16.04.
92
-
93
87
Clone this repo including submodules so you get correct version of
94
88
Raylib.
95
89
@@ -99,6 +93,10 @@ Raylib.
99
93
100
94
Build and install Raylib from the raylib-c directory.
101
95
96
+ .. note ::
97
+ You can instead use a different version of Raylib you installed from elsewhere, and it should still
98
+ work!
99
+
102
100
::
103
101
104
102
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
131
129
rm -rf build raylib/_raylib_cffi.*
132
130
python3 raylib/build.py
133
131
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 ):
135
133
136
134
::
137
135
@@ -185,10 +183,13 @@ Build and install Raylib from the raylib-c directory.
185
183
186
184
::
187
185
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 ../..
192
193
193
194
194
195
Build and install module.
0 commit comments