mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
e00938dfde
Co-authored-by: Edgar <Edgar@AnotherFoxGuy.com>
1.4 KiB
1.4 KiB
Building on macOS
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)
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
- Install Xcode and Xcode Command Line Utilites
- Start Xcode, settings -> Locations, activate your Command Line Tools
- Install brew https://brew.sh/
brew install boost openssl rapidjson
brew install qt
- Step 5 should output some directions to add qt to your path, you will need to do this for qmake
- Go into project directory
- Create build folder
mkdir build && cd build
qmake .. && make
If you want to use cmake instead of qmake, just replace the above qmake command with cmake
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
If brew doesn't link openssl properly then you should be able to link it yourself using those two commands:
ln -s /usr/local/opt/openssl/lib/* /usr/local/lib
ln -s /usr/local/opt/openssl/include/openssl /usr/local/include/openssl
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