@@ -5,8 +5,9 @@ This guide will show you how to build bitcoind(headless client) for OSX.
5
5
Notes
6
6
-----
7
7
8
- * Tested on OS X 10.5 through 10.9 on Intel processors only. PPC is not
9
- supported because it is big-endian.
8
+ * Tested on OS X 10.6 through 10.9 on 64-bit Intel processors only.
9
+ Older OSX releases or 32-bit processors are no longer supported.
10
+
10
11
* All of the commands should be executed in a Terminal application. The
11
12
built-in one is located in ` /Applications/Utilities ` .
12
13
@@ -47,14 +48,18 @@ Installing the dependencies using MacPorts is very straightforward.
47
48
48
49
sudo port install boost db48@+no_java openssl miniupnpc autoconf pkgconfig automake
49
50
51
+ Optional: install Qt4
52
+
53
+ sudo port install qt4-mac qrencode protobuf-cpp
54
+
50
55
### Building ` bitcoind `
51
56
52
57
1 . Clone the github tree to get the source code and go into the directory.
53
58
54
59
git clone [email protected] :bitcoin/bitcoin.git bitcoin
55
60
cd bitcoin
56
61
57
- 2 . Build bitcoind:
62
+ 2 . Build bitcoind (and Bitcoin-Qt, if configured) :
58
63
59
64
./autogen.sh
60
65
./configure
@@ -102,35 +107,33 @@ Rerunning "openssl version" should now return the correct version.
102
107
103
108
Creating a release build
104
109
------------------------
110
+ You can ignore this section if you are building ` bitcoind ` for your own use.
105
111
106
- A bitcoind binary is not included in the Bitcoin-Qt.app bundle. You can ignore
107
- this section if you are building ` bitcoind ` for your own use.
112
+ bitcoind/bitcoin-cli binaries are not included in the Bitcoin-Qt.app bundle.
108
113
109
- If you are building ` bitcoind ` for others, your build machine should be set up
114
+ If you are building ` bitcoind ` or ` Bitcoin-Qt ` for others, your build machine should be set up
110
115
as follows for maximum compatibility:
111
116
112
117
All dependencies should be compiled with these flags:
113
118
114
- -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
119
+ -mmacosx-version-min=10.6
120
+ -arch x86_64
121
+ -isysroot $(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
115
122
116
123
For MacPorts, that means editing your macports.conf and setting
117
124
` macosx_deployment_target ` and ` build_arch ` :
118
125
119
- macosx_deployment_target=10.5
120
- build_arch=i386
126
+ macosx_deployment_target=10.6
127
+ build_arch=x86_64
121
128
122
129
... and then uninstalling and re-installing, or simply rebuilding, all ports.
123
130
124
131
As of December 2012, the ` boost ` port does not obey ` macosx_deployment_target ` .
125
132
Download ` http://gavinandresen-bitcoin.s3.amazonaws.com/boost_macports_fix.zip `
126
- for a fix. Some ports also seem to obey either ` build_arch ` or
127
- ` macosx_deployment_target ` , but not both at the same time. For example, building
128
- on an OS X 10.6 64-bit machine fails. Official release builds of Bitcoin-Qt are
129
- compiled on an OS X 10.6 32-bit machine to workaround that problem.
130
-
131
- Once dependencies are compiled, creating ` Bitcoin-Qt.app ` is easy:
133
+ for a fix.
132
134
133
- make -f Makefile.osx RELEASE=1
135
+ Once dependencies are compiled, see release-process.md for how the Bitcoin-Qt.app
136
+ bundle is packaged and signed to create the .dmg disk image that is distributed.
134
137
135
138
Running
136
139
-------
@@ -145,10 +148,13 @@ commands:
145
148
chmod 600 "/Users/${USER}/Library/Application Support/Bitcoin/bitcoin.conf"
146
149
147
150
When next you run it, it will start downloading the blockchain, but it won't
148
- output anything while it's doing this. This process may take several hours.
151
+ output anything while it's doing this. This process may take several hours;
152
+ you can monitor its process by looking at the debug.log file, like this:
153
+
154
+ tail -f $HOME/Library/Application\ Support/Bitcoin/debug.log
149
155
150
156
Other commands:
151
157
152
- ./bitcoind --help # for a list of command-line options.
153
158
./bitcoind -daemon # to start the bitcoin daemon.
154
- ./bitcoind help # When the daemon is running, to get a list of RPC commands
159
+ ./bitcoin-cli --help # for a list of command-line options.
160
+ ./bitcoin-cli help # When the daemon is running, to get a list of RPC commands
0 commit comments