Skip to content

Commit 68c97fe

Browse files
committed
Merge pull request #3750 from gavinandresen/osx_minversion
Require OSX 10.6, 64-bit
2 parents 97f2bbd + 26e4b52 commit 68c97fe

File tree

4 files changed

+41
-54
lines changed

4 files changed

+41
-54
lines changed

doc/build-osx.md

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ This guide will show you how to build bitcoind(headless client) for OSX.
55
Notes
66
-----
77

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+
1011
* All of the commands should be executed in a Terminal application. The
1112
built-in one is located in `/Applications/Utilities`.
1213

@@ -47,14 +48,18 @@ Installing the dependencies using MacPorts is very straightforward.
4748

4849
sudo port install boost db48@+no_java openssl miniupnpc autoconf pkgconfig automake
4950

51+
Optional: install Qt4
52+
53+
sudo port install qt4-mac qrencode protobuf-cpp
54+
5055
### Building `bitcoind`
5156

5257
1. Clone the github tree to get the source code and go into the directory.
5358

5459
git clone [email protected]:bitcoin/bitcoin.git bitcoin
5560
cd bitcoin
5661

57-
2. Build bitcoind:
62+
2. Build bitcoind (and Bitcoin-Qt, if configured):
5863

5964
./autogen.sh
6065
./configure
@@ -102,35 +107,33 @@ Rerunning "openssl version" should now return the correct version.
102107

103108
Creating a release build
104109
------------------------
110+
You can ignore this section if you are building `bitcoind` for your own use.
105111

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.
108113

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
110115
as follows for maximum compatibility:
111116

112117
All dependencies should be compiled with these flags:
113118

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
115122

116123
For MacPorts, that means editing your macports.conf and setting
117124
`macosx_deployment_target` and `build_arch`:
118125

119-
macosx_deployment_target=10.5
120-
build_arch=i386
126+
macosx_deployment_target=10.6
127+
build_arch=x86_64
121128

122129
... and then uninstalling and re-installing, or simply rebuilding, all ports.
123130

124131
As of December 2012, the `boost` port does not obey `macosx_deployment_target`.
125132
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.
132134

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.
134137

135138
Running
136139
-------
@@ -145,10 +148,13 @@ commands:
145148
chmod 600 "/Users/${USER}/Library/Application Support/Bitcoin/bitcoin.conf"
146149

147150
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
149155

150156
Other commands:
151157

152-
./bitcoind --help # for a list of command-line options.
153158
./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

doc/release-process.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,21 +103,23 @@ repackage gitian builds for release as stand-alone zip/tar/installer exe
103103

104104
**Perform Mac build:**
105105

106-
OSX binaries are created by Gavin Andresen on a 32-bit, OSX 10.6 machine.
106+
OSX binaries are created by Gavin Andresen on a 64-bit, OSX 10.6 machine.
107107

108-
qmake RELEASE=1 USE_UPNP=1 USE_QRCODE=1 bitcoin-qt.pro
108+
./autogen.sh
109+
SDK=$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
110+
CXXFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK" ./configure --enable-upnp-default
109111
make
110112
export QTDIR=/opt/local/share/qt4 # needed to find translations/qt_*.qm files
111113
T=$(contrib/qt_translations.py $QTDIR/translations src/qt/locale)
112-
python2.7 share/qt/clean_mac_info_plist.py
113-
python2.7 contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr $T -dmg -fancy contrib/macdeploy/fancy.plist
114+
export CODESIGNARGS='--keychain ...path_to_keychain --sign "Developer ID Application: BITCOIN FOUNDATION, INC., THE"'
115+
python2.7 contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -sign -add-qt-tr $T -dmg -fancy contrib/macdeploy/fancy.plist
114116

115117
Build output expected: Bitcoin-Qt.dmg
116118

117119
###Next steps:
118120

119-
* Code-sign Windows -setup.exe (in a Windows virtual machine) and
120-
OSX Bitcoin-Qt.app (Note: only Gavin has the code-signing keys currently)
121+
* Code-sign Windows -setup.exe (in a Windows virtual machine using signtool)
122+
Note: only Gavin has the code-signing keys currently.
121123

122124
* upload builds to SourceForge
123125

share/qt/Info.plist.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
33
<plist version="0.9">
44
<dict>
5+
<key>LSMinimumSystemVersion</key>
6+
<string>10.6.0</string>
7+
8+
<key>LSArchitecturePriority</key>
9+
<array>
10+
<string>x86_64</string>
11+
</array>
12+
513
<key>CFBundleIconFile</key>
614
<string>bitcoin.icns</string>
715

share/qt/clean_mac_info_plist.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)