Skip to content

Commit

Permalink
Update MacOS setup guide (#691)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
waynegerard authored Jul 22, 2023
1 parent c755c4c commit 4f3f5de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/getting_started/setup/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<asio_version>/include`
3. **Intel**: `/usr/local/Cellar/asio/<asio_version>/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.
Expand Down

0 comments on commit 4f3f5de

Please sign in to comment.