BTC source code
Publish: 2021-03-25 15:11:06
1. Sorry
you can't modify this
because this source code records the development process of bitcoin along the way, the problems encountered in the mining process and the mining difficulty
there is open source code to mine, so no one can change it
you can't modify this
because this source code records the development process of bitcoin along the way, the problems encountered in the mining process and the mining difficulty
there is open source code to mine, so no one can change it
2. As a reminder, bitcoin has been exploited to the end. The principle of bitcoin program determines that the longer the generation interval is, the longer the time to generate a bitcoin may have exceeded its value. After all, we have to consider the power consumption and time of the mining computer. Although bitcoin is still very popular, it's a bit late to start now, and it's unlikely to make money.
3. Open source software, see: https://github.com/bitcoin/bitcoin/
4. In recent years, blockchain digital assets represented by bitcoin have become popular all over the world. Financial institutions, technology companies, investment companies and other participants at home and abroad have invested a lot of human, material and technical resources in the research, development, design, testing and promotion of blockchain digital assets. In order to realize the main characteristics of "four can and three can't" of blockchain digital assets, we can build the core technology system of digital assets by relying on 11 technologies of security technology, transaction technology and trusted guarantee technology. First of all, security technology is used to ensure the fluidity, storability, controllable anonymity, unforgeability, non repeatable transaction and non repudiation of blockchain digital assets. digital currency security technology mainly includes basic security technology, data security technology and transaction security technology. Basic security technology includes encryption and decryption technology and security chip technology. Encryption and decryption technology is mainly used in currency generation, secret transmission, identity verification and other aspects of digital assets. The establishment of a perfect encryption and decryption algorithm system is the core and foundation of the digital assets system, which needs to be customized and designed by the national password management organization. Security chip technology is mainly divided into terminal security mole technology and smart card chip technology. Digital assets can be traded in the form of mobile terminal based on terminal security mole. As the carrier of secure storage and encryption and decryption operation, terminal security mole can provide effective basic security protection for digital assets. Digital asset system trading platform blockchain technology research and development of data security technology, including data security transmission technology and secure storage technology. Data security transmission technology transmits digital asset information through ciphertext + MAC / ciphertext + hash to ensure the confidentiality, security and non tamperability of data information; Data security storage technology stores digital currency information by means of encryption storage, access control, security monitoring, etc., to ensure the integrity, confidentiality and controllability of data information
transaction security technology includes anonymous technology, identity authentication technology, anti plicate transaction technology and anti-counterfeiting technology. Anonymity technology realizes controllable anonymity of digital assets through blind signature (including blind parameter signature, weak blind signature, strong blind signature, etc.) and zero knowledge proof; The identity authentication technology verifies the user's identity through the authentication center to ensure the validity of the digital asset trader's identity; The anti plicate transaction technology ensures that digital assets are not reused by means of digital signature, serial number and time stamp; Anti counterfeiting technology ensures the authenticity of digital assets and transactions by means of encryption and decryption, digital signature and identity authentication. Secondly, the online transaction and offline transaction of digital assets are realized by transaction technology. Digital asset trading technology mainly includes online trading technology and offline trading technology. As a legal currency, digital assets should not be rejected by any unit or indivial, and can be traded online or offline. Online transaction technology realizes online transaction of digital assets through online device interaction technology, online data transmission technology and online transaction processing; The off-line transaction technology realizes the off-line transaction of digital assets through the off-line device interaction technology, off-line data transmission technology and off-line transaction processing technology. Finally, trusted guarantee technology is used to provide a safe and reliable application environment for the issuance, circulation and transaction of digital assets in blockchain. Digital asset trustworthiness assurance technology mainly refers to trusted service management technology. Based on trusted service management platform (TSM), it ensures the security and trustworthiness of digital asset security mole and application data, and provides security chip (SE) and application life cycle management function for digital asset participants. Trusted service management technology can provide application registration, application download, security authentication, authentication management, security evaluation, trusted loading and other services for digital assets, which can effectively ensure the security and credibility of digital assets system
what is blockchain? Blockchain technology, also known as distributed ledger technology, is an Internet database technology, which is characterized by decentralization, openness and transparency, so that everyone can participate in database records. Blockchain technology development blockchain technology development what is a blockchain system? Blockchain system is a database system with integrity. The data written into the system will be automatically copied to the nodes of the blockchain, which can achieve transactional data preservation, support the management and development of databases in various instries, and be proced in combination with various needs. 294.497 billion US dollars, or 2.60%. This week, five new projects entered the top 100, namely FST, ZB, Wix, wax and MXM. On August 11, the price of bitcoin was $11523.58, up 3.20% from last week, and Ethereum was $216.09, down 3.86% from last week. The 24-hour turnover of this week increased by 2.63% over the same period last week; Among the top 100 projects, the total market value and average market value of currency projects increased significantly, and the classification composition of global blockchain assets top 100 projects was stable.
transaction security technology includes anonymous technology, identity authentication technology, anti plicate transaction technology and anti-counterfeiting technology. Anonymity technology realizes controllable anonymity of digital assets through blind signature (including blind parameter signature, weak blind signature, strong blind signature, etc.) and zero knowledge proof; The identity authentication technology verifies the user's identity through the authentication center to ensure the validity of the digital asset trader's identity; The anti plicate transaction technology ensures that digital assets are not reused by means of digital signature, serial number and time stamp; Anti counterfeiting technology ensures the authenticity of digital assets and transactions by means of encryption and decryption, digital signature and identity authentication. Secondly, the online transaction and offline transaction of digital assets are realized by transaction technology. Digital asset trading technology mainly includes online trading technology and offline trading technology. As a legal currency, digital assets should not be rejected by any unit or indivial, and can be traded online or offline. Online transaction technology realizes online transaction of digital assets through online device interaction technology, online data transmission technology and online transaction processing; The off-line transaction technology realizes the off-line transaction of digital assets through the off-line device interaction technology, off-line data transmission technology and off-line transaction processing technology. Finally, trusted guarantee technology is used to provide a safe and reliable application environment for the issuance, circulation and transaction of digital assets in blockchain. Digital asset trustworthiness assurance technology mainly refers to trusted service management technology. Based on trusted service management platform (TSM), it ensures the security and trustworthiness of digital asset security mole and application data, and provides security chip (SE) and application life cycle management function for digital asset participants. Trusted service management technology can provide application registration, application download, security authentication, authentication management, security evaluation, trusted loading and other services for digital assets, which can effectively ensure the security and credibility of digital assets system
what is blockchain? Blockchain technology, also known as distributed ledger technology, is an Internet database technology, which is characterized by decentralization, openness and transparency, so that everyone can participate in database records. Blockchain technology development blockchain technology development what is a blockchain system? Blockchain system is a database system with integrity. The data written into the system will be automatically copied to the nodes of the blockchain, which can achieve transactional data preservation, support the management and development of databases in various instries, and be proced in combination with various needs. 294.497 billion US dollars, or 2.60%. This week, five new projects entered the top 100, namely FST, ZB, Wix, wax and MXM. On August 11, the price of bitcoin was $11523.58, up 3.20% from last week, and Ethereum was $216.09, down 3.86% from last week. The 24-hour turnover of this week increased by 2.63% over the same period last week; Among the top 100 projects, the total market value and average market value of currency projects increased significantly, and the classification composition of global blockchain assets top 100 projects was stable.
5. And this: https://github.com/bitcoin/bitcoin
6. Bitcoin is a kind of virtual currency in the form of P2P. Point to point transmission means a decentralized payment system. Bitcoin does not rely on specific currency institutions to issue. It is generated through a large number of calculations of specific algorithms. Bitcoin economy uses a distributed database composed of many nodes in the whole
P2P network to confirm and record all transactions
bitcoin trading is carried out through bitcoin trading platform. At present, the better bitcoin trading platforms in China are okcoin, bitcoin China, fire coin network, 796 trading network, etc. the capital of each company is different. Okcoin is based on technology, and fire coin network pays more attention to user experience, But in terms of professionalism, okcoin is relatively good.
P2P network to confirm and record all transactions
bitcoin trading is carried out through bitcoin trading platform. At present, the better bitcoin trading platforms in China are okcoin, bitcoin China, fire coin network, 796 trading network, etc. the capital of each company is different. Okcoin is based on technology, and fire coin network pays more attention to user experience, But in terms of professionalism, okcoin is relatively good.
7. You said that is the encryption digital currency, the source code son in the open source website may inquire. You can also go to the official website of bitcoin foundation to find the source code of bitcoin
network virtual currency can be roughly divided into
the first category is familiar game currency. In the era of stand-alone games, the protagonist accumulates money by knocking down the enemy, entering the gambling house to win money, and using these to buy Herbs and equipment, but it can only be used in his own game console. At that time, there was no "market" between players. Since the establishment of Internet portal and community, the realization of game networking, virtual currency has a "financial market", players can trade game currency
the second type is the special currency issued by the portal website or instant messaging service provider, which is used to purchase the services in the website. The most widely used is Tencent's q-coin, which can be used to purchase membership, QQ show and other value-added services
the third kind of virtual currency on the Internet, such as bitcoin (BTC), Fuyuan coin (FTC), Wright currency (LTC), etc. bitcoin is an electronic currency proced by open-source P2P software. Some people also translate bitcoin as "bitcoin", which is a kind of network virtual currency. Mainly used for Internet financial investment, can also be used as a new currency directly for life
network virtual currency can be roughly divided into
the first category is familiar game currency. In the era of stand-alone games, the protagonist accumulates money by knocking down the enemy, entering the gambling house to win money, and using these to buy Herbs and equipment, but it can only be used in his own game console. At that time, there was no "market" between players. Since the establishment of Internet portal and community, the realization of game networking, virtual currency has a "financial market", players can trade game currency
the second type is the special currency issued by the portal website or instant messaging service provider, which is used to purchase the services in the website. The most widely used is Tencent's q-coin, which can be used to purchase membership, QQ show and other value-added services
the third kind of virtual currency on the Internet, such as bitcoin (BTC), Fuyuan coin (FTC), Wright currency (LTC), etc. bitcoin is an electronic currency proced by open-source P2P software. Some people also translate bitcoin as "bitcoin", which is a kind of network virtual currency. Mainly used for Internet financial investment, can also be used as a new currency directly for life
8. Modifying G + + compiler with QT Creator
9. 很多朋友都知道如何在linux平台如何编译比特币程序,但是,到了windows平台,
就会感觉到无从下手. 其实, 比特币程序是跨平台的.
你要编译windows版的比特币程序,基本上有两种方法,一种是在linux平台
(推荐ubuntu 13.10)通过交叉编译的方法来编译.另外一种,就是直接在windows平台编译.
我想,你既然要在windows平台使用,我就详细介绍一下如何在windwows平台编译比特币程序.
我的平台:windows7
第一步:安装变编译环境QT和MINGW,msys
1、msys是一个在windows平台模拟shell的程序
下载安装程序之后,通过安装管理程序,按安装以下内容:
From MinGW installation manager -> All packages -> MSYS
选中以下安装包
msys-base-bin
msys-autoconf-bin
msys-automake-bin
msys-libtool-bin
点 apply changes开始安装他会自动下载安装好
需要注意的是,确保不要安装msys-gcc和msys-w32api ,因为这两个包和我们的编译系统发生冲突
很多人出现一些莫名其妙的问题,就是因为这两个包
2、安装 MinGW-builds
下载并解压缩 i686-4.8.2-release-posix-dwarf-rt_v3-rev3.7z 到C盘根目录 C:\
注意我的目录结构你尽量和我一样
3、设置PATH环境变量,将C:\mingw32\bin;添加到第一个
4、在命令行模式下输入 gc -v 会得到以下内容
c:\gcc -v
Using built-in specs.
COLLECT_GCC=c:\mingw32\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.8.2/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.8.2/configure --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'
Thread model: posix
gcc version 4.8.2 (i686-posix-dwarf-rev3, Built by MinGW-W64 project)
至此,你的开发环境已经搭建好了,很简单吧
第二部分:下载bitcoin引用的外部库
我们把它们全部放在 C:\deps目录下
2.1 安装OpenSSL
进入启动 MinGw shell 比如目录:(C:\MinGW\msys\1.0\msys.bat)运行这个msys.bat,就会启动一个shell环境,提示符是$
输入命令
cd /c/deps/
tar xvfz openssl-1.0.1g.tar.gz
cd openssl-1.0.1g
Configure no-shared no-dso mingw
make
等待几分钟后,就把openssl编译好了
2.2 下载Berkeley DB
我们推荐使用 4.8版本
同样在msys shell环境下输入以下命令
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
等待编译
2.3 安装Boost
msys命令:
cd C:\deps\boost_1_55_0\
bootstrap.bat mingw
b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread toolset=gcc variant=release link=static threading=multi runtime-link=static stage
2.4 安装Miniupnpc
cd C:\deps\miniupnpc
mingw32-make -f Makefile.mingw init upnpc-static
msys shell命令
cd /c/deps/protobuf-2.5.0
configure --disable-shared
make
2.6 qrencode:
命令
cd /c/deps/libpng-1.6.10
configure --disable-shared
make
LIBS="../libpng-1.6.10/.libs/libpng16.a ../../mingw32/i686-w64-mingw32/lib/libz.a" \
png_CFLAGS="-I../libpng-1.6.10" \
png_LIBS="-L../libpng-1.6.10/.libs" \
configure --enable-static --disable-shared --without-tools
make
2.7 安装 Qt 5 库
下载和解压缩
在 windows命令行输入:
set INCLUDE=C:\deps\libpng-1.6.10;C:\deps\openssl-1.0.1g\include
set LIB=C:\deps\libpng-1.6.10\.libs;C:\deps\openssl-1.0.1g
cd C:\Qt\5.2.1
configure.bat -release -opensource -confirm-license -static -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
mingw32-make
set PATH=%PATH%;C:\Qt\5.2.1\bin
cd C:\Qt\qttools-opensource-src-5.2.1
qmake qttools.pro
mingw32-make
3. 下载Bitcoin 0.9.1
在msys shell下输入以下命令行:
cp /c/deps/libpng-1.6.10/.libs/libpng16.a /c/deps/libpng-1.6.10/.libs/libpng.a
cd /c/bitcoin-0.9.1
./autogen.sh
CPPFLAGS="-I/c/deps/boost_1_55_0 \
-I/c/deps/db-4.8.30.NC/build_unix \
-I/c/deps/openssl-1.0.1g/include \
-I/c/deps \
-I/c/deps/protobuf-2.5.0/src \
-I/c/deps/libpng-1.6.10 \
-I/c/deps/qrencode-3.4.3" \
LDFLAGS="-L/c/deps/boost_1_55_0/stage/lib \
-L/c/deps/db-4.8.30.NC/build_unix \
-L/c/deps/openssl-1.0.1g \
-L/c/deps/miniupnpc \
-L/c/deps/protobuf-2.5.0/src/.libs \
-L/c/deps/libpng-1.6.10/.libs \
-L/c/deps/qrencode-3.4.3/.libs" \
./configure \
--disable-upnp-default \
--disable-tests \
--with-qt-incdir=/c/Qt/5.2.1/include \
--with-qt-libdir=/c/Qt/5.2.1/lib \
--with-qt-bindir=/c/Qt/5.2.1/bin \
--with-qt-plugindir=/c/Qt/5.2.1/plugins \
--with-boost-system=mgw48-mt-s-1_55 \
--with-boost-filesystem=mgw48-mt-s-1_55 \
--with-boost-program-options=mgw48-mt-s-1_55 \
--with-boost-thread=mgw48-mt-s-1_55 \
--with-boost-chrono=mgw48-mt-s-1_55 \
--with-protoc-bindir=/c/deps/protobuf-2.5.0/src
make
strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe
这样,你就得到了变异好的 bitcoin-cli.exe和bitcoind.exe ,bitcoin-qt.exewindows QT图形界面的钱包软件
就会感觉到无从下手. 其实, 比特币程序是跨平台的.
你要编译windows版的比特币程序,基本上有两种方法,一种是在linux平台
(推荐ubuntu 13.10)通过交叉编译的方法来编译.另外一种,就是直接在windows平台编译.
我想,你既然要在windows平台使用,我就详细介绍一下如何在windwows平台编译比特币程序.
我的平台:windows7
第一步:安装变编译环境QT和MINGW,msys
1、msys是一个在windows平台模拟shell的程序
下载安装程序之后,通过安装管理程序,按安装以下内容:
From MinGW installation manager -> All packages -> MSYS
选中以下安装包
msys-base-bin
msys-autoconf-bin
msys-automake-bin
msys-libtool-bin
点 apply changes开始安装他会自动下载安装好
需要注意的是,确保不要安装msys-gcc和msys-w32api ,因为这两个包和我们的编译系统发生冲突
很多人出现一些莫名其妙的问题,就是因为这两个包
2、安装 MinGW-builds
下载并解压缩 i686-4.8.2-release-posix-dwarf-rt_v3-rev3.7z 到C盘根目录 C:\
注意我的目录结构你尽量和我一样
3、设置PATH环境变量,将C:\mingw32\bin;添加到第一个
4、在命令行模式下输入 gc -v 会得到以下内容
c:\gcc -v
Using built-in specs.
COLLECT_GCC=c:\mingw32\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.8.2/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.8.2/configure --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'
Thread model: posix
gcc version 4.8.2 (i686-posix-dwarf-rev3, Built by MinGW-W64 project)
至此,你的开发环境已经搭建好了,很简单吧
第二部分:下载bitcoin引用的外部库
我们把它们全部放在 C:\deps目录下
2.1 安装OpenSSL
进入启动 MinGw shell 比如目录:(C:\MinGW\msys\1.0\msys.bat)运行这个msys.bat,就会启动一个shell环境,提示符是$
输入命令
cd /c/deps/
tar xvfz openssl-1.0.1g.tar.gz
cd openssl-1.0.1g
Configure no-shared no-dso mingw
make
等待几分钟后,就把openssl编译好了
2.2 下载Berkeley DB
我们推荐使用 4.8版本
同样在msys shell环境下输入以下命令
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
等待编译
2.3 安装Boost
msys命令:
cd C:\deps\boost_1_55_0\
bootstrap.bat mingw
b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread toolset=gcc variant=release link=static threading=multi runtime-link=static stage
2.4 安装Miniupnpc
cd C:\deps\miniupnpc
mingw32-make -f Makefile.mingw init upnpc-static
msys shell命令
cd /c/deps/protobuf-2.5.0
configure --disable-shared
make
2.6 qrencode:
命令
cd /c/deps/libpng-1.6.10
configure --disable-shared
make
LIBS="../libpng-1.6.10/.libs/libpng16.a ../../mingw32/i686-w64-mingw32/lib/libz.a" \
png_CFLAGS="-I../libpng-1.6.10" \
png_LIBS="-L../libpng-1.6.10/.libs" \
configure --enable-static --disable-shared --without-tools
make
2.7 安装 Qt 5 库
下载和解压缩
在 windows命令行输入:
set INCLUDE=C:\deps\libpng-1.6.10;C:\deps\openssl-1.0.1g\include
set LIB=C:\deps\libpng-1.6.10\.libs;C:\deps\openssl-1.0.1g
cd C:\Qt\5.2.1
configure.bat -release -opensource -confirm-license -static -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
mingw32-make
set PATH=%PATH%;C:\Qt\5.2.1\bin
cd C:\Qt\qttools-opensource-src-5.2.1
qmake qttools.pro
mingw32-make
3. 下载Bitcoin 0.9.1
在msys shell下输入以下命令行:
cp /c/deps/libpng-1.6.10/.libs/libpng16.a /c/deps/libpng-1.6.10/.libs/libpng.a
cd /c/bitcoin-0.9.1
./autogen.sh
CPPFLAGS="-I/c/deps/boost_1_55_0 \
-I/c/deps/db-4.8.30.NC/build_unix \
-I/c/deps/openssl-1.0.1g/include \
-I/c/deps \
-I/c/deps/protobuf-2.5.0/src \
-I/c/deps/libpng-1.6.10 \
-I/c/deps/qrencode-3.4.3" \
LDFLAGS="-L/c/deps/boost_1_55_0/stage/lib \
-L/c/deps/db-4.8.30.NC/build_unix \
-L/c/deps/openssl-1.0.1g \
-L/c/deps/miniupnpc \
-L/c/deps/protobuf-2.5.0/src/.libs \
-L/c/deps/libpng-1.6.10/.libs \
-L/c/deps/qrencode-3.4.3/.libs" \
./configure \
--disable-upnp-default \
--disable-tests \
--with-qt-incdir=/c/Qt/5.2.1/include \
--with-qt-libdir=/c/Qt/5.2.1/lib \
--with-qt-bindir=/c/Qt/5.2.1/bin \
--with-qt-plugindir=/c/Qt/5.2.1/plugins \
--with-boost-system=mgw48-mt-s-1_55 \
--with-boost-filesystem=mgw48-mt-s-1_55 \
--with-boost-program-options=mgw48-mt-s-1_55 \
--with-boost-thread=mgw48-mt-s-1_55 \
--with-boost-chrono=mgw48-mt-s-1_55 \
--with-protoc-bindir=/c/deps/protobuf-2.5.0/src
make
strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe
这样,你就得到了变异好的 bitcoin-cli.exe和bitcoind.exe ,bitcoin-qt.exewindows QT图形界面的钱包软件
Hot content