大螃嗨

好记性不如烂笔头

用户工具

站点工具


ethereum源码编译windowsc_客户端

Building for Windows

系统版本

  • Windows 7
  • Windows 8/8.1
  • Windows 10
  • Windows Server 2012 R2

准备工作

SoftwareNotes
Git for WindowsCommand-line tool for retrieving source from Github.
CMakeCross-platform build file generator.
Visual Studio 2015C++ compiler and dev environment.

安装完毕后就可以进入下面的步骤了

获取源代码

获取源代码,这一步看网速了,一共下载了800M的数据

git clone --recursive https://github.com/ethereum/cpp-ethereum.git
cd cpp-ethereum

一定要加参数recursive 不然编译会有问题

获取依赖项

Execute the CMake script that downloads and unpacks pre-built external libraries needed to build the project:

scripts\install_deps.bat

生成VisualStudio工程

Then execute the following commands, which will generate a Visual Studio solution file using CMake:

mkdir build
cd build
cmake -G "Visual Studio 14 2015 Win64" ..

官方的说法,只支持2015版本的VS,我安装的时候总是报找不到C/C++的编译器。
后来发现VS2015安装的时候,居然默认没有安装VC,安装完就好了。

来一张开始编译的图:

ethereum源码编译windowsc_客户端.txt · 最后更改: 2017/09/26 01:57 由 螃蟹