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
See [dependencies.md](dependencies.md) for a complete overview.
18
17
19
18
### 2. Clone Bitcoin Repo
20
19
Now that `git` and all the required dependencies are installed, let's clone the Bitcoin Core repository to a directory. All build scripts and commands will run from this directory.
21
-
```bash
20
+
```bash
22
21
git clone https://github.com/bitcoin/bitcoin.git
23
22
```
24
23
@@ -31,7 +30,7 @@ It is not necessary to build wallet functionality to run either `bitcoind` or `b
31
30
32
31
`sqlite3` is required to support [descriptor wallets](descriptors.md).
33
32
Skip if you don't intend to use descriptor wallets.
34
-
```bash
33
+
```bash
35
34
pkg install sqlite3
36
35
```
37
36
@@ -41,7 +40,8 @@ BerkeleyDB is only required if legacy wallet support is required.
41
40
It is required to use Berkeley DB 4.8. You **cannot** use the BerkeleyDB library
42
41
from ports. However, you can build DB 4.8 yourself [using depends](/depends).
Bitcoin Core includes a GUI built with the cross-platform Qt Framework. To compile the GUI, we need to install the necessary parts of Qt. Skip if you don't intend to use the GUI.
67
+
Bitcoin Core includes a GUI built with the cross-platform Qt Framework. To compile the GUI, we need to install
68
+
the necessary parts of Qt, the libqrencode and pass `-DBUILD_GUI=ON`. Skip if you don't intend to use the GUI.
The GUI can encode addresses in a QR Code. To build in QR support for the GUI, install `libqrencode`. Skip if not using the GUI or don't want QR code functionality.
76
+
The GUI will be able to encode addresses in QR codes unless this feature is explicitly disabled. To install libqrencode, run:
77
+
75
78
```bash
76
79
pkg install libqrencode
77
80
```
81
+
82
+
Otherwise, if you don't need QR encoding support, use the `-DWITH_QRENCODE=OFF` option to disable this feature in order to compile the GUI.
NetBSD currently ships with an older version of `gcc` than is needed to build. You should upgrade your `gcc` and then pass this new version to the configure script.
@@ -25,10 +24,10 @@ pkgin install gcc12
25
24
26
25
Then, when configuring, pass the following:
27
26
```bash
28
-
./configure
27
+
cmake -B build
29
28
...
30
-
CC="/usr/pkg/gcc12/bin/gcc" \
31
-
CXX="/usr/pkg/gcc12/bin/g++" \
29
+
-DCMAKE_C_COMPILER="/usr/pkg/gcc12/bin/gcc" \
30
+
-DCMAKE_CXX_COMPILER="/usr/pkg/gcc12/bin/g++" \
32
31
...
33
32
```
34
33
@@ -65,19 +64,26 @@ pkgin install db4
65
64
```
66
65
67
66
#### GUI Dependencies
67
+
###### Qt5
68
68
69
-
Bitcoin Core includes a GUI built with the cross-platform Qt Framework. To compile the GUI, Qt 5 is required.
69
+
Bitcoin Core includes a GUI built with the cross-platform Qt Framework. To compile the GUI, we need to install
70
+
the necessary parts of Qt, the libqrencode and pass `-DBUILD_GUI=ON`. Skip if you don't intend to use the GUI.
70
71
71
72
```bash
72
73
pkgin install qt5-qtbase qt5-qttools
73
74
```
74
75
75
-
The GUI can encode addresses in a QR Code. To build in QR support for the GUI, install `qrencode`.
76
+
###### libqrencode
77
+
78
+
The GUI will be able to encode addresses in QR codes unless this feature is explicitly disabled. To install libqrencode, run:
76
79
77
80
```bash
78
81
pkgin install qrencode
79
82
```
80
83
84
+
Otherwise, if you don't need QR encoding support, use the `-DWITH_QRENCODE=OFF` option to disable this feature in order to compile the GUI.
85
+
86
+
81
87
#### Test Suite Dependencies
82
88
83
89
There is an included test suite that is useful for testing code changes when developing.
@@ -89,28 +95,22 @@ pkgin install python39
89
95
90
96
### Building Bitcoin Core
91
97
92
-
**Note**: Use `gmake` (the non-GNU `make` will exit with an error).
93
-
94
-
95
98
### 1. Configuration
96
99
97
100
There are many ways to configure Bitcoin Core. Here is an example that
0 commit comments