你要编译windows版的比特币程序,基本上有两种方法,一种是在linux平台
访问http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download
MSYS
targetting Win32/Personal
Builds/mingw-builds/4.8.2/threads-posix/dwarf/i686-4.8.2-release-posix-dwarf-rt_v3-rev3.7z/download
COLLECT_LTO_WRAPPER=c:/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.8.2/lto-wrapper.exe
–host=i686-w64-mingw32 –build=i686-w64-mingw32
–target=i686-w64-mingw32 –prefix=/mingw32
–with-sysroot=/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32
–with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++
–enable-shared –enable-static –disable-multilib
–enable-languages=ada,c,c++,fortran,objc,obj-c++,lto
–enable-libstdcxx-time=yes –enable-threads=posix –enable-libgomp
–enable-libatomic –enable-lto –enable-graphite
–enable-checking=release –enable-fully-dynamic-string
–enable-version-specific-runtime-libs –disable-sjlj-exceptions
–with-dwarf2 –disable-isl-version-check
–disable-cloog-version-check –disable-libstdcxx-pch
–disable-libstdcxx-debug –enable-bootstrap –disable-rpath
–disable-win32-registry –disable-nls –disable-werror
–disable-symvers –with-gnu-as –with-gnu-ld –with-arch=i686
–with-tune=generic –with-libiconv –with-system-zlib
–with-gmp=/c/mingw482/prerequisites/i686-w64-mingw32-static
–with-mpfr=/c/mingw482/prerequisites/i686-w64-mingw32-static
–with-mpc=/c/mingw482/prerequisites/i686-w64-mingw32-static
–with-isl=/c/mingw482/prerequisites/i686-w64-mingw32-static
–with-cloog=/c/mingw482/prerequisites/i686-w64-mingw32-static
–enable-cloog-backend=isl
–with-pkgversion=’i686-posix-dwarf-rev3, Built by MinGW-W64
project’ –with-bugurl=http://sourceforge.net/projects/mingw-w64
CFLAGS=’-O2 -pipe
-I/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32/opt/include
-I/c/mingw482/prerequisites/i686-zlib-static/include
-I/c/mingw482/prerequisites/i686-w64-mingw32-static/include’
CXXFLAGS=’-O2 -pipe
-I/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32/opt/include
-I/c/mingw482/prerequisites/i686-zlib-static/include
-I/c/mingw482/prerequisites/i686-w64-mingw32-static/include’
CPPFLAGS= LDFLAGS=’-pipe
-L/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32/opt/lib
-L/c/mingw482/prerequisites/i686-zlib-static/lib
-L/c/mingw482/prerequisites/i686-w64-mingw32-static/lib
-Wl,–large-address-aware’
project)
安装OpenSSL下载:http://www.openssl.org/source/openssl-1.0.1g.tar.gz
比如目录:(C:\MinGW\msys\1.0\msys.bat)运行这个msys.bat,就会启动一个shell环境,提示符是$
http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
cd /c/deps/
tar xvfz db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication
make
http://sourceforge.net/projects/boost/files/boost/1.55.0/
–with-program_options –with-system –with-thread toolset=gcc
variant=release link=static threading=multi runtime-link=static
stage
http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.tar.gz
http://protobuf.googlecode.com/files/protobuf-2.5.0.zip
http://prdownloads.sourceforge.net/libpng/libpng-1.6.10.tar.gz?download
ode:
../../mingw32/i686-w64-mingw32/lib/libz.a” \
–without-tools
http://download.qt-project.org/official_releases/qt/5.2/5.2.1/submodules/qtbase-opensource-src-5.2.1.7z
http://download.qt-project.org/official_releases/qt/5.2/5.2.1/submodules/qttools-opensource-src-5.2.1.7z
INCLUDE=C:\deps\libpng-1.6.10;C:\deps\openssl-1.0.1g\include
LIB=C:\deps\libpng-1.6.10\.libs;C:\deps\openssl-1.0.1g
-make libs -no-sql-sqlite -no-opengl -system-zlib -qt-pcre -no-icu
-no-gif -system-libpng -no-libjpeg -no-freetype -no-angle
-no-vcproj -openssl-linked -no-dbus -no-audio-backend
-no-wmf-backend -no-qml-debug
https://github.com/bitcoin/bitcoin/archive/v0.9.1.zip
/c/deps/libpng-1.6.10/.libs/libpng.a
,bitcoin-qt.exe(windows QT图形界面的钱包软件)
QQ43299243