-
-
Save lumin3000/1b620f69e1fb5db0a7e306ec291c2ed9 to your computer and use it in GitHub Desktop.
Build raylib 4.5 dylib for macOS Sonoma
This file contains hidden or 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