xmr-stak-nvidia
xmr-stak-nvidia copied to clipboard
Can't figure out how to build on windows
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.
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.
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...
Use VS2015 instead of VS2017 and install the CUDA SDK.
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.
so where is the exe file on the binary download? I have a functioning cpu miner because the exe was in the download
@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
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.
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?