xmr-stak-nvidia icon indicating copy to clipboard operation
xmr-stak-nvidia copied to clipboard

Can't figure out how to build on windows

Open Techjar opened this issue 7 years ago • 8 comments

I've installed Visual Studio and even the CUDA runtime, and still I'm getting all sorts of dependency errors. Some better documentation on how to build this on Windows would be nice. I've tried using cmake on windows to generate the project and it just gives me this "module machine type 'x64' conflicts with target machine type 'X86'" error I can't figure out. I've set every possible thing to X64. So that avenue is a bust.

Techjar avatar May 30 '17 19:05 Techjar

I created a pull request #23 in the past to provide a visual studio project. You could use it as base to build your miner under windows. I will try to build it under windows with cmake soon and provide a HowTo guide.

psychocrypt avatar May 31 '17 21:05 psychocrypt

Aye, I've tried building this in both CMake and VS2017 and its just "Unspecified error" after "file not found" error. Spent literally the past few hours poking at every little thing I knew how to(which admittedly isn't much). I'm either missing something or something...

SneakyDevil avatar Jun 14 '17 11:06 SneakyDevil

Use VS2015 instead of VS2017 and install the CUDA SDK.

esfomeado avatar Jun 15 '17 08:06 esfomeado

I will provide fixes to compile with cmake soon. Within the next two days I will write a howto compile with windows for the cpu veersion and will than do the same for nvidia.

psychocrypt avatar Jun 15 '17 11:06 psychocrypt

so where is the exe file on the binary download? I have a functioning cpu miner because the exe was in the download

BigslimVdub avatar Jul 14 '17 00:07 BigslimVdub

@Techjar - did you manage to compile it? If you did, would you kindly share? I couldn't get it to work so far. @psychocrypt - any updates on nvidia win howto? Much appreciate it. Thanks

aegie avatar Aug 29 '17 18:08 aegie

I didn't attempt to compile it yet, been busy with other things. Will give it a try when I have time and let you know.

Techjar avatar Aug 29 '17 18:08 Techjar

I've tried to build with VS2017 and CUDA9 with the following cmake command: cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 -DMICROHTTPD_REQUIRED=OFF -DOpenSSL_REQUIRED=OFF .. I have the v140 toolset installed in VS. When I run msbuild xmr-stak-nvidia.sln /p:Configuration=Release I get this error: CustomBuild: Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/Re lease/xmr-stak-nvidiaCuda_generated_cuda_core.cu.obj CMake Error at xmr-stak-nvidiaCuda_generated_cuda_core.cu.obj.Release.cmake:2 22 (message): Error generating C:/projects/xmr-stak-nvidia/build/CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_c ode/Release/xmr-stak-nvidiaCuda_generated_cuda_core.cu.obj

Anyone have any ideas?

lockoncode avatar Oct 02 '17 08:10 lockoncode