HowTo Windows Compiling Wallet - 32 bit & 64 bit.
Environment:
I will not enter in explaining how to compile different dependencies necessaries for this. I made one archive that contains everything precompiled (32&64 bit) and all source code.
Dependencies:
Boost 1.57.0
DB 4.8.30
Libpng 1.6.16
Miniupnpc 1.9.20150206
Openssl 1.0.1l
Protobuf 2.6.1
Qrencode 3.4.4
QTbase 5.3.2.7
QTTools 5.3.2.7
Download Env32&64.7z (
https://mega.co.nz/#!Xw01HI7a!HKTGpsDFAfYfuG4eD1mdwFJriObeceqBMSxKfZJ5ve8) 624 MB archive (4706 MB decompresed).
Decompress all in C. You now must have in C the following dirs: deps, deps64, mingw, mingw32, mingw64, qt, qt64.
Copy from "C:\mingw" the shortcuts "MSYS32" and "MSYS64" to your Desktop.
Clone from GIT or Download ZIP the source code
https://github.com/bitcreditscc/bicreditsnew.
Put all, let's say in "C:\Bitcredits\bitcreditsnew".
Copy "C:\Bitcredits\bitcreditsnew\build-aux" directory to "C:\Bitcredits\bitcreditsnew\src\secp256k1".
For 32bit:
Create a file, let's say "build32bit.sh" in "C:\Bitcredits\bitcreditsnew\" with the following content:
bash autogen.sh
CPPFLAGS="-I/c/deps/db-4.8.30.NC/build_unix \
-I/c/deps/openssl-1.0.1l/include \
-I/c/deps \
-I/c/deps/protobuf-2.6.1/src \
-I/c/deps/libpng-1.6.16 \
-I/c/deps/qrencode-3.4.4" \
LDFLAGS="-L/c/deps/db-4.8.30.NC/build_unix \
-L/c/deps/openssl-1.0.1l \
-L/c/deps/miniupnpc \
-L/c/deps/protobuf-2.6.1/src/.libs \
-L/c/deps/libpng-1.6.16/.libs \
-L/c/deps/qrencode-3.4.4/.libs" \
BOOST_ROOT=/c/deps/boost_1_57_0 \
./configure \
--disable-upnp-default \
--disable-tests \
--with-qt-incdir=/c/Qt/5.3.2/include \
--with-qt-libdir=/c/Qt/5.3.2/lib \
--with-qt-plugindir=/c/Qt/5.3.2/plugins \
--with-qt-bindir=/c/Qt/5.3.2/bin \
--with-protoc-bindir=/c/deps/protobuf-2.6.1/src
make -j4
strip src/bitcredit-cli.exe
strip src/bitcreditd.exe
strip src/bitcredit-tx.exe
strip src/qt/bitcredit-qt.exe
and save it.
Open the MSYS32 and enter:
cd /c/Bitcredits/bitcreditsnew
bash build32bit.sh
bitcredit-qt.exe is located in "C:\Bitcredits\bitcreditsnew\src\qt"
For 64bit:
Create a file, let's say "build64bit.sh" in "C:\Bitcredits\bitcreditsnew\" with the following content:
bash autogen.sh
CPPFLAGS="-I/c/deps64/db-4.8.30.NC/build_unix \
-I/c/deps64/openssl-1.0.1l/include \
-I/c/deps64 \
-I/c/deps64/protobuf-2.6.1/src \
-I/c/deps64/libpng-1.6.16 \
-I/c/deps64/qrencode-3.4.4" \
LDFLAGS="-L/c/deps64/db-4.8.30.NC/build_unix \
-L/c/deps64/openssl-1.0.1l \
-L/c/deps64/miniupnpc \
-L/c/deps64/protobuf-2.6.1/src/.libs \
-L/c/deps64/libpng-1.6.16/.libs \
-L/c/deps64/qrencode-3.4.4/.libs" \
BOOST_ROOT=/c/deps64/boost_1_57_0 \
./configure \
--disable-upnp-default \
--disable-tests \
--with-qt-incdir=/c/Qt64/5.3.2/include \
--with-qt-libdir=/c/Qt64/5.3.2/lib \
--with-qt-plugindir=/c/Qt64/5.3.2/plugins \
--with-qt-bindir=/c/Qt64/5.3.2/bin \
--with-protoc-bindir=/c/deps64/protobuf-2.6.1/src
make -j4
strip src/bitcredit-cli.exe
strip src/bitcreditd.exe
strip src/bitcredit-tx.exe
strip src/qt/bitcredit-qt.exe
and save it.
Open the MSYS64 and enter:
cd /c/Bitcredits/bitcreditsnew
bash build64bit.sh
bitcredit-qt.exe is located in "C:\Bitcredits\bitcreditsnew\src\qt"