From 2c863458ccff26f7f2539df4c12c943bf79ebbdd Mon Sep 17 00:00:00 2001 From: SUonGH <40723322+SUonGH@users.noreply.github.com> Date: Fri, 7 Jul 2023 17:06:11 +0300 Subject: [PATCH] I've added a small clarification after personally having dealt with the issue. 'pkgconfig' being installed after 'raylib' means that it's not usable as described, so raylib need to be reinstalled. --- Working-on-macOS.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Working-on-macOS.md b/Working-on-macOS.md index 87a28e9..e0565b7 100644 --- a/Working-on-macOS.md +++ b/Working-on-macOS.md @@ -35,7 +35,10 @@ eval cc yourgame.c $(pkg-config --libs --cflags raylib) -o YourGame eval cc yourgame.c -framework IOKit -framework Cocoa -framework OpenGL $(pkg-config --libs --cflags raylib) -o YourGame ``` -You may get an error, complaining that the `pkg-config` command was not found. You can use `brew install pkgconfig` to fix that. +You may get an error, complaining that the `pkg-config` command was not found. You can use `brew install pkgconfig` to fix that. If you install pkgconfig after you have installed raylib with homebrew, you should reinstall raylib so that pkgconfig works correctly. Use in the terminal +``` +brew reinstall raylib +``` > **NOTE**: The raylib Homebrew package tracks the latest [raylib release](https://github.com/raysan5/raylib/releases) and as such can be out of date with what's in master. For active development, we suggest building the newest development snapshot instead. ##### Build newest development snapshot from source