Created
October 23, 2023 04:11
-
-
Save wilsonsilva/ddce146b583c65718e593afdb8c6761b to your computer and use it in GitHub Desktop.
Build raylib 4.5 dylib for macOS Sonoma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FIXED_MINIAUDIO_URL=" | |
https://raw.githubusercontent.com/mackron/miniaudio/fe5f17ecf3189c680855b030467bcfa9f8d26143/miniaudio.h" | |
curl -L $FIXED_MINIAUDIO_URL -o src/external/miniaudio.h | |
mkdir -p build | |
cd build | |
cmake \ | |
-D CMAKE_BUILD_TYPE=Release \ | |
-D CMAKE_OSX_ARCHITECTURES="x86_64;arm64" \ | |
-D BUILD_SHARED_LIBS=ON \ | |
-D BUILD_EXAMPLES=OFF \ | |
../ | |
make | |
sudo cp raylib/libraylib.dylib /usr/local/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment