Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文教程:windows系统qitmeer-miner编译及环境准备指导 #88

Closed
blocklee opened this issue Nov 4, 2019 · 3 comments
Closed
Labels
Course Course

Comments

@blocklee
Copy link

blocklee commented Nov 4, 2019

通用环境要求(附安装链接)

  1. Git 安装
  2. Go 版本 >= 1.12 //可能需要vpn
  3. Rust/Cargo >= 1.38.0

特殊环境要求 for windows

安装 Build Tools for Visual Studio

安装过程中选择【 c++生成工具集】,如下图:

image

build 编译

  1. Get Source code 克隆代码到本地:

git clone git@github.com:Qitmeer/qitmeer-miner.git 或者git clone https://github.com/Qitmeer/qitmeer-miner.git

image

  1. Build the curkoo library 构建 cuckoo 库
$ cd qitmeer-miner  //打开 文件夹 qitmeer-miner
$ cd lib/cuckoo  //打开文件目录 lib/cuckoo
$ cargo build --release  //执行该命令构建 cuckoo 库

image

  1. Build qitmeer-miner 构建qitmeer-miner
$ cd ..\..   //目录回退两层,回到qitmeer-miner文件价目录下
$ go build  //执行go build命令构建qitmeer-miner
  1. Verify Build OK 确认编译是否成功
$ ./qitmeer-miner --version

注:该步骤反馈 无此标志:
image
这个可能是程序中未设定此flag。

Windows附加步骤

在执行第3步前,即 执行go build命令前,需先做下面这一步:

$ copy lib/cuckoo/target/release/cuckoo.dll to C:/Windows

手动复制文件目录:lib/cuckoo/target/release/ 下的文件 cuckoo.dll 到 C盘目录 C:/Windows文件夹中,否则go build不成功,会报如下错误:

image

@blocklee
Copy link
Author

blocklee commented Nov 4, 2019

这个是我按照自己的操作过程转换的中文版windows编译经验

@jamesvan2019 jamesvan2019 added the Course Course label Nov 4, 2019
@dindinw
Copy link
Contributor

dindinw commented Nov 6, 2019

The README page updated to add a linker to the tutorial. the issue will be closed. We will try to improve our documentation site at https://qitmeer.github.io/docs, please feel free to take a look & add your contributions there. Thanks again for your wonderful work! 👍

@dindinw dindinw closed this as completed Nov 6, 2019
@dindinw
Copy link
Contributor

dindinw commented Nov 6, 2019

@blocklee please use the latest code & verify again the version works

$ ./qitmeer-miner --version
Qitmeer Miner Version:0.2.4

@dindinw dindinw reopened this Nov 6, 2019
@dindinw dindinw closed this as completed Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Course Course
Projects
None yet
Development

No branches or pull requests

3 participants