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

installation failed on macOS 15.2 (m1 chip) #128

Open
dong4138 opened this issue Jan 5, 2025 · 1 comment
Open

installation failed on macOS 15.2 (m1 chip) #128

dong4138 opened this issue Jan 5, 2025 · 1 comment

Comments

@dong4138
Copy link

dong4138 commented Jan 5, 2025

hi, I upgraded my MacBook M1 to version 15.2, and the command "cpanm Prima" failed. The log is as follows:

/include/webp -I/opt/homebrew/opt/webp/include -I/opt/homebrew/Cellar/libxpm/3.5.17/include -Wno-compound-token-split-by-macro -fno-common -DPERL_DARWIN -mmacosx-version-min=15.2 -DNO_THREAD_SAFE_QUERYLOCALE -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -Wno-error=implicit-function-declaration -O3 -Wall -DVERSION="1.75" -DXS_VERSION="1.75" "-I/Users/yan4138/perl5/perlbrew/perls/perl-5.40.0/lib/5.40.0/darwin-2level/CORE" unix/cocoa.c -o unix/cocoa.o
unix/cocoa.c:57:16: error: 'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
57 | if (!( cimg = CGWindowListCreateImage(
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h:271:33: note: 'CGWindowListCreateImage' has been explicitly marked unavailable here
271 | CG_EXTERN CGImageRef __nullable CGWindowListCreateImage(CGRect screenBounds,
| ^
1 error generated.
make: *** [unix/cocoa.o] Error 1
-> FAIL Installing Prima failed. See /Users/yan4138/.cpanm/work/1736049342.46499/build.log for details. Retry with --force to force install

@dk
Copy link
Owner

dk commented Jan 5, 2025

Thanks for the report,will take a look later. Meanwhile if you need a dirty workaround just delete unix/cocoa.c and rerun perl Makefile.PL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants