Skip to content

Commit

Permalink
Merge pull request bitcoin#202 from qtumproject/neil/osx-build-guide
Browse files Browse the repository at this point in the history
Neil/osx build guide
  • Loading branch information
Earlz committed Jun 28, 2017
2 parents d93a783 + ed0b844 commit 1f20fd7
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Expand Up @@ -11,6 +11,7 @@ Qtum is a new blockchain based on Bitcoin Core that integrates Ethereum based sm

Quickstart
----------
### Build on Ubuntu

This is a quick start script for compiling Qtum on Ubuntu

Expand All @@ -34,6 +35,50 @@ Quickstart
./configure
make -j2

### Build on OSX

The commands in this guide should be executed in a Terminal application.
The built-in one is located in `/Applications/Utilities/Terminal.app`.

#### Preparation

Install the OS X command line tools:

`xcode-select --install`

When the popup appears, click `Install`.

Then install [Homebrew](https://brew.sh).

#### Dependencies

brew install cmake automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf qt libevent

NOTE: Building with Qt4 is still supported, however, could result in a broken UI. Building with Qt5 is recommended.

#### Build Bitcoin Core

1. Clone the qtum source code and cd into `qtum`

git clone https://github.com/qtumproject/qtum.git
cd qtum

2. Build qtum-core:

Configure and build the headless qtum binaries as well as the GUI (if Qt is found).

You can disable the GUI build by passing `--without-gui` to configure.

./autogen.sh
./configure
make

3. It is recommended to build and run the unit tests:

make check

### Run

Then you can either run the command-line daemon using `src/qtumd` and `src/qtum-cli`, or you can run the Qt GUI using `src/qt/qtum-qt`

2Gb of RAM is recommended for building Qtum. If you encounter internal compiler errors or out of memory errors in autogen, then you can modify the last line of autogen to be something like:
Expand Down

0 comments on commit 1f20fd7

Please sign in to comment.