使用 Visual Studio 2015 编译 BitShares-Core

本文详细介绍了如何在64位Windows系统上使用Visual Studio 2015 Update 1编译BitShares-Core。首先,安装Visual Studio 2015,接着编译OpenSSL,涉及Perl、NASM的安装和配置。然后编译Boost,下载并使用CMake,最后通过CMake构建BitShares-Core,并在Visual Studio中编译生成可执行文件。
摘要由CSDN通过智能技术生成

0. 环境准备

* 64 位 Windows 系统,比如 Windows Server 2012 R2 Standard edition


1. 安装 Visual Studio 2015 with Update 1

注:
* 用 VS 2015 Update 3 编译会有问题; https://github.com/bitshares/bitshares-core/issues/389
* 本人没试过其他版本


1.1 下载 VS 2015 Update 1

http://download.microsoft.com/download/5/7/A/57A99666-126E-42FA-8E70-862EDBADD215/vs2015.1.com_enu.iso
Visual Studio Community 2015 with Update 1 (x86 and x64) – DVD (English)
SHA1:FB5AE6B57BDC495AFB29646AFCA088756363A263

1.2 使用虚拟光驱软件加载上述 iso 文件

如果没有虚拟光驱软件,可以用 WinCDEmu ,下载地址 http://wincdemu.sysprogs.org/download/

1.3 安装 VS 2015

安装时选 C++


2. 编译 OpenSSL

2.0 参考资料

http://p-nand-q.com/programming/windows/building_openssl_with_visual_studio_2013.html
http://developer.covenanteyes.com/building-openssl-for-visual-studio/
https://www.npcglib.org/~stathis/blog/precompiled-openssl/
http://blog.csdn.net/fireroll/article/details/51242518

注:虽然上面一些链接里提供已经编译好的 OpenSSL 库供下载,但本人在使用过程中碰到过问题,最后还是自己从源码编译解决。


2.1 下载安装 active perl

https://www.activestate.com/activeperl/downloads


2.2 下载安装 NASM

http://www.nasm.us/
http://www.nasm.us/pub/nasm/releasebuilds/2.13.01/win64/nasm-2.13.01-installer-x64.exe

如果不装 NASM &#x

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值