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

[opengl] Build faIled #11107

Closed
dongliangcao opened this issue Apr 30, 2020 · 3 comments
Closed

[opengl] Build faIled #11107

dongliangcao opened this issue Apr 30, 2020 · 3 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@dongliangcao
Copy link

Host Environment

  • OS: Windows
  • Compiler: revision

To Reproduce
Steps to reproduce the behavior:
vcpkg install freeimage:x64-windows

Failure logs
CMake Error at ports/opengl/portfile.cmake:20 (message):
Cannot find Windows 10.0.18362.0 SDK. File does not exist: C:\Program
Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x64\OpenGL32.Lib
Call Stack (most recent call first):
scripts/ports.cmake:90 (include)

Error: Building package opengl:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: opengl:x64-windows
Vcpkg version: 2020.02.04-nohash

@dongliangcao dongliangcao added the category:port-bug The issue is with a library, which is something the port should already support label Apr 30, 2020
@heydojo
Copy link
Contributor

heydojo commented May 1, 2020

Cannot find Windows 10.0.18362.0 SDK

Would you mind confirming that you have the latest Windows SDK installed please?
The Windows SDK can be installed via the "individual components" section of the Visual Studio installer.

Here is how to install the dependencies needed to build C++ applications on Windows using the Visual Studio installer.

First, ensure that the machine has a working net connection and save the following as the text file cplusplus.vsconfig anywhere on your system:

{
  "version": "1.0",
  "components": [
    "Microsoft.VisualStudio.Component.CoreEditor",
    "Microsoft.VisualStudio.Workload.CoreEditor",
    "Microsoft.VisualStudio.Component.Roslyn.Compiler",
    "Microsoft.Component.MSBuild",
    "Microsoft.VisualStudio.Component.VC.CoreIde",
    "Microsoft.VisualStudio.Component.Windows10SDK",
    "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
    "Microsoft.VisualStudio.Component.Windows10SDK.18362",
    "Microsoft.VisualStudio.Component.VC.ATL",
    "Microsoft.VisualStudio.Component.VC.ATLMFC"
  ]
}

Next, launch the Visual Studio installer from the start menu, click on More and then Import Configuration. Locate and select the file cplusplus.vsconfig which you created previously and Visual Studio should add the Windows 10 SDK and other C++ libraries you need to develop C++ applications to your system.

Thanks

@PhoebeHui
Copy link
Contributor

@dongliangcao, does this still be a problem for you?

@PhoebeHui PhoebeHui changed the title [<port name>] [opengl] Build faIled May 8, 2020
@PhoebeHui PhoebeHui added requires:repro The issue is not currently repro-able and removed category:port-bug The issue is with a library, which is something the port should already support labels May 8, 2020
@PhoebeHui
Copy link
Contributor

@dongliangcao, if the SDK installed, but it doesn't locate in C:\Program
Files (x86)\Windows Kits, this error also occurs, It shoud be duplicated issue #8288, feel free to reopen if it's different issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

3 participants