Skip to content

Commit b8025b3

Browse files
committed
Merge bitcoin/bitcoin#32559: doc: add alpine build instructions
4f502ba doc: add alpine depends build instructions (will) 5332082 doc: add alpine build instructions (will) Pull request description: Closes: #32512 - Provide Alpine build instructions in build-unix.md. - Instructions cover building all components except USDT which is marked as unsupported for Alpine. ACKs for top commit: hebasto: ACK 4f502ba. Tree-SHA512: 821565714aa556d16c0c721748420333fb5574aa13858186a799a5ccbda981c5b77da2d74a23de01c505591ed3b872eb5552051922ba101fedd50dfddc926b06
2 parents 4f27e8c + 4f502ba commit b8025b3

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

depends/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ To build dependencies for the current arch+OS:
5757

5858
gmake
5959

60+
### Alpine
61+
62+
apk add bash build-base cmake curl make patch
63+
64+
Skip the following packages if you don't intend to use the GUI and will build with [`NO_QT=1`](#dependency-options):
65+
66+
apk add bison linux-headers samurai pkgconf python3
67+
68+
To build dependencies for the current arch+OS:
69+
70+
make
71+
6072
## Configuring Bitcoin Core
6173

6274
**When configuring Bitcoin Core, CMake by default will ignore the depends output.** In

doc/build-unix.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,45 @@ The GUI will be able to encode addresses in QR codes unless this feature is expl
143143

144144
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.
145145

146+
### Alpine
147+
148+
#### Dependency Build Instructions
149+
150+
Build requirements:
151+
152+
apk add build-base cmake linux-headers pkgconf python3
153+
154+
Now, you can either build from self-compiled [depends](#dependencies) or install the required dependencies:
155+
156+
apk add libevent-dev boost-dev
157+
158+
SQLite is required for the descriptor wallet:
159+
160+
apk add sqlite-dev
161+
162+
To build Bitcoin Core without wallet, see [*Disable-wallet mode*](#disable-wallet-mode)
163+
164+
ZMQ dependencies (provides ZMQ API):
165+
166+
apk add zeromq-dev
167+
168+
User-Space, Statically Defined Tracing (USDT) is not supported or tested on Alpine Linux at this time.
169+
170+
GUI dependencies:
171+
172+
Bitcoin Core includes a GUI built with the cross-platform Qt Framework. To compile the GUI, we need to install
173+
the necessary parts of Qt, the libqrencode and pass `-DBUILD_GUI=ON`. Skip if you don't intend to use the GUI.
174+
175+
apk add qt6-qtbase-dev qt6-qttools-dev
176+
177+
For Qt 6.5 and later, the `xcb-util-cursor` package must be installed at runtime.
178+
179+
The GUI will be able to encode addresses in QR codes unless this feature is explicitly disabled. To install libqrencode, run:
180+
181+
apk add libqrencode-dev
182+
183+
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.
184+
146185
## Dependencies
147186

148187
See [dependencies.md](dependencies.md) for a complete overview, and

0 commit comments

Comments
 (0)