From 4f3f5deaaa01825c63c83431bfa96ccec195f741 Mon Sep 17 00:00:00 2001 From: Wayne Gerard <960946+waynegerard@users.noreply.github.com> Date: Sat, 22 Jul 2023 17:28:58 -0400 Subject: [PATCH] Update MacOS setup guide (#691) 1. For M1/M2/etc. devices the homebrew location is slightly different, so note that. 2. For clang, linking to pthreads is slightly different so note that as well. --- docs/getting_started/setup/macos.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/getting_started/setup/macos.md b/docs/getting_started/setup/macos.md index c4640efdd..2d33ced3a 100644 --- a/docs/getting_started/setup/macos.md +++ b/docs/getting_started/setup/macos.md @@ -36,8 +36,11 @@ This will generate a `crow_all.h` file which you can use in the following steps === "Single Header" 1. Place `crow_all.h` inside your project folder and add it to the project in XCode (you need to use File -> Add files to "project_name") - 2. Add header search paths for asio's folder (`/usr/local/include`, and `/usr/local/Cellar/asio/include`) - 3. Add linker flags (`-lpthread`) + 2. Add header search paths for asio's folder: + 1. `/usr/local/include`, and + 2. **Silicon**: `/opt/homebrew/Cellar/asio//include` + 3. **Intel**: `/usr/local/Cellar/asio//include` + 3. Add linker flags (`-lpthread` for g++, `-pthread` for clang++) 5. Write your Crow application in `main.cpp` (something like the Hello World example will work). 6. Press `▶` to compile and run your Crow application.