microsoft / ELL

Embedded Learning Library
https://microsoft.github.io/ELL
Other
2.29k stars 294 forks source link

cmake error while deploying on windows 10 #190

Closed bytesByHarsh closed 5 years ago

bytesByHarsh commented 5 years ago

While following the steps in tutorial at page

The last Step till which no error were shown gave the following result, as mention in the tutorials

compiling model...
generating python interfaces for model in host
running opt ...
running llc ...
success, now you can build the 'host' folder

the next step

> cmake -G "Visual Studio 14 2015 Win64" .. && cmake --build . --config release && cd ..\..

Gave the following result:

-- Selecting Windows SDK version  to target Windows 10.0.17134.
CMake Error at CMakeLists.txt:34 (project):
  Failed to run MSBuild command:

    MSBuild.exe

  to get the value of VCTargetsPath:

    The system cannot find the file specified

-- Configuring incomplete, errors occurred!
See also "<Dir_loc>/host/build/CMakeFiles/CMakeOutput.log".
lovettchris commented 5 years ago

I wonder if your Visual Studio installation is missing the C++ feature? This is what I have installed:

image

bytesByHarsh commented 5 years ago

I had already install C++ features as shown in the your screenshot @lovettchris , still I am getting this error

clovett commented 5 years ago

Ah, for VS 2017 the cmake command line is different:

cmake -G "Visual Studio 15 2017 Win64"
bytesByHarsh commented 5 years ago

I am using VS 2017 but again error is showing if I run

cmake -G "Visual Studio 15 2017 Win64"

Error:

CMake Error: Error: generator : Visual Studio 15 2017 Win64 Does not match the generator used previously: Visual Studio 14 2015 Win64 Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

clovett commented 5 years ago

Ah, whenever you see a message like that simply delete the "build" folder and start over.

bytesByHarsh commented 5 years ago

Yup..it worked, thank you