Added macOS setup instructions to Readme file
This commit is contained in:
parent
a3e0ea19d1
commit
148652c212
18
README.md
18
README.md
@ -24,6 +24,12 @@ So that being said, we hope that this repository finds you well and wholehearted
|
||||
|
||||
### Installing Dependencies
|
||||
|
||||
#### Installing Apple Developer Tools (macOS only)
|
||||
To do anything of value in the later versions of macOS, you're going to need the Xcode developer tools. Fortunately, if you want to skip downloading the behemoth of an IDE, then you can just get the command line tools package with the following command:
|
||||
```console
|
||||
$ xcode-select --install
|
||||
```
|
||||
|
||||
#### Installing MinGW (Windows only)
|
||||
Building raylib libraries requires the installation of MinGW ([32](http://www.mingw.org/) and [64](http://mingw-w64.org/doku.php/download) bit versions). Please ensure that you link MinGW's `bin` directory to your system environment variables for BOTH the 32 and 64 bit versions. You can follow the instructions here for the [32-bit](https://www.youtube.com/watch?v=sXW2VLrQ3Bs) and here for the [64-bit](https://code.visualstudio.com/docs/cpp/config-mingw) bit versions.
|
||||
|
||||
@ -75,7 +81,7 @@ $ sudo dnf install alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel
|
||||
|
||||
### Building the Project
|
||||
|
||||
1. Download the [raylib](https://github.com/raysan5/raylib) repository and generate a static library file (`.a` on UNIX-based systems or `.lib` on Windows) using the [build and installation instructions](https://github.com/raysan5/raylib#build-and-installation) in the repository README.
|
||||
1. Download the [raylib](https://github.com/raysan5/raylib) repository and generate a static library (`.a` file) using the [build and installation instructions](https://github.com/raysan5/raylib#build-and-installation) in the repository README.
|
||||
|
||||
2. Clone this repository and move the static library file you just generated into the `/lib/<platform>` directory (go ahead and replace the one included if necessary), and then run the following command for the Makefile in the project's root directory:
|
||||
|
||||
@ -98,8 +104,8 @@ $ make
|
||||
If you wish to change the program entry point, add more libraries, or really anything about your project, all build instructions are specified in the `Makefile` - no smoke and mirrors!
|
||||
|
||||
## Todo
|
||||
- ~~Get static linking to work with C++ bindings~~
|
||||
- ~~Setup for at least one compiler on each platform~~
|
||||
- Test with multiple compilers on each platform
|
||||
- Add compiler specification options
|
||||
- Add raylib-cpp as vendor for procedural builds and auto-updating
|
||||
- [x] Get static linking to work with C++ bindings
|
||||
- [x] Setup for at least one compiler on each platform
|
||||
- [ ] Test with multiple compilers on each platform
|
||||
- [ ] Add compiler specification options
|
||||
- [ ] Add raylib-cpp as vendor for procedural builds and auto-updating
|
||||
|
Loading…
Reference in New Issue
Block a user