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

Build for mac M1? #85

Open
wez opened this issue Jul 21, 2022 · 7 comments
Open

Build for mac M1? #85

wez opened this issue Jul 21, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@wez
Copy link

wez commented Jul 21, 2022

Could you add an arm/m1 build for mac to the release downloads?

I was idly looking at building it for myself just now, but the instructions require python2 and I didn't feel like running through getting that installed!

@Berstanio
Copy link
Contributor

Berstanio commented Aug 8, 2022

Don't they have already a arm64 slice? At least lipo -info is reporting one

@wez
Copy link
Author

wez commented Aug 10, 2022

Not for mac:

19:49 wez@mba ~/Downloads/MetalANGLE.dylib.mac
; lipo -info libGLESv2.dylib
Non-fat file: libGLESv2.dylib is architecture: x86_64
19:50 took 11s wez@mba ~/Downloads/MetalANGLE.dylib.mac
; file libGLESv2.dylib
libGLESv2.dylib: Mach-O 64-bit dynamically linked shared library x86_64

@Berstanio
Copy link
Contributor

Ahh, you are right for the dylib download. Anything speaking against using the framework? This has both slices

@kakashidinho
Copy link
Owner

Yes, MetalANGLE.framework has both libEGL and libGLESv2 APIs in one package and it has both x86 and arm slices. You could use it if you feel like it. The dylibs are built using google's gn script and atm it doesn't support arm architecture yet (upstream repo might already has a update for this).

@kakashidinho kakashidinho added the enhancement New feature or request label Aug 10, 2022
@wez
Copy link
Author

wez commented Aug 10, 2022

My application uses cross-platform GL bindings that want to dynamically load libGL, so I can't use the framework version.

@Berstanio
Copy link
Contributor

The framework in the releases are dynamic librarys too afaik. So couldn't you just dynamically load the the framework? Or extract the dynamic lib from the framework and load that?

@wez
Copy link
Author

wez commented Aug 12, 2022

Ah, I see, I can copy the framework in and rename it to libEGL.dylib and load it that way

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

No branches or pull requests

3 participants