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

macOS: IOKit not linked when Cocoa Video backend is used #11628

Open
Jan200101 opened this issue Dec 10, 2024 · 1 comment
Open

macOS: IOKit not linked when Cocoa Video backend is used #11628

Jan200101 opened this issue Dec 10, 2024 · 1 comment
Assignees
Milestone

Comments

@Jan200101
Copy link
Contributor

the cocoa video backend makes use of functions like IOPMAssertionRelease which, according to apples documentation, is provided by IOKit

If SDL_FRAMEWORK_IOKIT is never set (by disabling SDL_JOYSTICK, SDL_HAPIC and SDL_POWER) it will never be used during linking and the cocoa backend fails to link.

I'm not 100% sure if this is correct and only deducted this from CI output, I believe the right fix would be simple to set SDL_FRAMEWORK_IOKIT to 1 in the CheckCOCOA macro

@slouken slouken added this to the 3.x milestone Dec 10, 2024
@icculus
Copy link
Collaborator

icculus commented Dec 10, 2024

(There's never a reason to not link to IOKit on macOS, so maybe it's safer to just always link to it regardless of backends enabled...?)

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

4 participants