KlausT / ccminer

Software for mining various cryptocoins
GNU General Public License v3.0
403 stars 312 forks source link

Compiling issue #262

Closed globaltoken closed 5 years ago

globaltoken commented 6 years ago

Hello @KlausT,

How can I compile this in Visual Studio? It does not work for me.

KlausT commented 6 years ago

What version of visual studio do you have?

globaltoken commented 6 years ago

My Version is 15.8.7. Oh and I am using VS Community editon 2017

Well, I want to add new algos, could you compile them if it does not work for my VS?

KlausT commented 6 years ago

Do you want to use CUDA 9.2 ? 15.8 is not compatible with CUDA 9.2, that compiler version is too new. With CUDA 10 it should work, I think. What happens?

globaltoken commented 6 years ago

Let me try with CUDA 10!

globaltoken commented 6 years ago

Seems working. How can I cross compile with Visual Studio for Linux?

KlausT commented 6 years ago

If you want binaries for Linux then you have to compile it under Linux. https://github.com/KlausT/ccminer/wiki/How-to-create-binaries-under-Ubuntu-Linux

globaltoken commented 6 years ago

Thanks. Where do I find the binaries? Compiling succeeded

KlausT commented 6 years ago

Under Windows it's in Releases/x64 Under linux there should be a file "ccminer" in same directory than build.sh

globaltoken commented 6 years ago

Thank you! How can I build distributable binaries, cross compiling? buld.sh is just for local system requirements or?

KlausT commented 6 years ago

I don't have much experience with Linux. With static linking it should work, but I don't know how to do that under Linux

globaltoken commented 6 years ago

Alright. Can I distribute the binaries by my own with this License? Wanna add 6 more algos in my fork

KlausT commented 6 years ago

Sure, as long as the users could get the source code if they want. That's the way the GPL works.