From e2554f1d6860fa2e80c1fb9bbcfb6a8f39d56586 Mon Sep 17 00:00:00 2001 From: maitscha Date: Wed, 9 Nov 2016 08:34:23 +0100 Subject: [PATCH] Adds openssl and boost lib includes for OSX build This adds the paths to the openssl and boost libraries (installed with brew) for the MacOS X build. Furthermore the MacOS X build instructions in the README.md has been improved (formatting). --- README.md | 51 ++++++++++++++++++++++++++++--------------------- monero-core.pro | 2 ++ 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index ffdaf81c..464311f7 100644 --- a/README.md +++ b/README.md @@ -115,32 +115,39 @@ TODO ### On OS X: -1. install Xcode from AppStore -2. install [homebrew] (http://brew.sh/) -3. install [bitmonero] (https://github.com/monero-project/bitmonero) dependencies: - ```brew install boost --c++11``` +1. Install Xcode from AppStore +2. Install [homebrew](http://brew.sh/) +3. Install [monero](https://github.com/monero-project/monero) dependencies: + + ```brew install boost --c++11``` + + ```brew install openssl``` - to install openssl headers ```brew install pkgconfig``` - + ```brew install cmake``` - -4. install latest Qt using official installer from [qt.io] (https://www.qt.io/download-open-source/), homebrew version might be outdated + +4. Install latest Qt using official installer from [qt.io](https://www.qt.io/download-open-source/) (homebrew version might be outdated). 5. Add Qt bin dir to your path: - - ```export PATH=$PATH:$HOME/Qt5/5.7/clang_64/bin``` - - where ```Qt5``` is the folder you selected to install Qt -6. Clone repository and build: - - ``` - git clone https://github.com/monero-project/monero-core.git - - cd monero-core - - build.sh - - ``` - + + ```export PATH=$PATH:$HOME/Qt/5.7/clang_64/bin``` + + where ```Qt``` is the folder you selected to install Qt. + +6. Grab an up-to-date copy of the monero-core repository. + + `git clone https://github.com/monero-project/monero-core.git` + +7. Go into the repository. + + `cd monero-core` + +8. Start the build: + + `build.sh` + +The executable can be found in the `build/release/bin` folder. + ### On Windows: 1. Install [msys2](http://msys2.github.io/), follow the instructions on that page on how to update packages to the latest versions diff --git a/monero-core.pro b/monero-core.pro index 8c446290..2e2107be 100644 --- a/monero-core.pro +++ b/monero-core.pro @@ -131,6 +131,8 @@ linux { macx { LIBS+= \ -L/usr/local/lib \ + -L/usr/local/opt/openssl/lib \ + -L/usr/local/opt/boost/lib \ -lboost_serialization \ -lboost_thread-mt \ -lboost_system \