Skip to main content
This guide describes how to build bitcoind, command-line utilities, and GUI on BSD systems.
Updated for FreeBSD 14.3

Preparation

1. Install Required Dependencies

1

Install base dependencies

Run the following as root to install the base dependencies:
pkg install boost-libs cmake git libevent pkgconf
2

Install SQLite for wallet support

SQLite is required for wallet functionality:
pkg install sqlite3
To build without wallet support, use -DENABLE_WALLET=OFF.
3

Install Cap'n Proto for IPC

Cap’n Proto is needed for IPC functionality:
pkg install capnproto
Compile with -DENABLE_IPC=OFF if you do not need IPC functionality.

2. Clone Bitcoin Repository

git clone https://github.com/bitcoin/bitcoin.git

3. Install Optional Dependencies

GUI Dependencies

1

Install Qt6

Bitcoin Core includes a GUI built with Qt. To compile the GUI, install Qt and pass -DBUILD_GUI=ON:
pkg install qt6-base qt6-tools
2

Install libqrencode (optional)

The GUI can encode addresses in QR codes:
pkg install libqrencode
Otherwise, use -DWITH_QRENCODE=OFF to disable this feature.

ZeroMQ Notifications

Bitcoin Core can provide notifications via ZeroMQ:
pkg install libzmq4

Test Suite Dependencies

To run the test suite (recommended), install Python 3:
pkg install python3 databases/py-sqlite3 net/py-pyzmq

Building Bitcoin Core

1. Configuration

cmake -B build -DBUILD_GUI=ON

2. Compile

cmake --build build     # Append "-j N" for N parallel jobs
ctest --test-dir build  # Append "-j N" for N parallel tests

See Also

Dependencies

Complete overview of all build dependencies

Linux/Unix Build

Building on Linux and Unix systems