2018-06-04 17:48:44 +02:00
# Building on macOS
2021-02-21 14:45:42 +01:00
2024-06-23 14:26:59 +02:00
Chatterino2 is built in CI on Intel on macOS 13.
2023-04-15 14:23:33 +02:00
Local dev machines for testing are available on Apple Silicon on macOS 13.
2021-02-21 14:45:42 +01:00
2023-04-15 14:23:33 +02:00
## Installing dependencies
2021-02-21 14:45:42 +01:00
2021-07-31 13:03:07 +02:00
1. Install Xcode and Xcode Command Line Utilities
2022-07-23 14:04:29 +02:00
1. Start Xcode, go into Settings -> Locations, and activate your Command Line Tools
2023-04-15 14:23:33 +02:00
1. Install [Homebrew ](https://brew.sh/#install )
We use this for dependency management on macOS
1. Install all dependencies:
2024-11-17 12:39:22 +01:00
`brew install boost openssl@3 rapidjson cmake qt@6`
2021-03-28 16:58:51 +02:00
2023-04-15 14:23:33 +02:00
## Building
2018-05-25 17:08:09 +02:00
2023-04-15 14:23:33 +02:00
### Building from terminal
2018-05-25 17:08:09 +02:00
2023-04-15 14:23:33 +02:00
1. Open a terminal
1. Go to the project directory where you cloned Chatterino2 & its submodules
1. Create a build directory and go into it:
`mkdir build && cd build`
2024-05-06 17:03:17 +02:00
1. Run CMake. To enable Lua plugins in your build add `-DCHATTERINO_PLUGINS=ON` to this command.
2024-11-17 12:39:22 +01:00
`cmake -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/qt@6 ..`
2023-04-15 14:23:33 +02:00
1. Build:
`make`
2021-02-21 14:45:42 +01:00
2023-04-15 14:23:33 +02:00
Your binary can now be found under bin/chatterino.app/Contents/MacOS/chatterino directory
2018-06-13 03:58:52 +02:00
2023-04-15 14:23:33 +02:00
### Other building methods
2018-05-25 17:08:09 +02:00
2023-04-15 14:23:33 +02:00
You can achieve similar results by using an IDE like Qt Creator, although this is undocumented but if you know the IDE you should have no problems applying the terminal instructions to your IDE.