parent
e3d8d58659
commit
213cd5948c
@ -26,49 +26,14 @@ There's an assumption that you already have `git` installed, as well. If
|
|||||||
not, it's the path of least resistance to install [Github for Mac](https://mac.github.com/)
|
not, it's the path of least resistance to install [Github for Mac](https://mac.github.com/)
|
||||||
(OS X 10.7+) or
|
(OS X 10.7+) or
|
||||||
[Git for OS X](https://code.google.com/p/git-osx-installer/). It is also
|
[Git for OS X](https://code.google.com/p/git-osx-installer/). It is also
|
||||||
available via Homebrew or MacPorts.
|
available via Homebrew.
|
||||||
|
|
||||||
You will also need to install [Homebrew](http://brew.sh)
|
You will also need to install [Homebrew](http://brew.sh)
|
||||||
or [MacPorts](https://www.macports.org/) in order to install library
|
in order to install library dependencies.
|
||||||
dependencies. It's largely a religious decision which to choose, but, as of
|
|
||||||
December 2012, MacPorts is a little easier because you can just install the
|
|
||||||
dependencies immediately - no other work required. If you're unsure, read
|
|
||||||
the instructions through first in order to assess what you want to do.
|
|
||||||
Homebrew is a little more popular among those newer to OS X.
|
|
||||||
|
|
||||||
The installation of the actual dependencies is covered in the Instructions
|
The installation of the actual dependencies is covered in the Instructions
|
||||||
sections below.
|
sections below.
|
||||||
|
|
||||||
Instructions: MacPorts
|
|
||||||
----------------------
|
|
||||||
|
|
||||||
### Install dependencies
|
|
||||||
|
|
||||||
Installing the dependencies using MacPorts is very straightforward.
|
|
||||||
|
|
||||||
sudo port install boost db48@+no_java openssl miniupnpc autoconf pkgconfig automake
|
|
||||||
|
|
||||||
Optional: install Qt4
|
|
||||||
|
|
||||||
sudo port install qt4-mac qrencode protobuf-cpp
|
|
||||||
|
|
||||||
### Building `bitcoind`
|
|
||||||
|
|
||||||
1. Clone the github tree to get the source code and go into the directory.
|
|
||||||
|
|
||||||
git clone git@github.com:bitcoin/bitcoin.git bitcoin
|
|
||||||
cd bitcoin
|
|
||||||
|
|
||||||
2. Build bitcoind (and Bitcoin-Qt, if configured):
|
|
||||||
|
|
||||||
./autogen.sh
|
|
||||||
./configure
|
|
||||||
make
|
|
||||||
|
|
||||||
3. It is a good idea to build and run the unit tests, too:
|
|
||||||
|
|
||||||
make check
|
|
||||||
|
|
||||||
Instructions: Homebrew
|
Instructions: Homebrew
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
@ -145,18 +110,6 @@ All dependencies should be compiled with these flags:
|
|||||||
-arch x86_64
|
-arch x86_64
|
||||||
-isysroot $(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
|
-isysroot $(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
|
||||||
|
|
||||||
For MacPorts, that means editing your macports.conf and setting
|
|
||||||
`macosx_deployment_target` and `build_arch`:
|
|
||||||
|
|
||||||
macosx_deployment_target=10.6
|
|
||||||
build_arch=x86_64
|
|
||||||
|
|
||||||
... and then uninstalling and re-installing, or simply rebuilding, all ports.
|
|
||||||
|
|
||||||
As of December 2012, the `boost` port does not obey `macosx_deployment_target`.
|
|
||||||
Download `http://gavinandresen-bitcoin.s3.amazonaws.com/boost_macports_fix.zip`
|
|
||||||
for a fix.
|
|
||||||
|
|
||||||
Once dependencies are compiled, see release-process.md for how the Bitcoin-Qt.app
|
Once dependencies are compiled, see release-process.md for how the Bitcoin-Qt.app
|
||||||
bundle is packaged and signed to create the .dmg disk image that is distributed.
|
bundle is packaged and signed to create the .dmg disk image that is distributed.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user