Skip to content

Commit d110200

Browse files
grubleslaanwj
authored andcommitted
Add OpenBSD instructions for building the Qt GUI
1 parent 56d47e1 commit d110200

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

doc/build-openbsd.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ OpenBSD build guide
22
======================
33
(updated for OpenBSD 6.7)
44

5-
This guide describes how to build bitcoind and command-line utilities on OpenBSD.
6-
7-
OpenBSD is most commonly used as a server OS, so this guide does not contain instructions for building the GUI.
5+
This guide describes how to build bitcoind, bitcoin-qt, and command-line utilities on OpenBSD.
86

97
Preparation
108
-------------
@@ -13,6 +11,7 @@ Run the following as root to install the base dependencies for building:
1311

1412
```bash
1513
pkg_add git gmake libevent libtool boost
14+
pkg_add qt5 # (optional for enabling the GUI)
1615
pkg_add autoconf # (select highest version, e.g. 2.69)
1716
pkg_add automake # (select highest version, e.g. 1.16)
1817
pkg_add python # (select highest version, e.g. 3.8)
@@ -80,6 +79,14 @@ To configure without wallet:
8079
./configure --disable-wallet --with-gui=no CC=cc CC_FOR_BUILD=cc CXX=c++ MAKE=gmake
8180
```
8281

82+
To configure with GUI:
83+
```bash
84+
./configure --with-gui=yes CC=cc CXX=c++ \
85+
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
86+
BDB_CFLAGS="-I${BDB_PREFIX}/include" \
87+
MAKE=gmake
88+
```
89+
8390
Build and run the tests:
8491
```bash
8592
gmake # use -jX here for parallelism

0 commit comments

Comments
 (0)