microsoft / ELL

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

ell.sln and other files are not generated #230

Closed gutruaircraft closed 4 years ago

gutruaircraft commented 5 years ago

I am using Windows 7, visual studio 2019, I got an error when I run the command "cmake -G "Visual Studio 15 2019 Win64" -Thost=x64 .." And I got this

CMake Error: Could not create named generator Visual Studio 15 2019 Win64

Generators

Originally posted by @gutruaircraft in https://github.com/microsoft/ELL/issues/216#issuecomment-514050733

lovettchris commented 5 years ago

cmake was changed in this version of VS such that the "Win64" suffix was moved to a separate -A argument, so the command line for VS 2019 is :

cmake -G "Visual Studio 16 2019" -A x64 -Thost=x64
cmake --build . --config Release -- /m:8 /verbosity:minimal

Note: when you get a new version of VS you can always run "cmake -G" to learn about the new generators:

Generators
* Visual Studio 16 2019        = Generates Visual Studio 2019 project files.
                                 Use -A option to specify architecture.
  Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                 Optional [arch] can be "Win64" or "ARM".
gutruaircraft commented 5 years ago

thanks for the response, I again got the error specified below,

E:\guru_clg\bit\vision_lab\embeded\ELL\build>cmake -G "Visual Studio 1 6 2019" -A x64 -Thost=x64 CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become a fatal error in future CMake releases.

CMake Error: The source directory "E:/guru_clg/bit/vision_lab/embeded/ELL/build" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

lovettchris commented 5 years ago

Right, you need to add ".." as well. What we normally do in ELL is create a "build" folder for the build output which means the path to the top level CMakeLists.txt file is ".." so the complete command line is:

cmake -G "Visual Studio 16 2019" -A x64 -Thost=x64 ..
lovettchris commented 5 years ago

The latest ELL release adds support for VS 2019 so you can just type "rebuild.cmd"

lovettchris commented 4 years ago

docs are updated to show support of VS 2019.