A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Hello @Sid Kraft ,
Thanks for your question.
I have seen your previous issue, and I have recommended you how to install. However, Visual Studio has a built-in version of vcpkg that is very strict. It refuses to install libraries globally and instead demands a "shopping list" file (called a manifest) for every single project.
Therefore, we are going to bypass the strict built-in version by downloading the standalone classic version of vcpkg.
I have tested this on my end and it works. Please try the following steps and let me know the results.
- Download the standalone tool Let's put this in your main C: drive so it's easy to find.
- cd C:\
-
git clone https://github.com/microsoft/vcpkg.git
- Build the tool Now you need to navigate into that new folder and activate it.
- cd vcpkg
-
.\bootstrap-vcpkg.bat
Note: This step might take a minute as it sets itself up.
- Install OpenGL and Link to Visual Studio
Now that you are in the correct folder, you can run our original commands. Make sure to include the
.\at the start of the commands, as this tells your computer to use this specific classic version!
-
.\vcpkg install opengl -
.\vcpkg integrate install
I ran the following code in a new project to test, and it successfully works:
#include <windows.h>
#include <iostream>
#include <GL/gl.h>
int main()
{
std::cout << "If this prints, vcpkg successfully linked OpenGL." << std::endl;
return 0;
}
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.