change mac build to expect raylib installed in /usr/local/lib
This commit is contained in:
parent
bb4be12724
commit
5afd9b0ee5
4 changed files with 6 additions and 3 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -40,6 +40,7 @@ jobs:
|
|||
cd raylib-c
|
||||
cd src
|
||||
make -j2
|
||||
sudo cp libraylib.a /usr/local/lib/libraylib.a
|
||||
- name: Build raylib-python-cffi
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
|
|
|
@ -200,12 +200,13 @@ Raylib.
|
|||
|
||||
git clone --recurse-submodules https://github.com/electronstudio/raylib-python-cffi
|
||||
|
||||
Build Raylib from the raylib-c directory.
|
||||
Build and install Raylib from the raylib-c directory.
|
||||
|
||||
::
|
||||
|
||||
cd raylib-python-cffi/raylib-c/src
|
||||
make
|
||||
sudo cp libraylib.a /usr/local/lib/libraylib.a
|
||||
cd ../..
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,8 @@ Problems may be caused by out of date pip:
|
|||
|
||||
Some platforms that _should_ be available: Windows 10 x64, MacOS 10.15 x64, Linux Ubuntu1804 x64.
|
||||
|
||||
If yours isn't available then pip will attempt to build from source, so you will need to have Raylib development libs installed.
|
||||
If yours isn't available then pip will attempt to build from source, in which case you will need to have Raylib development libs installed, e.g.
|
||||
using homebrew, apt, etc.
|
||||
|
||||
[If it doesn't work, build from source](BUILDING.md)
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ def build_mac():
|
|||
"""
|
||||
#include "../../raylib/raylib.h" // the C header of the library, supplied by us here
|
||||
""",
|
||||
extra_link_args=['raylib-c/src/libraylib.a', '-framework', 'OpenGL', '-framework', 'Cocoa', '-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework', 'CoreVideo'],
|
||||
extra_link_args=['-lraylib', '-framework', 'OpenGL', '-framework', 'Cocoa', '-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework', 'CoreVideo'],
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Reference in a new issue