-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
Can not compile using lime on Apple Silicon - possibly wrong arch for neko installed? #10937
Comments
The problem is that it is mistaking the architecture for x86_64, so it is trying to load from the Mac64 directory which causes the error. Haxe generates the neko code which determines the architecture and from there decides what path the ndll should be loaded from. This can be found here: haxe/src/generators/genneko.ml Line 708 in 29a318d
So it makes use of the As you can see, the value returned depends on the define NEKO_64BITS, which is defined here: So what we need is another function in neko that checks for arm64 architectures, and if it returns true, load from MacArm64 instead of Mac64 (assuming this is the correct directory). Lime.ndll (or any other ndll) also has to be generated in the correct directory for the correct architecture. This depends on whether hxcpp has the required support for arm64, which may already be the case. This can be tested by compiling lime.ndll from source on an M1 system and confirming whether a |
With some hacky workarounds it is now possible to build lime projects on Apple Silicon. See openfl/lime#1640 for more information. |
Hi @tobil4sk, thank you a lot for having looked into this! |
Yes, it requires installing lime from the forked version or waiting for the changes to be merged. I've updated my last comment in the openfl/lime#1640 thread with more detailed instructions about how to install. |
@tobil4sk This is now part of 4.3 which has been released, no? Sorry the bother... |
The Haxe/Neko side of this has been handled in 4.3.0, but Lime will still need some modifications to properly support building/running projects Apple Silicon. So the rest of this is being tracked in openfl/lime#1640. |
Hello there, I am on an M2 machine and Ventura 13.1, and I am trying to compile a haxeflixel game. I have to say I have setup haxeflixel with no problems on a previous M1 machine with I think Monterey, but it is not working here.
What I do is essentially:
And then
as suggested in the page https://haxeflixel.com/documentation/install-haxeflixel/ . I expose lime in the meantime to /usr/local/bin (in the way
lime setup
suggests), but what I get from eg.lime test html5
is:Do you have any idea why this might be happening?
The text was updated successfully, but these errors were encountered: