mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Updated Working on macOS (markdown)
@ -43,9 +43,9 @@ You may get an error, complaining that the `pkg-config` command was not found. Y
|
||||
```
|
||||
make PLATFORM=PLATFORM_DESKTOP
|
||||
```
|
||||
- If everything worked ok, `libraylib.a` should be created in `raylib-master/release/osx` folder.
|
||||
- If everything worked ok, `libraylib.a` should be created in `raylib-master/src` folder.
|
||||
|
||||
5) Add generated libraries (raylib) to Xcode project.
|
||||
4) Add generated libraries (raylib) to Xcode project.
|
||||
- Create a new Xcode project using `Command Line Tool`. Make sure selected language is C.
|
||||
- Once project created and open, Mouse click over the project main folder in the left project-navigation panel. It should appear `Build Phases` window, just enter and select `Link Binary With Libraries`. There you should add project libraries:
|
||||
- To add OpenGL: Click on + and add OpenGL.framework
|
||||
@ -57,7 +57,7 @@ You may get an error, complaining that the `pkg-config` command was not found. Y
|
||||
- Make sure Xcode finds `raylib.h`: Go to `Build Settings > Search Paths` and add raylib header folder (`raylib-master/src`) to `Header Search Paths`
|
||||
- Make sure Xcode finds `libraylib.a`: Go to `Build Settings > Search Paths` and add raylib library folder (`raylib-master/release/osx`) to `Library Search Paths`.
|
||||
|
||||
6) raylib should work correctly. To make sure, just go to [official raylib page](http://www.raylib.com) and check the different examples available. Just copy the code into `main.c` file and run it with Run button or ⌘R.
|
||||
5) raylib should work correctly. To make sure, just go to [official raylib page](http://www.raylib.com) and check the different examples available. Just copy the code into `main.c` file and run it with Run button or ⌘R.
|
||||
|
||||
_NOTES:_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user