Skip to content

Commit

Permalink
Fixed FreeBSD build instructions (by Candunc)
Browse files Browse the repository at this point in the history
Summary: Documentation fixes for building Bitcoin ABC on FreeBSD (non-GUI version only at the moment)

Test Plan: Verify that the instructions result in a working build on FreeBSD 11.0-RELEASE

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Candunc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Subscribers: freetrader, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D332
  • Loading branch information
ftrader committed Jul 28, 2017
1 parent 6749c72 commit ddc452a
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions doc/build-unix.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Clang is installed by default as `cc` compiler, this makes it easier to get
started than on [OpenBSD](build-openbsd.md). Installing dependencies:

pkg install autoconf automake libtool pkgconf
pkg install boost-libs openssl libevent2
pkg install boost-libs openssl libevent gmake

(`libressl` instead of `openssl` will also work)

Expand All @@ -334,11 +334,25 @@ than 4.8; wallets opened by this build will not be portable!", but as FreeBSD ne
had a binary release, this may not matter. If backwards compatibility
with 4.8-built Bitcoin Core is needed follow the steps under "Berkeley DB" above.

Also, if you intend to run the regression tests (qa tests):

pkg install python3

Then build using:

./autogen.sh
./configure --with-incompatible-bdb BDB_CFLAGS="-I/usr/local/include/db5" BDB_LIBS="-L/usr/local/lib -ldb_cxx-5"
make

With wallet support:

./configure --without-gui --without-miniupnpc --with-incompatible-bdb BDB_CFLAGS="-I/usr/local/include/db5" BDB_LIBS="-L/usr/local/lib -ldb_cxx-5"

Without wallet support:

./configure --without-gui --without-miniupnpc --disable-wallet

Then to compile:

gmake

*Note on debugging*: The version of `gdb` installed by default is [ancient and considered harmful](https://wiki.freebsd.org/GdbRetirement).
It is not suitable for debugging a multi-threaded C++ program, not even for getting backtraces. Please install the package `gdb` and
Expand Down

0 comments on commit ddc452a

Please sign in to comment.