Closed blacklion closed 6 years ago
After installing SDK 8.1 error changes:
C:\home\lev\xmr-stak\xmr-stak\build>cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF -DWIN_UAC=OFF ..
-- Selecting Windows SDK version to target Windows 10.0.16299.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:1 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:1 (project):
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "C:/home/lev/xmr-stak/xmr-stak/build/CMakeFiles/CMakeOutput.log".
See also "C:/home/lev/xmr-stak/xmr-stak/build/CMakeFiles/CMakeError.log".
I've run VsMSBuildCmd.bat
C:\home\lev\xmr-stak>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"
**********************************************************************
** Visual Studio 2017 MSBuild Command Prompt
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
I know very little about development for Windows :-)
Did you install cmake for windows? It` inside docs https://cmake.org/download/ this is essential as it's compiler
@MilosMosovsky Yes, of course. "CMake Error" is produced by cmake! And cmake is not compiler it is project generator (meta build system).
you chose at install time to set paths for all users? reboot and try? I had to delete .\users\username\source dir before too.
CMake was added to PATH in this cmd window (it runs Ok), and msbuild environment was loaded by bat-file provided by MSVC…
Which version of windows are you building for? You do have to install 10 or 8.1 if you are compiling for one of those platforms. If it's windows 7, you have to use the XP SDK in Visual Studio. Also, when using VsMSBuildCmd.bat there are certain defaults it will select for you.
Try VsMSBuild.bat -help You'll see all the options to help cmake run properly.
When repeat windows build instructions step-by-step I get this error:
Looks like Visual Studio 2017 Community installation doesn't include Windows SDK and SDK should be installed separately.