-
Notifications
You must be signed in to change notification settings - Fork 0
build_osx
-
Install XCode and its command line tools by following the 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 by following the instructions here: http://brew.sh/
-
Initialize Homebrew:
brew doctor brew update -
Install dependencies:
brew install boost cmake git openssl autoconf automake brew link --force openssl4.1 openssl inc/lib path may need pass to CMake command. 4.2 currently fc lib requires boost <= 1.60, so if boost is newer you need to force install older ones. http://bitsharestalk.org/index.php?topic=23579.0 https://steemit.com/bitshares/@crasch/installing-bitshares-graphene-from-source-on-mac-os-x-yosemite-10-5-5
-
Optional. To support importing Bitcoin wallet files:
brew install berkeley-db -
Optional. To use TCMalloc in LevelDB:
brew install google-perftoolsInstall LibTool
brew install libtool -
Clone the ledger repository:
git clone https://github.com/artwook/ledger.git cd ledger -
Build BitShares:
git submodule update --init --recursive cmake . makeIn OSX 10.11(EI Capitan) and newer, you will be prompted with warning when force linking openssl. In this case, if openssl are installed using brew, cmake using
cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib .Optional, to embed genesis data into compiled binaries
cmake -DGRAPHENE_EGENESIS_JSON=PATH_TO_GENESIS.json .For Developing, Sugguest to enable CMake Definition of GRAPHENE_DISABLE_UNITY_BUILD to disable unity build, it will help with text searching in Xcode.
cmake -G Xcode -DGRAPHENE_DISABLE_UNITY_BUILD=true DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib .