From 973c69c95b03d50cdfacb22792b22395fc7b80ec Mon Sep 17 00:00:00 2001 From: huti26 <31436976+huti26@users.noreply.github.com> Date: Mon, 14 May 2018 13:04:15 +0200 Subject: [PATCH] added useful information for building on osx (#380) tested on osx 10.13.4 --- README.md | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d8a905b2..46f7ed64 100644 --- a/README.md +++ b/README.md @@ -85,9 +85,26 @@ install [chatterino2-git](https://aur.archlinux.org/packages/chatterino2-git/) f ### Mac OSX 1. install Xcode and Xcode Command Line Utilites -2. install Qt Creator -3. install brew https://brew.sh/ -4. `brew install boost openssl rapidjson` -5. build the project using Qt Creator +2. start Xcode, settings -> Locations, activate your Command Line Tools +3. install Qt Creator +4. install brew https://brew.sh/ +5. `brew install boost openssl rapidjson` +6. build the project using Qt Creator + +If the Project does not build at this point, you might need to ad 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` + +The lines which you need to ad to your project file, should look similar to this + +``` +INCLUDEPATH += /usr/local/opt/openssl/include +LIBS += -L/usr/local/opt/openssl/lib + +INCLUDEPATH += "/usr/local/Cellar/boost/1.67.0_1/include" +LIBS += -L"/usr/local/Cellar/boost/1.67.0_1/lib" +``` + Test 1