How to compile 32-bit windows HashCoin wallet, using Windows and Msys shell.
1.) Read this
https://bitcointalksearch.org/topic/building-headless-bitcoin-and-bitcoin-qt-on-windows-149479and execute all points 1.1-2.7 scrupulously as it was described in the first message there
2.) Now we have our build system with Qt 5.3.2 in C:\Qt\5.3.2 directory.
But, as was mentioned above, TheHashCoin wallet does not work with Qt 5.3.2. It works with Qt 4.8.4. So, create C:\Qt\4.8.4 directory, download qt-everywhere-opensource-src-4.8.4.zip file, extract it and move all files and subdirectories from qt-everywhere-opensource-src-4.8.4 directory to C:\Qt\4.8.4 directory.
Then go to C:\Qt\4.8.4 directory, create compile.bat file there with this contents
SET QT_DIR=C:\Qt\4.8.4
SET MinGW_DIR=C:\mingw32
SET QT_installed_DIR=C:\Qt\5.3.2\bin
SET QTDIR=%QT_DIR%
SET PATH=%MinGW_DIR%\opt\bin;%MinGW_DIR%\bin;%QT_installed_DIR%;%PATH%
SET LANG="en"
echo QMAKE_LFLAGS += -static -static-libgcc >> %QT_DIR%\mkspecs\win32-g++\qmake.conf
SET CPATH=C:\deps\openssl-1.0.1l\include;C:\deps\libpng-1.6.16
SET LIBRARY_PATH=C:\deps\openssl-1.0.1l;C:\deps\libpng-1.6.16\.libs
configure -opensource -release -confirm-license -static -platform win32-g++ -system-zlib -system-libpng -no-vcproj -no-dbus -openssl -no-sql-sqlite -no-opengl -no-gif -no-libjpeg
mingw32-make
and execute it from a Windows command prompt. By doing this we will get a static build Qt 4.8.4 in C:\Qt\4.8.4 directory. Note that we compiled static Qt 4.8.4 build by using previously created Qt 5.3.2 build.
3.) Now extract thehashcoin-master.zip so the directory thehashcoin-master will appear in C:\MinGW\msys\1.0\home\
directory. Then run a Msys shell and execute there
cd thehashcoin-master
./autogen.sh
LANG=en_US;export LANG
TARGET_OS=OS_WINDOWS_CROSSCOMPILE;export TARGET_OS
LIBRARY_PATH=/c/Qt/4.8.4/plugins/accessible:/c/Qt/4.8.4/plugins/codecs;export LIBRARY_PATH
CPPFLAGS="-I/c/deps/db-4.8.30.NC/build_unix \
-I/usr/local/include \
-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/usr/local/lib \
-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/4.8.4/include \
--with-qt-libdir=/c/Qt/4.8.4/lib \
--with-qt-plugindir=/c/Qt/4.8.4/plugins \
--with-qt-bindir=/c/Qt/4.8.4/bin \
--with-protoc-bindir=/c/deps/protobuf-2.6.1/src
make
strip src/thehashcoin-cli.exe
strip src/thehashcoin-tx.exe
strip src/thehashcoind.exe
strip src/qt/thehashcoin-qt.exe