|
May 09, 2014, 08:13:03 PM |
|
Hi. I have trouble getting it to work on windows. It's cgmnier 3.7.2 since I want gpu mining. I have compiled it on linux without major problems and it works great. However windows is a different story. I've downloaded mingw32. Got all dependencies. Got past configure. And then there were some compiling errors. It started with wst2cpip.h . It said something that it is incompatible and use winsocks2.h instead or something like that. So I have:
uncommented error preprocessor - because error uncommented struct ip_merq - because error uncommented last lines: freeaddrinfo, getaddrinfo, getnameinfo prototypes - because error
Then it proceeded forward if I remember correctly. Had to paste ip_merq definition I uncommented before into api.c
Then in cgminer.c there was llround issue. It was not defined or something like that. I changed it to: global_hashrate = ((long long)lround(total_rolling)) * 1000000; from orginal: global_hashrate = llround(total_rolling) * 1000000;
And also the "last lines" I uncommented from wst2cpip.h now were needed so I pasted them into cgminer.c
And it compiled at last. But my struggle is not over. Miner crashes 1-2 sec after start. No information. Just windows app crash dialog.
I don't know why. Is it because I changed some things in order to compile it or is it because I built it on 32 bit environment and I want to use it on 64 bit windows? have ati gpu. I installed app sdk 2.9 32 bit. I remember that on linux sdk 2.9 didn't work, I installed 2.7 and it worked. However if I try to install 2.7 32 bit on windows it says that I cannot, since os is 64bit, but 2.9 32bit installed just like that.
|