Building on OS X¶
Table of Contents
Graphene OS X Build Instructions¶
Install XCode and its command line tools
Instructions here: https://guide.macports.org/#installing.xcode.
In OS X 10.11 (El Capitan) and newer, you will be prompted to install developer tools when running a devloper command in the terminal. This step may not be needed.
Install Homebrew
Instructions here: http://brew.sh/
Initialize Homebrew:
brew doctor brew update
Install dependencies:
brew install boost cmake git openssl autoconf automake brew link --force openssl
(Optional) To support importing Bitcoin wallet files:
brew install berkeley-db
(Optional) To use TCMalloc in LevelDB:
brew install google-perftools
Clone the Graphene repository:
git clone https://github.com/graphene-blockchain/graphene-core.git cd bitshares-core
Build Graphene:
git submodule update --init --recursive cmake . make
Available Versions¶
Boost¶
Boost: between 1.57 and 1.65
You can check which version(s) of boost you have by asking brew:
brew search boost
To install another version of Boost (such as 1.60):
brew install boost@1.60
OpenSSL¶
OpenSSL: 1.0.x series
You may have an older version of OpenSSL than is required. If so, have brew get the latest:
brew upgrade openssl
Compiling with these new versions: We must now tell cmake where these libraries are. Instead of the “cmake .” mentioned above, we use:
cmake -DBOOST_ROOT=/usr/local/opt/boost@1.60 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .
and then proceed with the normal:
make