Cmake with JUCE 7 on MacOS 15 - can't build juceaide

Hi, wonder if anyone has a solution to this.

Trying to create a new CMake project with JUCE 7 on MacOS 15.

When I run:

cmake -B cmake-build-install -DCMAKE_INSTALL_PREFIX=/Users/lee/dev/JUCE

I get an error:

error: 'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0 -
  Please use ScreenCaptureKit instead.

This is called from when trying to build juceaide.

Image createNSWindowSnapshot (NSWindow* nsWindow)

Does anyone know if there is an easy solution to this without having to move to JUCE 8?

Thanks

The solutions are:

  • use an older version of macOS
  • use Projucer instead of CMake
  • comment out the functions with the issue in the JUCE code
  • update to JUCE 8
1 Like

Thx for the reply. Never actually thought of just commenting out the code - will give that a go!

worked. thx!

If it’s just that you don’t want to move your whole codebase to JUCE 8, but you have a JUCE 8 licence, you could probably cherry pick the fix.

1 Like