wxWidgets won't build on macOS 15 due to CGDisplayCreateImage being obsolete (Issue #24724)

75 views
Skip to first unread message

stephenbonar

unread,
Jul 23, 2024, 2:41:50 PM7/23/24
to wx-...@googlegroups.com, Subscribed

Build System Used

I build wxWidgets and/or my application using:

  • [ X] CMake
  • configure
  • mingw32-make with makefile.gcc
  • MSBuild (Microsoft Visual Studio solution file)
  • nmake with makefile.vc
  • Xcode

Description

Compiling wxWidgets fails when trying to build dcscreen.cpp with the following error message:

/Users/stephen/git/programs/c++/MidiMessageViewer/wxWidgets/src/osx/carbon/dcscreen.cpp:73:13: error: 'CGDisplayCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
   73 |     image = CGDisplayCreateImage(kCGDirectMainDisplay);

It appears CGDisplayCreateImage will no longer available in the upcoming macOS 15 Sequoia release.

output.txt

Platform and version information

  • wxWidgets version you are building: 3.2.5
  • wxWidgets port you are building: wxOSX
  • OS and its version: macOS 15
  • Compiler being used: clang
  • Non-default compiler options, if any :


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24724@github.com>

VZ

unread,
Jul 23, 2024, 2:57:48 PM7/23/24
to wx-...@googlegroups.com, Subscribed

Thanks for reporting this.

If anybody knows how to use ScreenCaptureKit instead, PRs would be welcome, but otherwise we probably just need to disable this code and document that wxScreenDC doesn't work under macOS (or just about anywhere else AFAIK).


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24724/2246018459@github.com>

VZ

unread,
Oct 15, 2024, 9:11:30 AM10/15/24
to wx-...@googlegroups.com, Subscribed

Closed #24724 as completed via 7e32de0.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/24724/issue_event/14657356803@github.com>

Reply all
Reply to author
Forward
0 new messages