Opened 8 weeks ago

Closed 7 weeks ago

#70756 closed defect (fixed)

wxWidgets-3.0 @3.0.5.1_4: error: 'CGDisplayCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.

Reported by: francescopappalardo Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: sequoia Cc: breiter (Brian Reiter)
Port: wxWidgets-3.0

Description


Attachments (1)

main.log (606.5 KB) - added by francescopappalardo 8 weeks ago.
Building log

Download all attachments as: .zip

Change History (7)

Changed 8 weeks ago by francescopappalardo

Attachment: main.log added

Building log

comment:1 Changed 8 weeks ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sequoia added
Owner: set to mojca
Port: wxWidgets-3.0 added
Status: newassigned
Summary: Failed to build wxWidgets-3.0 in MAC OS SEQUOIAwxWidgets-3.0 @3.0.5.1_4: error: 'CGDisplayCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
Version: 2.10.1

Log says:

:info:build ../src/osx/carbon/dcscreen.cpp:96:17: error: 'CGDisplayCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
:info:build    96 |         image = CGDisplayCreateImage(kCGDirectMainDisplay);
:info:build       |                 ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:383:33: note: 'CGDisplayCreateImage' has been explicitly marked unavailable here
:info:build   383 | CG_EXTERN CGImageRef __nullable CGDisplayCreateImage(CGDirectDisplayID displayID)
:info:build       |                                 ^

comment:2 Changed 8 weeks ago by markemer (Mark Anderson)

I haven't tried this yet, but the solution in QT was to set:

platform darwin 24 {
   macos_deployment_target 14.0
}

I'll try that tonight and put up a PR if it works.

Last edited 7 weeks ago by markemer (Mark Anderson) (previous) (diff)

comment:3 Changed 8 weeks ago by laestudillowong

--->  Fetching archive for wxWidgets-3.0
--->  Attempting to fetch wxWidgets-3.0-3.0.5.1_4.darwin_24.x86_64.tbz2 from https://packages.macports.org/wxWidgets-3.0
--->  Attempting to fetch wxWidgets-3.0-3.0.5.1_4.darwin_24.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/wxWidgets-3.0
--->  Attempting to fetch wxWidgets-3.0-3.0.5.1_4.darwin_24.x86_64.tbz2 from http://bos.us.packages.macports.org/wxWidgets-3.0
--->  Building wxWidgets-3.0
Error: Failed to build wxWidgets-3.0: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_wxWidgets-3.0/wxWidgets-3.0/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Error: Processing of port fityk failed

comment:4 Changed 8 weeks ago by breiter (Brian Reiter)

Cc: breiter added

comment:5 Changed 7 weeks ago by slewsys (Andrew L. Moore)

Try this instead:

if { ${os.platform} eq "darwin" && ${os.major} >= 24 } {
    macosx_deployment_target 14.0
}

comment:6 Changed 7 weeks ago by markemer (Mark Anderson)

Resolution: fixed
Status: assignedclosed

In fb7c2cf9a8a716b76ff62e7be2a2f74e4796fbf3/macports-ports (master):

wxWidgets: fix error on macOS 15 (https://github.com/macports/macports-ports/pull/25825)

  • CGDisplayCreateImage fails on macOS 15 due to removal from macOS 15 SDK

Closes: #70756

Note: See TracTickets for help on using tickets.