OpenGL Libraries

Sid Kraft 46 Reputation points
2026-06-29T13:08:20.96+00:00

Trying to add the OpenGL libraries to Visual Studio, using C++. Issued the following commands:

Tools, Command Line, Developer PowerShell, Install OpenGL, received the error: object not found? Any ideas from any body? Sid Kraft

Developer technologies | C++
Developer technologies | C++

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.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Nancy Vo (WICLOUD CORPORATION) 6,595 Reputation points Microsoft External Staff Moderator
    2026-06-30T04:18:22.35+00:00

    Hello @Sid Kraft ,

    Thanks for your question.

    The reason you are getting an object not found error is because the Developer PowerShell doesn't understand the conversational command "Install OpenGL" on its own. PowerShell needs a specific package management tool to do the downloading for you.

    For Visual Studio and C++, the standard, Microsoft-recommended tool for this is called vcpkg.

    Please open your Developer PowerShell again and run these commands one by one, pressing Enter after each:

    1. 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
    1. Build the tool Now you need to navigate into that new folder and activate it.
    • cd vcpkg
    • .\bootstrap-vcpkg.bat
    1. 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

    Note: Git needs to be installed.

    For additional information, please refer to your other thread. I have provided a more detailed explanation there.

    I hope the above information is helpful. If it addressed your concern, please consider using the following guidance to share your feedback

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.