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

GitHub runner macos-14-arm64 fails: 'EGL/egl.h' file not found #12038

Open
Levi-Lesches opened this issue Jan 21, 2025 · 1 comment
Open

GitHub runner macos-14-arm64 fails: 'EGL/egl.h' file not found #12038

Levi-Lesches opened this issue Jan 21, 2025 · 1 comment

Comments

@Levi-Lesches
Copy link

Here's the error I'm getting:

#import "Headers/flutter_sdl_gamepad-umbrella.h"
        ^
#import "SDL_egl.h"
        ^
/Users/runner/work/Dashboard/Dashboard/macos/Flutter/ephemeral/.symlinks/plugins/flutter_sdl_gamepad/macos/Frameworks/SDL3.framework/Headers/SDL_egl.h:36:10: error: 'EGL/egl.h' file not found
#include <EGL/egl.h>
         ^
<unknown>:0: error: could not build Objective-C module 'flutter_sdl_gamepad

I'm using a custom package called flutter_sdl_gamepad that basically serves to bundle SDL3 as a dynamic library loaded in a Framework for a Flutter build. When testing this package locally, we did not get any error, this is only happening on CI. I'm not really knowledgeable enough about EGL and graphics in general to understand how EGL should be set up in a MacOS arm environment. How can I fix this?

@Levi-Lesches
Copy link
Author

Update from that thread:

I was able to get it to work by reverting this commit, which only copies header files from the A folder into the Current folder of the Framework. The fact that this triggers warnings and an error seems to suggest that XCode just wasn't finding these files before. Please correct me if that's wrong.

This workaround is not a viable solution as Flutter packages cannot contain symlinks, which the original Framework files do.

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

1 participant