编译bitcoin

简介:
  1. download bitcoin
    git clone https://github.com/bitcoin/bitcoin.git

    2. run autogen.sh
    ./autogen.sh 

    3. run configure
    write a shell script 'my-conf.sh' to run 'configure' script:
    MY_CURPATH=`pwd`
    MY_LOCAL=${MY_CURPATH}/mylocal
    PREFIX=${MY_LOCAL}

    echo$MY_CURPATH
    echo$MY_LOCAL

    ./configure --prefix=${PREFIX} \
      --enable-debug \
      --enable-werror \
      --with-gui \
      --with-incompatible-bdb

    Some errors took place in the configure process:
    1). configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)
       resolve method: add "--with-incompatible-bdb".

    2). configure: error: Qt dependencies not found
       resolve method: sudo apt-get install libqt4-dev

    3). checking for protoc... no
       configure: error: PROTOC not found
       resolve method: sudo apt-get install protobuf-compiler

    4) C++ source seen but 'CXX' is undefined
    sudo apt-get install libtool


    5). continue to run 'my-conf.sh'. The result:
    Options used to compile and link:
      with wallet   = yes
      with gui / qt = yes
        qt version  = 4
        with qr     = auto
      with zmq      = no
      with test     = yes
      with bench    = yes
      with upnp     = yes
      debug enabled = yes
      werror        = yes

      target os     = linux
      build os      = 

      CC            = /usr/bin/ccache gcc
      CFLAGS        = -g -O2 -g3 -O0
      CPPFLAGS      =  -DDEBUG -DDEBUG_LOCKORDER -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS
      CXX           = /usr/bin/ccache g++ -std=c++11
      CXXFLAGS      = -g -O2 -g3 -O0 -Wall -Wextra -Wformat -Wvla -Wformat-security -Wno-unused-parameter
      LDFLAGS       = 
      ARFLAGS       = cr

    4. make
    5. make instal



      本文转自FrankNie0101 51CTO博客,原文链接:http://blog.51cto.com/frankniefaquan/1953694,如需转载请自行联系原作者





相关文章
|
监控 安全 前端开发
Onvif开发笔记(二): 使用gSOAP编译Onvif协议之编译Onvif代码框架
Onvif开发笔记(二): 使用gSOAP编译Onvif协议之编译Onvif代码框架
Onvif开发笔记(二): 使用gSOAP编译Onvif协议之编译Onvif代码框架
|
开发工具 iOS开发 Perl
iOS开发 - undefined symbols for architecture x86_64,大多数都是缺少静态库,缺少静态库分下面几种
iOS开发 - undefined symbols for architecture x86_64,大多数都是缺少静态库,缺少静态库分下面几种
153 0
iOS开发 - undefined symbols for architecture x86_64,大多数都是缺少静态库,缺少静态库分下面几种
|
XML JSON 监控
Onvif开发笔记(一):使用gSOAP编译Onvif协议之gSOAP介绍与编译
Onvif开发笔记(一):使用gSOAP编译Onvif协议之gSOAP介绍与编译
Onvif开发笔记(一):使用gSOAP编译Onvif协议之gSOAP介绍与编译
|
编译器 开发工具
音视频开发: VS2017编译器编译libVLC错误解决
音视频开发: VS2017编译器编译libVLC错误解决
246 0
音视频开发: VS2017编译器编译libVLC错误解决
Omni/USDT PHP开发包OmniTool简介
OmniTool开发包适用于为PHP应用快速增加对Omni Layer/USDT数字资产的支持能力,即支持使用自有Omni Layer节点的应用场景,也支持基于第三方API服务和离线裸交易的轻量级部署场景。
2230 0
|
Android开发
Android源代码下载与编译 - 2019
Android源代码的下载和编译 2019版
8700 0
|
Go 开发工具
Bytom合约预编译
比原项目仓库: Github地址:https://github.com/Bytom/bytom Gitee地址:https://gitee.com/BytomBlockchain/bytom 在开发合约的过程中你们有没有遇到一些问题呢?比如编译合约的过程中不能实时动态的去检查我们所编译的合约文件是否正确,那么我今天就教大家一种很方便的方法。
1140 0
|
存储 区块链
Derek解读Bytom源码-创世区块
作者:Derek 简介 Github地址:https://github.com/Bytom/bytom Gitee地址:https://gitee.com/BytomBlockchain/bytom 本章介绍Derek解读-Bytom源码分析-创世区块 作者使用MacOS操作系统,其他平台也大同小异 Golang Version: 1.8 创世区块介绍 区块链里的第一个区块创被称为创世区块。
1482 0
|
程序员 PHP 区块链
无法部署truffle migrate编译的智能合约。Error: No network specified.
不能部署migrate通过Tunffle编译的以太坊智能合约。我是这么做的: truffle init truffle compile open other terminal and run testrpc truff...
2033 0