Skip to content

Commit 5332082

Browse files
committed
doc: add alpine build instructions
1 parent 7710a31 commit 5332082

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

doc/build-unix.md

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

140140
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.
141141

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

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

0 commit comments

Comments
 (0)