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 error on x64-windows #39329

Open
vicksun001 opened this issue Jun 17, 2024 · 1 comment
Open

[opengl] Build error on x64-windows #39329

vicksun001 opened this issue Jun 17, 2024 · 1 comment
Assignees
Labels
category:question This issue is a question

Comments

@vicksun001
Copy link

Package: opengl:x64-windows@2022-12-04#3

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.40.33811.0
  • vcpkg-tool version: 2024-06-10-02590c430e4ed9215d27870138c2e579cc338772
    vcpkg-scripts version: f7423ee 2024-06-14 (3 days ago)

To Reproduce

vcpkg install glew

Failure logs

CMake Error at ports/opengl/portfile.cmake:13 (message):
  Portfile not yet configured for Windows SDK with version:
Call Stack (most recent call first):
  ports/opengl/portfile.cmake:46 (copy_from_windows_sdk)
  scripts/ports.cmake:191 (include)



@LilyWangLL LilyWangLL self-assigned this Jun 17, 2024
@LilyWangLL
Copy link
Contributor

    if (WINDOWS_SDK MATCHES "10.")
        set(LIBGLFILEPATH "$ENV{WindowsSdkDir}Lib/${WINDOWS_SDK}/um/${TRIPLET_SYSTEM_ARCH}/OpenGL32.Lib")
        set(LIBGLUFILEPATH "$ENV{WindowsSdkDir}Lib/${WINDOWS_SDK}/um/${TRIPLET_SYSTEM_ARCH}/GlU32.Lib")
        set(HEADERSPATH "$ENV{WindowsSdkDir}Include/${WINDOWS_SDK}/um")
        set(COPYRIGHT "See https://developer.microsoft.com/windows/downloads/windows-10-sdk for the Windows 10 SDK license.")
    elseif(WINDOWS_SDK MATCHES "8.")
        set(LIBGLFILEPATH "$ENV{WindowsSdkDir}Lib/winv6.3/um/${TRIPLET_SYSTEM_ARCH}/OpenGL32.Lib")
        set(LIBGLUFILEPATH "$ENV{WindowsSdkDir}Lib/winv6.3/um/${TRIPLET_SYSTEM_ARCH}/GlU32.Lib")
        set(HEADERSPATH "$ENV{WindowsSdkDir}Include/um")
        set(COPYRIGHT "See https://developer.microsoft.com/windows/downloads/windows-8-1-sdk for the Windows 8.1 SDK license.")
    else()
        message(FATAL_ERROR "Portfile not yet configured for Windows SDK with version: ${WINDOWS_SDK}")
    endif()

Please confirm your windows SDK.

@LilyWangLL LilyWangLL added the category:question This issue is a question label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants