1
1
# macOS Build Guide
2
2
3
- ** Updated for MacOS [ 11.2 ] ( https://www.apple.com/macos/big-sur / ) **
3
+ ** Updated for MacOS [ 14.4 ] ( https://www.apple.com/macos/sonoma / ) **
4
4
5
5
This guide describes how to build bitcoind, command-line utilities, and GUI on macOS
6
6
@@ -48,7 +48,7 @@ See [dependencies.md](dependencies.md) for a complete overview.
48
48
To install, run the following from your terminal:
49
49
50
50
``` bash
51
- brew install automake libtool boost pkg-config libevent
51
+ brew install cmake boost pkg-config libevent
52
52
```
53
53
54
54
### 4. Clone Bitcoin repository
@@ -163,7 +163,7 @@ brew install python
163
163
164
164
#### Deploy Dependencies
165
165
166
- You can deploy a ` .zip ` containing the Bitcoin Core application using ` make deploy ` .
166
+ You can [ deploy] ( #3-deploy-optional ) a ` .zip ` containing the Bitcoin Core application.
167
167
It is required that you have ` python ` installed.
168
168
169
169
## Building Bitcoin Core
@@ -179,8 +179,9 @@ If `sqlite` is installed, then descriptor wallet support will also be built.
179
179
Additionally, this explicitly disables the GUI.
180
180
181
181
``` bash
182
- ./autogen.sh
183
- ./configure --with-gui=no
182
+ mkdir build
183
+ cd build
184
+ cmake -S .. -DWITH_GUI=OFF
184
185
```
185
186
186
187
##### Wallet (only SQlite) and GUI Support:
@@ -191,15 +192,17 @@ If `sqlite` is installed then descriptor wallet functionality will be built.
191
192
If ` sqlite ` is not installed, then wallet functionality will be disabled.
192
193
193
194
``` bash
194
- ./autogen.sh
195
- ./configure --without-bdb --with-gui=yes
195
+ mkdir build
196
+ cd build
197
+ cmake -S .. -DWITH_BDB=OFF -DWITH_GUI=Qt5
196
198
```
197
199
198
200
##### No Wallet or GUI
199
201
200
202
``` bash
201
- ./autogen.sh
202
- ./configure --without-wallet --with-gui=no
203
+ mkdir build
204
+ cd build
205
+ cmake -S .. -DENABLE_WALLET=OFF -DWITH_GUI=OFF
203
206
```
204
207
205
208
##### Further Configuration
@@ -208,7 +211,7 @@ You may want to dig deeper into the configuration options to achieve your desire
208
211
Examine the output of the following command for a full list of configuration options:
209
212
210
213
``` bash
211
- ./configure -help
214
+ cmake -S .. -LH
212
215
```
213
216
214
217
### 2. Compile
@@ -217,16 +220,16 @@ After configuration, you are ready to compile.
217
220
Run the following in your terminal to compile Bitcoin Core:
218
221
219
222
``` bash
220
- make # use "-j N" here for N parallel jobs
221
- make check # Run tests if Python 3 is available
223
+ cmake --build . # Use "-j N" here for N parallel jobs.
224
+ ctest # Run tests if Python 3 is available. Use "-j N" here for N parallel jobs.
222
225
```
223
226
224
227
### 3. Deploy (optional)
225
228
226
229
You can also create a ` .zip ` containing the ` .app ` bundle by running the following command:
227
230
228
231
``` bash
229
- make deploy
232
+ cmake --build . --target deploy
230
233
```
231
234
232
235
## Running Bitcoin Core
0 commit comments