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.

master
SUonGH 2 år sedan
förälder
incheckning
2c863458cc
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. +4
    -1
      Working-on-macOS.md

+ 4
- 1
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

Laddar…
Avbryt
Spara