bfgminer icon indicating copy to clipboard operation
bfgminer copied to clipboard

Best way to create bfgminer.exe on Windows 10 64-bit?

Open fogoat opened this issue 6 years ago • 7 comments

Hi, what is the best way to create bfgminer.exe on Windows 10? I didn't have instructions for cross compiling on Windows Subsystem for Linux (WSL), so I was unable to create an EXE (although Linux binary was easy). The minGW instructions are four years old. Are they still reliable? The dependency versions have changed, so using the latest versions of dependencies are causing random errors. Should we stick to four year old instructions and try to find the correct version of the dependencies?

Or are there cross compile instructions for WSL that will create a proper Windows .EXE? Or newer minGW instructions under Windows... Or perhaps Visual Studio 2013/2015?

Thoughts?

fogoat avatar Feb 28 '18 00:02 fogoat

I can post updates in the morning. To fresh download links that have compiled with mingw.. however even with successful installation of the dependencies. I get a lot if undefined variables on compilation. I think its possible im about 90% there..

monkins1010 avatar Feb 28 '18 00:02 monkins1010

https://paste.ee/p/gANmW#X7LFRBSt4OMN3QzKxDDcnIkAcvegnhtD might be helpful.

Care to turn it into proper documentation? :)

luke-jr avatar Feb 28 '18 02:02 luke-jr

I get stuck whenever I indicate --host is going to be Windows on Ubuntu 16.0.4 (Windows Subsystem Linux) and I get an error about uthash-dev, although I have it installed already. I think you mentioned in another thread that it may be a path issue (EXPORT?). If I don't use --host, then it compiles fine but again it is for Ubuntu 16, not Windows 10.

May I ask how you compile bfgminer for Windows? How do we replicate the compiling environment so we can successfully build your miner?

Whenever I try to run the default 5.5.0 Windows binary, it just exits out without any details. I've used jstefanop's 5.4.2 and I'm able to mine with that.

fogoat avatar Feb 28 '18 20:02 fogoat

The make-release script in the repository is what I use. The toolchain comes from Gentoo's crossdev tool.

luke-jr avatar Feb 28 '18 21:02 luke-jr

I will update the windows build doc... got it compiling in 32bit.. mingw.. only tried opencl tho.. but i think everything else works. . Annoying interface bug needs addressing.

monkins1010 avatar Mar 11 '18 23:03 monkins1010

How can i compile the source files and turn into a .exe? Please help...

flyboynyc avatar Dec 13 '20 05:12 flyboynyc

How can i compile the source files and turn into a .exe? Please help...

download visual studio 2015 . download open openssl and put it in c:\openssl.

open the ccminer.sln in visual studio. change the top dropdowns in vs to x64 and release. press build. you will get errors. you need to include the c:\openssl\include in your includes and the appropriate libs that are in c:\openssl\libs.

Thats the general summary of what you need to do.

monkins1010 avatar Dec 13 '20 08:12 monkins1010