Skip to content

Commit e5681a4

Browse files
committed
Merge pull request #3986
65adc3a qt: Don't require db_cxx.h when wallet disabled (Wladimir J. van der Laan) 4babd08 doc: Add note about memory reqs for compilation (Wladimir J. van der Laan) 25333a2 build: improve missing boost error reporting (Wladimir J. van der Laan)
2 parents 8d5abd4 + 65adc3a commit e5681a4

9 files changed

+22
-7
lines changed

doc/build-unix.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ Licenses of statically linked libraries:
5252
- protobuf 2.5.0
5353
- libqrencode 3.2.0
5454

55+
System requirements
56+
--------------------
57+
58+
C++ compilers are memory-hungry. It is recommended to have at least 1 GB of
59+
memory available when compiling Bitcoin Core. With 512MB of memory or less
60+
compilation will take much longer due to swap thrashing.
61+
5562
Dependency Build Instructions: Ubuntu & Debian
5663
----------------------------------------------
5764
Build requirements:

src/m4/ax_boost_chrono.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ AC_DEFUN([AX_BOOST_CHRONO],
8181
8282
LDFLAGS_SAVE=$LDFLAGS
8383
if test "x$ax_boost_user_chrono_lib" = "x"; then
84+
ax_lib=
8485
for libextension in `ls $BOOSTLIBDIR/libboost_chrono*.so* $BOOSTLIBDIR/libboost_chrono*.dylib* $BOOSTLIBDIR/libboost_chrono*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_chrono.*\)\.so.*$;\1;' -e 's;^lib\(boost_chrono.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_chrono.*\)\.a.*$;\1;'` ; do
8586
ax_lib=${libextension}
8687
AC_CHECK_LIB($ax_lib, exit,
@@ -105,7 +106,7 @@ AC_DEFUN([AX_BOOST_CHRONO],
105106
106107
fi
107108
if test "x$ax_lib" = "x"; then
108-
AC_MSG_ERROR(Could not find a version of the library!)
109+
AC_MSG_ERROR(Could not find a version of the boost_chrono library!)
109110
fi
110111
if test "x$link_chrono" = "xno"; then
111112
AC_MSG_ERROR(Could not link against $ax_lib !)

src/m4/ax_boost_filesystem.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ AC_DEFUN([AX_BOOST_FILESYSTEM],
8080
if test "x$ax_cv_boost_filesystem" = "xyes"; then
8181
AC_DEFINE(HAVE_BOOST_FILESYSTEM,,[define if the Boost::Filesystem library is available])
8282
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
83+
ax_lib=
8384
if test "x$ax_boost_user_filesystem_lib" = "x"; then
8485
for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
8586
ax_lib=${libextension}
@@ -104,7 +105,7 @@ AC_DEFUN([AX_BOOST_FILESYSTEM],
104105
105106
fi
106107
if test "x$ax_lib" = "x"; then
107-
AC_MSG_ERROR(Could not find a version of the library!)
108+
AC_MSG_ERROR(Could not find a version of the boost_filesystem library!)
108109
fi
109110
if test "x$link_filesystem" != "xyes"; then
110111
AC_MSG_ERROR(Could not link against $ax_lib !)

src/m4/ax_boost_program_options.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
7474
AC_DEFINE(HAVE_BOOST_PROGRAM_OPTIONS,,[define if the Boost::PROGRAM_OPTIONS library is available])
7575
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
7676
if test "x$ax_boost_user_program_options_lib" = "x"; then
77+
ax_lib=
7778
for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.dylib* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.dylib.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a.*$;\1;'` ; do
7879
ax_lib=${libextension}
7980
AC_CHECK_LIB($ax_lib, exit,
@@ -96,7 +97,7 @@ AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
9697
done
9798
fi
9899
if test "x$ax_lib" = "x"; then
99-
AC_MSG_ERROR(Could not find a version of the library!)
100+
AC_MSG_ERROR(Could not find a version of the boost_program_options library!)
100101
fi
101102
if test "x$link_program_options" != "xyes"; then
102103
AC_MSG_ERROR([Could not link against [$ax_lib] !])

src/m4/ax_boost_system.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ AC_DEFUN([AX_BOOST_SYSTEM],
8383
8484
LDFLAGS_SAVE=$LDFLAGS
8585
if test "x$ax_boost_user_system_lib" = "x"; then
86+
ax_lib=
8687
for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
8788
ax_lib=${libextension}
8889
AC_CHECK_LIB($ax_lib, exit,
@@ -107,7 +108,7 @@ AC_DEFUN([AX_BOOST_SYSTEM],
107108
108109
fi
109110
if test "x$ax_lib" = "x"; then
110-
AC_MSG_ERROR(Could not find a version of the library!)
111+
AC_MSG_ERROR(Could not find a version of the boost_system library!)
111112
fi
112113
if test "x$link_system" = "xno"; then
113114
AC_MSG_ERROR(Could not link against $ax_lib !)

src/m4/ax_boost_thread.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ AC_DEFUN([AX_BOOST_THREAD],
104104
;;
105105
esac
106106
if test "x$ax_boost_user_thread_lib" = "x"; then
107+
ax_lib=
107108
for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
108109
ax_lib=${libextension}
109110
AC_CHECK_LIB($ax_lib, exit,
@@ -128,7 +129,7 @@ AC_DEFUN([AX_BOOST_THREAD],
128129
129130
fi
130131
if test "x$ax_lib" = "x"; then
131-
AC_MSG_ERROR(Could not find a version of the library!)
132+
AC_MSG_ERROR(Could not find a version of the boost_thread library!)
132133
fi
133134
if test "x$link_thread" = "xno"; then
134135
AC_MSG_ERROR(Could not link against $ax_lib !)

src/m4/ax_boost_unit_test_framework.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ AC_DEFUN([AX_BOOST_UNIT_TEST_FRAMEWORK],
7676
7777
if test "x$ax_boost_user_unit_test_framework_lib" = "x"; then
7878
saved_ldflags="${LDFLAGS}"
79+
ax_lib=
7980
for monitor_library in `ls $BOOSTLIBDIR/libboost_unit_test_framework*.so* $BOOSTLIBDIR/libboost_unit_test_framework*.dylib* $BOOSTLIBDIR/libboost_unit_test_framework*.a* 2>/dev/null` ; do
8081
if test -r $monitor_library ; then
8182
libextension=`echo $monitor_library | sed 's,.*/,,' | sed -e 's;^lib\(boost_unit_test_framework.*\)\.so.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.a.*$;\1;'`
@@ -124,7 +125,7 @@ AC_DEFUN([AX_BOOST_UNIT_TEST_FRAMEWORK],
124125
done
125126
fi
126127
if test "x$ax_lib" = "x"; then
127-
AC_MSG_ERROR(Could not find a version of the library!)
128+
AC_MSG_ERROR(Could not find a version of the boost_unit_test_framework library!)
128129
fi
129130
if test "x$link_unit_test_framework" != "xyes"; then
130131
AC_MSG_ERROR(Could not link against $ax_lib !)

src/qt/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ BITCOIN_QT_CPP = \
276276
qvalidatedlineedit.cpp \
277277
qvaluecombobox.cpp \
278278
rpcconsole.cpp \
279-
signverifymessagedialog.cpp \
280279
splashscreen.cpp \
281280
trafficgraphwidget.cpp \
282281
utilitydialog.cpp
@@ -298,6 +297,7 @@ BITCOIN_QT_CPP += \
298297
recentrequeststablemodel.cpp \
299298
sendcoinsdialog.cpp \
300299
sendcoinsentry.cpp \
300+
signverifymessagedialog.cpp \
301301
transactiondesc.cpp \
302302
transactiondescdialog.cpp \
303303
transactionfilterproxy.cpp \

src/qt/bitcoin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
#include "rpcserver.h"
2626
#include "ui_interface.h"
2727
#include "util.h"
28+
#ifdef ENABLE_WALLET
2829
#include "wallet.h"
30+
#endif
2931

3032
#include <stdint.h>
3133

0 commit comments

Comments
 (0)