The easiest way to install the latest version of the Bells Core software is by to download the latest precompiled binaries for your platform from the release page. Currently, binaries are released for the following platforms:
- Windows, 64-bit and 32-bit
- Linux, 64-bit and 32-bit
- MacOS, Intel 64-bit
- ARM, 64-bit and 32-bit Linux
These binaries are created and verified by multiple independent people, to ensure honest and malware-free releases. See the gitian building documentation for more information regarding that process.
It is possible to build your own copy of Bells Core with the exact, tested, dependencies, as used for the binary releases, by using the depends system. Please refer to the depends README for instructions to build Bells using these dependencies.
The following are developer notes on how to build Bells on your native platform, using the dependencies as provided by your system's package manager. They are not complete guides, but include notes on the necessary libraries, compile flags, etc.
Unit tests can be compiled and ran with make check
. Further details on running
and extending unit tests can be found in /src/test/README.md.
There are also regression and integration tests written in Python, that
are run automatically on the build server. These tests can be run (if the
test dependencies are installed) with: qa/pull-tester/rpc-tests.py
compiling for debugging
Run configure
with the --enable-debug
option, then make
. Or run configure
with
CXXFLAGS="-g -ggdb -O0"
or whatever debug flags you need.
debug.log
If the code is behaving strangely, take a look in the debug.log file in the data directory; error and debugging messages are written there.
The -debug=...
command-line option controls debugging; running with just -debug
will turn
on all categories (and give you a very large debug.log file).
The Qt code routes qDebug()
output to debug.log under category "qt": run with -debug=qt
to see it.
testnet and regtest modes
Run with the -testnet
option to run with "play dogecoins" on the test network, if you
are testing multi-machine code that needs to operate across the internet.
If you are testing something that can run on one machine, run with the -regtest
option.
In regression test mode, blocks can be created on-demand; see qa/rpc-tests/ for tests
that run in -regtest
mode.
DEBUG_LOCKORDER
Bells Core is a multithreaded application, and deadlocks or other multithreading bugs
can be very difficult to track down. Compiling with -DDEBUG_LOCKORDER
(configure CXXFLAGS="-DDEBUG_LOCKORDER -g"
) inserts run-time checks to keep track of which locks
are held, and adds warnings to the debug.log file if inconsistencies are detected.