cryptozeny / cpuminer-opt-sugarchain

Optimized Cpuminer for Sugarchain using YespowerSugar (based on Yespower 1.0.0)
https://bitcointalk.org/index.php?topic=5177722.0
Other
72 stars 46 forks source link

dose it support built on Windows with Visual studio? #27

Closed EthanHee closed 4 years ago

decryp2kanon commented 4 years ago

please use this

https://github.com/cryptozeny/cpuminer-opt-sugarchain/releases/tag/v3.8.8.1.7rc1

decryp2kanon commented 4 years ago

dunno about VS. because i do not use windows

EthanHee commented 4 years ago

if so, how do you make the exe binary file?

decryp2kanon commented 4 years ago

cross compile on linux

decryp2kanon commented 4 years ago

https://github.com/cryptozeny/cpuminer-opt-sugarchain/blob/master/winbuild-cross.sh

EthanHee commented 4 years ago

is there a install guide for how to make the exe binary file through the source files?

EthanHee commented 4 years ago

OK , i will try ,thank you

EthanHee commented 4 years ago

this is how i do it :

1、 git clone git@github.com:cryptozeny/cpuminer-opt-sugarchain.git
2、cd cpuminer-opt-sugarchain/
3、./winbuild-cross.sh

then come errors:

/work/miners/cpuminer-opt-sugarchain/depends/curl-7.47.0/include/curl/curlbuild.h:122:23: fatal error: windows.h: 没有那个文件或目录
In file included from /work/miners/cpuminer-opt-sugarchain/depends/curl-7.47.0/include/curl/curl.h:34:0,
                 from util.c:27:
/work/miners/cpuminer-opt-sugarchain/depends/curl-7.47.0/include/curl/curlbuild.h:122:23: fatal error: windows.h: 没有那个文件或目录
In file included from /work/miners/cpuminer-opt-sugarchain/depends/curl-7.47.0/include/curl/curl.h:34:0,
                 from miner.h:45,
                 from sysinfos.c:12:
/work/miners/cpuminer-opt-sugarchain/depends/curl-7.47.0/include/curl/curlbuild.h:122:23: fatal error: windows.h: 没有那个文件或目录

how can i save it?

decryp2kanon commented 4 years ago

which linux do you use?

EthanHee commented 4 years ago

Ubuntu 18.04

decryp2kanon commented 4 years ago
sudo apt-get install -y \
build-essential libssl-dev libcurl4-openssl-dev libjansson-dev libgmp-dev automake zlib1g-dev && \
git clone https://github.com/cryptozeny/cpuminer-opt-sugarchain.git && \
cd cpuminer-opt-sugarchain && \
./build-yespower.sh && \
./cpuminer --cputest
EthanHee commented 4 years ago

@decryp2kanon

sudo apt-get install -y \
build-essential libssl-dev libcurl4-openssl-dev libjansson-dev libgmp-dev automake zlib1g-dev && \
git clone https://github.com/cryptozeny/cpuminer-opt-sugarchain.git && \
cd cpuminer-opt-sugarchain && \
./build-yespower.sh && \
./cpuminer --cputest

I can use those commands to build On ubuntu 18.04,and get the Executable file used on ubuntu correctly.

But My problem is that I can not get the Executable file used on Windows correctly