microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.41k stars 6.47k forks source link

[qtbase] build failure #40372

Open JeffreyWardman opened 3 months ago

JeffreyWardman commented 3 months ago

Operating system

macOS 15.0

Compiler

clang

Steps to reproduce the behavior

vcpkg install qtbase

Failure logs

/opt/vcpkg/buildtrees/qtbase/src/here-src-6-92ca6f5b4d.clean/src/plugins/platforms/cocoa/qcocoascreen.mm:601:37: error: 'CGDisplayCreateImageForRect' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead. 601 | QCFType image = CGDisplayCreateImageForRect(displayId, grabRect.toCGRect());

Additional context

No response

ZeppLu commented 3 months ago

Workaround: add compiler flag -macosx-version-min=14.0. Theoretically, any value below 15.0 should be fine

WangWeiLin-MV commented 3 months ago

Using the latest version of vcpkg for local installation does not reproduce the issue.

Please try with latest vcpkg.

If the issue persists, please append the build logs.

bold84 commented 2 months ago

export MACOSX_DEPLOYMENT_TARGET=14.0 export VCPKG_KEEP_ENV_VARS=MACOSX_DEPLOYMENT_TARGET

This also works.