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

missing compile instruction for windows

Open RafalSladek opened this issue 8 years ago • 11 comments

hi @fireice-uk great work. I could compile the cpu version of your miner but if I do the same steps with amd version then I get error like this

windows pro 10 x64, I have Sapphire RX480 OC 8GB with Crimson 16.9.2

C:\src\xmr-stak-amd\build>cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..
CMake Error at C:/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  C:/CMake/share/cmake-3.9/Modules/FindOpenCL.cmake:132 (find_package_handle_standard_args)
  CMakeLists.txt:46 (find_package)


-- Configuring incomplete, errors occurred!

please help best regards

RafalSladek avatar Aug 03 '17 19:08 RafalSladek

Currenlty I have not rewritten the cmake for the amd version to be fully runable under windows. It is one of many tasks on my todo list, please use the precompiled binaries. I will inform you here as soon as I tested and fixed the cmake for windows.

psychocrypt avatar Aug 03 '17 19:08 psychocrypt

Will intel support be in the next precompiled binary for Windows? Thanks.

snazzybunny avatar Aug 21 '17 07:08 snazzybunny

This compiles fine under VS 2017 x64 for me. Looks like you're just missing the OpenCL SDK?

Peep avatar Aug 23 '17 12:08 Peep

I tried to compile as described in WINCOMPILE.md, but after running msbuild xmr-stak-amd.sln /p:Configuration=Release it shows me following errors:

"C:\xmr-stak-amd\build\xmr-stak-amd.sln" (default target) (1) ->
"C:\xmr-stak-amd\build\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj.metaproj" (default target) (4) ->
"C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj" (default target) (7) ->
(Link target) ->
  jpsock.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  jpsock.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  socket.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  socket.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  socket.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  socket.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  socket.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  socket.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  socket.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  socket.obj : error LNK2019:  [C:\xmr-stak-amd\build\xmr-stak-amd.vcxproj]
  C:\xmr-stak-amd\build\bin\Release\xmr-stak-amd.exe : fatal error LNK1120:  [C:\xmr-stak-am d\build\xmr-stak-amd.vcxproj]

    34 Warning(s)
    11 Error(s)

Any suggestion? Thank you!

kerberos464 avatar Sep 03 '17 19:09 kerberos464

Same Problem as @Kerberos46 , did all the commands in the comments before

pereirarfc avatar Oct 16 '17 00:10 pereirarfc

Somehow cmake/VS (I'm not a VS expert at all) forgot to add ws2_32.lib to linker. I've modified CMakeCache.txt after running cmake, adde ws2_32.lib to linker (2 places), rerun cmake and than build (other option is to use graphical cmake and make the mods in the 'Advanced' section). Worked for me.

V1pr avatar Oct 16 '17 18:10 V1pr

Any status updates on this issue?

tyaansana avatar Oct 24 '17 04:10 tyaansana

Is implemented in the next release.

psychocrypt avatar Oct 24 '17 05:10 psychocrypt

When is the next release?

We'd really appreciate it if better compiling instructions could be completed. Is it not clear at all what software or versions are needed. It's just trial and error right now.

ra-dave avatar Nov 02 '17 03:11 ra-dave

In around one week.We are working hard to get everything aus smooth as possible.

psychocrypt avatar Nov 02 '17 06:11 psychocrypt

Any update ?

rafise avatar Jan 07 '18 21:01 rafise