From a85e8e9e2319e2244937ee1f65208fb3003200a0 Mon Sep 17 00:00:00 2001 From: Benedict Gaster <benedict.gaster@uwe.ac.uk> Date: Thu, 10 Nov 2022 15:09:13 +0000 Subject: [PATCH] updated readme for brew use --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9087f4a..13bd379 100644 --- a/README.md +++ b/README.md @@ -127,18 +127,41 @@ To run an example or the assigment, simply run the command, e.g. **./shapes.exe* in the same directory. (Note: it is important that you run the executables in the **window_build** directory.) -## OS X +## OS X + +> Note: ARM based Macs (M1 or M2) +> +> You will need to install a small amount of software. First install ```brew`` from: +> +> - [https://brew.sh/](https://brew.sh/) +> +> The you can use ```brew``` to install the missing packages: +> +> ```bash +> brew install sdl2 +> brew install sdl2_image +> brew install sdl2_ttf +> brew install freetype +> ``` To make it slightly easier to build both the examples and the assigment itself a Makefile is provided: - **Makefile** +> For ARM macs it will be Makefile_brew + To build and examples and assignment simple type ```bash make ``` +> For ARM macs it is: +> +> ```bash +> make -f Makefile_brew +> ``` + in the root directory. This will build the resulting executables in the directory **build**. **build** will contain the example executables: -- GitLab