You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pr makes the macOS build docs more informative and adds in the following information:
- Proper descriptions and delineation of required/optional dependencies
- walk-through of optional dependencies
- configuration walk-through
- various other tid-bits of information
[libtool](https://formulae.brew.sh/formula/libtool) | Build | Shared library support
17
+
[pkg-config](https://formulae.brew.sh/formula/pkg-config) | Build | Configure compiler and linker flags
18
+
[boost](https://formulae.brew.sh/formula/boost) | Utility | Library for threading, data structures, etc
19
+
[libevent](https://formulae.brew.sh/formula/libevent) | Networking | OS independent asynchronous networking
[qrencode](https://formulae.brew.sh/formula/qrencode) | QR codes in GUI | Generating QR codes (only needed when GUI enabled)
[sqlite](https://formulae.brew.sh/formula/sqlite) | SQLite DB | Wallet storage (only needed when wallet enabled)
30
+
[miniupnpc](https://formulae.brew.sh/formula/miniupnpc) | UPnP Support | Firewall-jumping support (needed for port mapping support)
31
+
[libnatpmp](https://formulae.brew.sh/formula/libnatpmp) | NAT-PMP Support | Firewall-jumping support (needed for port mapping support)
32
+
[python3](https://formulae.brew.sh/formula/[email protected]) | Testing | Python Interpreter (only needed when running the test suite)
33
+
34
+
The following dependencies are **optional** packages required for deploying:
[librsvg](https://formulae.brew.sh/formula/librsvg) | Deploy Dependency| Library to render SVG files
39
+
[ds_store](https://pypi.org/project/ds-store/) | Deploy Dependency| Examine and modify .DS_Store files
40
+
[mac_alias](https://pypi.org/project/mac-alias/) | Deploy Dependency| Generate/Read binary alias and bookmark records
41
+
42
+
See [dependencies.md](dependencies.md) for a complete overview.
43
+
44
+
## Preparation
2
45
3
46
The commands in this guide should be executed in a Terminal application.
4
-
The built-in one is located in
47
+
macOS comes with a built-in Terminal located in:
48
+
5
49
```
6
50
/Applications/Utilities/Terminal.app
7
51
```
8
52
9
-
## Preparation
10
-
Install the macOS command line tools:
53
+
### 1. Xcode Command Line Tools
11
54
12
-
```shell
55
+
The Xcode Command Line Tools are a collection of build tools for macOS.
56
+
These tools must be installed in order to build Bitcoin Core from source.
57
+
58
+
To install, run the following command from your terminal:
59
+
60
+
```bash
13
61
xcode-select --install
14
62
```
15
63
16
-
When the popup appears, click `Install`.
64
+
Upon running the command, you should see a popup appear.
65
+
Click on `Install` to continue the installation process.
17
66
18
-
Then install [Homebrew](https://brew.sh).
Homebrew is a package manager for macOS that allows one to install packages from the command line easily.
70
+
While several package managers are available for macOS, this guide will focus on Homebrew as it is the most popular.
71
+
Since the examples in this guide which walk through the installation of a package will use Homebrew, it is recommended that you install it to follow along.
72
+
Otherwise, you can adapt the commands to your package manager of choice.
73
+
74
+
To install the Homebrew package manager, see: https://brew.sh
75
+
76
+
Note: If you run into issues while installing Homebrew or pulling packages, refer to [Homebrew's troubleshooting page](https://docs.brew.sh/Troubleshooting).
77
+
78
+
### 3. Install Required Dependencies
79
+
80
+
The first step is to download the required dependencies.
81
+
These dependencies represent the packages required to get a barebones installation up and running.
If you run into issues, check [Homebrew's troubleshooting page](https://docs.brew.sh/Troubleshooting).
26
-
See [dependencies.md](dependencies.md) for a complete overview.
88
+
### 4. Clone Bitcoin repository
27
89
28
-
If you want to build the disk image with `make deploy` (.dmg / optional), you need RSVG:
29
-
```shell
30
-
brew install librsvg
90
+
`git` should already be installed by default on your system.
91
+
Now that all the required dependencies are installed, let's clone the Bitcoin Core repository to a directory.
92
+
All build scripts and commands will run from this directory.
and [`macdeployqtplus`](../contrib/macdeploy/README.md) dependencies:
34
-
```shell
35
-
pip3 install ds_store mac_alias
98
+
### 5. Install Optional Dependencies
99
+
100
+
#### Wallet Dependencies
101
+
102
+
It is not necessary to build wallet functionality to run `bitcoind` or `bitcoin-qt`.
103
+
To enable legacy wallets, you must install `berkeley-db@4`.
104
+
To enable [descriptor wallets](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md), `sqlite` is required.
105
+
Skip `berkeley-db@4` if you intend to *exclusively* use descriptor wallets.
106
+
107
+
###### Legacy Wallet Support
108
+
109
+
`berkeley-db@4` is required to enable support for legacy wallets.
110
+
Skip if you don't intend to use legacy wallets.
111
+
112
+
```bash
113
+
brew install berkeley-db@4
36
114
```
37
115
38
-
The wallet support requires one or both of the dependencies ([*SQLite*](#sqlite) and [*Berkeley DB*](#berkeley-db)) in the sections below.
39
-
To build Bitcoin Core without wallet, see [*Disable-wallet mode*](#disable-wallet-mode).
116
+
###### Descriptor Wallet Support
40
117
41
-
#### SQLite
118
+
Note: Apple has included a useable `sqlite` package since macOS 10.14.
119
+
You may not need to install this package.
42
120
43
-
Usually, macOS installation already has a suitable SQLite installation.
44
-
Also, the Homebrew package could be installed:
121
+
`sqlite` is required to enable support for descriptor wallets.
122
+
Skip if you don't intend to use descriptor wallets.
45
123
46
-
```shell
124
+
```bash
47
125
brew install sqlite
48
126
```
127
+
---
49
128
50
-
In that case the Homebrew package will prevail.
129
+
#### GUI Dependencies
51
130
52
-
####Berkeley DB
131
+
###### Qt
53
132
54
-
It is recommended to use Berkeley DB 4.8. If you have to build it yourself,
55
-
you can use [this](/contrib/install_db4.sh) script to install it
56
-
like so:
133
+
Bitcoin Core includes a GUI built with the cross-platform Qt Framework.
134
+
To compile the GUI, we need to install `qt@5`.
135
+
Skip if you don't intend to use the GUI.
57
136
58
-
```shell
59
-
./contrib/install_db4.sh .
137
+
```bash
138
+
brew install qt@5
60
139
```
61
140
62
-
from the root of the repository.
141
+
Note: Building with Qt binaries downloaded from the Qt website is not officially supported.
142
+
See the notes in [#7714](https://github.com/bitcoin/bitcoin/issues/7714).
63
143
64
-
Also, the Homebrew package could be installed:
144
+
###### qrencode
65
145
66
-
```shell
67
-
brew install berkeley-db4
146
+
The GUI can encode addresses in a QR Code. To build in QR support for the GUI, install `qrencode`.
147
+
Skip if not using the GUI or don't want QR code functionality.
./src/bitcoind -daemon # Starts the bitcoin daemon.
133
319
./src/bitcoin-cli --help # Outputs a list of command-line options.
134
320
./src/bitcoin-cli help# Outputs a list of RPC commands when the daemon is running.
321
+
./src/qt/bitcoin-qt -server # Starts the bitcoin-qt server mode, allows bitcoin-cli control
135
322
```
136
-
137
-
## Notes
138
-
* Tested on OS X 10.14 Mojave through macOS 11 Big Sur on 64-bit Intel
139
-
processors only.
140
-
* Building with downloaded Qt binaries is not officially supported. See the notes in [#7714](https://github.com/bitcoin/bitcoin/issues/7714).
0 commit comments