Hi, all:
My ENV: Ubuntu 18.04.2 Qt 5.12.1 bitcoin: git master of the day Feb 27, 2019.
My configuration is:
$ export PKG_CONFIG_PATH=/opt/Qt/Current/gcc_64/lib/pkgconfig
$ ./configure --with-incompatible-bdb --enable-gprof=yes -with-gui=yes --with-boost-libdir=/usr/lib --with-boost-system=boost_system --with-boost-filesystem=boost_filesystem --with-boost-thread=boost_thread --with-boost-chrono=boost_chrono --with-boost-unit-test-framework=boost_unit_test_framework
If --with-gui=no, I can successfully build bitcoin. However, by enabling gui/qt, I obtained the following ERROR messages:
In file included from ./util/system.h:19,
from ./dbwrapper.h:12,
from ./txdb.h:10,
from ./test/test_bitcoin.h:14,
from ./wallet/test/wallet_test_fixture.h:8,
from wallet/test/wallet_test_fixture.cpp:5:
./compat/assumptions.h:17:3: error: #error "Bitcoin cannot be compiled without assertions."
# error "Bitcoin cannot be compiled without assertions."
^~~~~
In file included from ./util/system.h:19,
from ./dbwrapper.h:12,
from ./txdb.h:10,
from ./test/test_bitcoin.h:14,
from test/test_bitcoin.cpp:5:
./compat/assumptions.h:17:3: error: #error "Bitcoin cannot be compiled without assertions."
# error "Bitcoin cannot be compiled without assertions."
^~~~~
CXX crypto/libbitcoinconsensus_la-siphash.lo
CXX crypto/libbitcoinconsensus_la-sha256_sse4.lo
CXX libbitcoinconsensus_la-arith_uint256.lo
CXX consensus/libbitcoinconsensus_la-merkle.lo
CXX libbitcoinconsensus_la-hash.lo
CXX primitives/libbitcoinconsensus_la-block.lo
CXX primitives/libbitcoinconsensus_la-transaction.lo
CXX libbitcoinconsensus_la-pubkey.lo
In file included from ./wallet/walletdb.h:12,
from ./wallet/wallet.h:23,
from ./wallet/test/wallet_test_fixture.h:12,
from wallet/test/wallet_test_fixture.cpp:5:
./wallet/db.h: In destructor ‘BerkeleyDatabase::~BerkeleyDatabase()’:
./wallet/db.h:129:20: warning: unused variable ‘erased’ [-Wunused-variable]
size_t erased = env->m_databases.erase(strFile);
^~~~~~
CXX script/libbitcoinconsensus_la-bitcoinconsensus.lo
CXX script/libbitcoinconsensus_la-interpreter.lo
make[2]: *** [Makefile:10957: test/qt_test_test_bitcoin_qt-test_bitcoin.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:10999: wallet/test/qt_test_test_bitcoin_qt-wallet_test_fixture.o] Error 1
make[2]: Leaving directory '....../bitcoingui/src'
make[1]: *** [Makefile:12939: all-recursive] Error 1
make[1]: Leaving directory '....../bitcoingui/src'
make: *** [Makefile:774: all-recursive] Error 1
Any suggestions?