I download the Bitcoin code and compile at windows. win7 64bit, using the msys and mingW compile the Bitcoin code. c:/MinGW32 c:/Mingw The msys is in Mingw. Bitcoin code is at h:/vm/bitcoin.sys. Before this, I compiled db-4.8.30.NC(at h:/vm/libs) already, in msys comand line window:
cd db-4.8.30.NC/build_unix ../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication make
then I find the db_cxx.h from build_unix folder.
Compile Bitcoin in the msys command line window:
cd h: cd vm/bitcoin.sys ./autogen.sh CPPFLAGS="-I/c/deps/boost_1_55_0 \ -I/h/vm/db-4.8.30.NC/build_unix \ ... (autogen other's parameters) ./configure ...(confiture parameters)
about 20minutes later, the error appeared: configure: error: libdb_cxx headers missing, Bitcoin Core requires this library for wallet functionality(--disable-wallet to disable wallet functionality)
I try these ways: https://github.com/bitcoin/bitcoin/issues/2998 and https://bitcointalk.org/index.php?topic=588032 The error still over there. Note: in msys, there is no apt-get command, so I cannot do "apt-get install libdb++-dev".
I found the followings in the config.log file:
PATH: . PATH: /usr/local/bin PATH: /mingw/bin PATH: /bin PATH: /c/MinGW32/bin ...
So, I copy the db_cxx.h and related .h file to: c:/mingw/msys/1.0/include/ c:/mingw/msys/1.0/local/include/ c:/mingw/msys/1.0/db48/ c:/mingw/bin/db48/ c:/mingw32/bin/db48/ h:/vm/bitcoin.sys/src/
There is no effect.
I change bdbdirlist in configure file to bdbdirlist="/h/vm/libs/db-4.8.30.NC/build_unix" and change the include in confdefs.cpp to:
#include "/h/vm/libs/db-4.8.30.NC/build_unix/db_cxx.h"
All the work is no effect. How do I?