Skip to content

Instantly share code, notes, and snippets.

@wilsonsilva
Created October 23, 2023 04:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wilsonsilva/ddce146b583c65718e593afdb8c6761b to your computer and use it in GitHub Desktop.
Save wilsonsilva/ddce146b583c65718e593afdb8c6761b to your computer and use it in GitHub Desktop.
Build raylib 4.5 dylib for macOS Sonoma
#!/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