Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 16 2019 #4

Open
kybr opened this issue Jan 13, 2020 · 2 comments
Open

Visual Studio 16 2019 #4

kybr opened this issue Jan 13, 2020 · 2 comments

Comments

@kybr
Copy link
Member

kybr commented Jan 13, 2020

this is the main compiler for Windows. Note that the CMake generator for VS16 works a little differently than VS15 and earlier. See: "Use -A option to specify architecture."

cmake -G
CMake Error: No generator specified for -G

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".
  Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Visual Studio 9 2008 [arch]  = Generates Visual Studio 2008 project files.
                                 Optional [arch] can be "Win64" or "IA64".

This compiler seems to build allolib fine:

cd allolib
mkdir build
cmake ..
cmake --build .

But, the run script does not work:

 ./run.sh allolib/examples/graphics/2D.cpp
Building for Visual Studio 15 2017
You must install Visual Studio 2017 to use allolib
+ 'C:/Program Files/CMake/bin/cmake.exe' -G 'Visual Studio 15 2017 Win64' -Wno-deprecated -DCMAKE_BUILD_TYPE=Release -DAL_APP_FILE=../../../2D.cpp -DAL_VERBOSE_OUTPUT=OFF /c/Users/ky/allolib_playground
CMake Error at CMakeLists.txt:3 (project):
  Generator

    Visual Studio 15 2017 Win64

I spent some time trying to get it to work, but I failed. I don't understand the cmake system well enough.

@mantaraya36
Copy link
Contributor

mantaraya36 commented Jan 14, 2020 via email

@mantaraya36
Copy link
Contributor

mantaraya36 commented Jan 14, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants