Mac OS X Build Instructions and Notes

This guide will show you how to build fartcoin-qt for OSX.

  • Tested on OSX 10.9 on 64-bit Intel processors only.
  • All of the commands should be executed in a Terminal application.

— Preparation

You need to install Xcode, when you type “git” in Terminal an installation popup will appear. The installation for Xcode will be done in the AppStore, and needs to download at least 5 GB.

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

While downloading you can already install Homebrew
After Xcode is installed you can install MacPorts
We need this in order to install library dependencies.
Installing the dependencies using MacPorts and Brew is very straightforward.


— Instructions: MacPorts

sudo port install boost openssl miniupnpc autoconf pkgconfig automake qt4-mac qrencode protobuf-cpp
sudo port install qwt qwtplot3d gsl py27-pyqt4 py-pyqwt py27-sip muparser
sudo port install clang-7.0 clang_select giflib jasper ld64 ld64-latest libcxx libomp libsdl2 llvm-3.7 llvm-7.0 llvm_select perl5 qt5-qtsvg qt5-qttools qt5-qttranslations qt5-sqlite-plugin webp xar xorg-libice xorg-libsm

— Instructions: Homebrew

 brew install autoconf automake berkeley-db boost miniupnpc openssl pkg-config protobuf qt

— Building fartcoin-core

  1. Clone the github tree to get the source code and go into the directory.
    • git clone https://github.com/fartcoin/fartcoin.git cd fartcoin
  2. Build Berkeley-db-5.1.29.NC in /Users/OSX_USER/fartcoin/:
    1. Download berkeley-db from oracle, and extract it into /fartcoin/
      http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz
    2. In the fartcoin folder type:
      • BITCOIN_ROOT=$(pwd)
        BDB_PREFIX=”${BITCOIN_ROOT}/db5″
        mkdir -p $BDB_PREFIX
        cd db-5.1.29.NC/
        curl -OL https://raw.github.com/narkoleptik/os-x-berkeleydb-patch/master/atomic.patch
        patch src/dbinc/atomic.h < atomic.patch
        cd build_unix/
        ../dist/configure –enable-cxx –disable-shared –with-pic –prefix=$BDB_PREFIX
        make install
        cd $BITCOIN_ROOT
  3. Build fartcoin-core:
    • ./autogen.sh
    • ./configure LDFLAGS=”-L$(pwd)/db5/lib/ -L/opt/local/libexec/qt4/lib” CPPFLAGS=”-I$(pwd)/db5/include/ -I/opt/local/libexec/qt4/include” PKG_CONFIG_PATH=”/opt/local/libexec/qt4/lib/pkgconfig”
      make
      make deploy
  4. It is a good idea to build and run the unit tests, too:
    • make check