Bitcoin Forum
December 16, 2017, 02:25:51 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Can't compile cgminer for windows  (Read 274 times)
Helium-3
Newbie
*
Offline Offline

Activity: 1


View Profile
May 09, 2014, 08:13:03 PM
 #1

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.



Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!