From e30cb00f39d65c15cbd14a3aae0e6ccf2a1edd2a Mon Sep 17 00:00:00 2001 From: David Konsumer <83857+konsumer@users.noreply.github.com> Date: Sat, 19 Mar 2022 02:58:05 -0700 Subject: [PATCH] Mac instructions (#187) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index e70a4f8..2a2fabc 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,14 @@ mv src/raygui.h src/raygui.c gcc -o raygui.so src/raygui.c -shared -fpic -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 ``` +- **Mac (clang, homebrew installed raylib)** +``` +cp src/raygui.h src/raygui.c +brew install raylib +gcc -o raygui.dynlib src/raygui.c -shared -fpic -DRAYGUI_IMPLEMENTATION -framework OpenGL -lm -lpthread -ldl $(pkg-config --libs --cflags raylib) +``` + + ## license raygui is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check [LICENSE](LICENSE) for further details.