2018-06-04 17:48:44 +02:00
# Building on macOS
2021-02-21 14:45:42 +01:00
2020-11-21 11:24:32 +01:00
#### Note - If you want to develop Chatterino 2 you will also need to install Qt Creator (make sure to install **Qt 5.12 or newer**)
2021-02-21 14:45:42 +01:00
2021-01-23 16:27:05 +01:00
#### Note - Chatterino 2 is only tested on macOS 10.14 and above - anything below that is considered unsupported. It may or may not work on earlier versions
2021-02-21 14:45:42 +01:00
2021-07-31 13:03:07 +02:00
1. Install Xcode and Xcode Command Line Utilities
2. Start Xcode, go into Settings -> Locations, and activate your Command Line Tools
2018-06-04 17:48:44 +02:00
3. Install brew https://brew.sh/
2021-07-31 13:03:07 +02:00
4. Install the dependencies using `brew install boost openssl rapidjson`
5. Install Qt using `brew install qt`
6. Step 5 should output some directions to add Qt to your path, you will need to do this for qmake
7. Go into the project directory
8. Create a build folder and go into it (`mkdir build && cd build`)
9. Compile using `qmake .. && make`
2018-05-25 17:08:09 +02:00
2021-03-28 16:58:51 +02:00
_If you want to use cmake instead of qmake, just replace the above qmake command with cmake_
2018-05-25 17:08:09 +02:00
If the Project does not build at this point, you might need to add additional Paths/Libs, because brew does not install openssl and boost in the common path. You can get their path using
`brew info openssl`
`brew info boost`
2021-07-31 13:03:07 +02:00
If brew doesn't link OpenSSL properly then you should be able to link it yourself by using these two commands:
2021-02-21 14:45:42 +01:00
2018-06-13 03:58:52 +02:00
- `ln -s /usr/local/opt/openssl/lib/* /usr/local/lib`
- `ln -s /usr/local/opt/openssl/include/openssl /usr/local/include/openssl`
2018-05-25 17:08:09 +02:00
The lines which you need to add to your project file should look similar to this
```
INCLUDEPATH += /usr/local/opt/openssl/include
LIBS += -L/usr/local/opt/openssl/lib
```