Can't build LearnOpenGL projects #10
-
استاذ لما وصل لتعليمة cmake —build . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, There is a similar issue at LearnOpenGL repo, and related questions on SO. I think cmake is not using MSVC compiler (or using an outdated one, so, please uninstall any other version of visual studio other than 2022, especially 2012!). You can make sure cmake is using the VS2022 compiler using cmake gui. First, create a folder on desktop and give it a name (ex. cmake-output), then, from start menu, search for Open it, then specify the paths for Next, press on Click Finish, then Generate, and that's it.. The projects and .sln files should be generated on |
Beta Was this translation helpful? Give feedback.
Hi, There is a similar issue at LearnOpenGL repo, and related questions on SO.
I think cmake is not using MSVC compiler (or using an outdated one, so, please uninstall any other version of visual studio other than 2022, especially 2012!).
You can make sure cmake is using the VS2022 compiler using cmake gui.
First, create a folder on desktop and give it a name (ex. cmake-output), then, from start menu, search for
cmake gui
Open it, then specify the paths for
where is your source code:
andwhere to build the binaries:
, In your case, the source code path isD:/learnopen_Gl/LearnOpenGL/
, and the binaries path should point tocmake-output
folder (that is created in the first step).Next, pres…