pkg-config is not actually intended for use in command substitution

master
Peter0x44 2 vuotta sitten
vanhempi
commit
1ee2d19a73
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. +3
    -3
      Working-on-macOS.md

+ 3
- 3
Working-on-macOS.md

@ -26,13 +26,13 @@ _Steps:_
```
brew install raylib
```
- raylib installs a pkg-config file, which describes the necessary compilation and linker flags to use it with `yourgame`:
- The raylib package installs a pkg-config file, which describes the necessary compilation and linker flags to use it with `yourgame`:
```
cc yourgame.c `pkg-config --libs --cflags raylib` -o YourGame
eval cc yourgame.c $(pkg-config --libs --cflags raylib) -o YourGame
```
- If the build fails, you may need to run the following command with the required frameworks
```
cc yourgame.c -framework IOKit -framework Cocoa -framework OpenGL `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.

Ladataan…
Peruuta
Tallenna