Skip to content

Can't build LearnOpenGL projects #10

Closed Answered by MuhammadSulaiman001
DaniaNouro asked this question in Q&A
Discussion options

You must be logged in to vote

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: and where to build the binaries:, In your case, the source code path is D:/learnopen_Gl/LearnOpenGL/, and the binaries path should point to cmake-output folder (that is created in the first step).

Next, pres…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DaniaNouro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants