I am currently trying to migrate a dev environment from an older Intel Mac to one with newer M1 silicon.
After migrating to the new machine, I get the following:
$ lime
Called from C:\HaxeToolkit\haxe\std/neko/_std/Date.hx line 98
Uncaught exception - load.c(237) : Failed to load library : /usr/local/lib/neko/std.ndll (dlopen(/usr/local/lib/neko/std.ndll, 0x0001): tried: ‘/usr/local/lib/neko/std.ndll’ (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))))
Same thing if I try running with Rosetta:
arch -x86_64 lime
Called from C:\HaxeToolkit\haxe\std/neko/_std/Date.hx line 98
Uncaught exception - load.c(237) : Failed to load library : /usr/local/lib/neko/std.ndll (dlopen(/usr/local/lib/neko/std.ndll, 0x0001): tried: ‘/usr/local/lib/neko/std.ndll’ (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))))
Has anyone else had trouble getting lime working on the Mac M1/M2 hardware?
Thanks in advance for any tips!
[EDIT]
I tried installing a fresh haxe/haxelib using Homebrew, then reinstalling all haxe libs, which gets me a bit farther. Lime will run and generate a HelloWorld project, but still fails to build it:
axiom:HelloWorld grazer$ lime test neko
Called from lime/_internal/backend/native/NativeCFFI.hx line 609
Called from lime/system/CFFI.hx line 172
Called from lime/system/CFFI.hx line 306
Uncaught exception - Could not find NekoAPI interface.
Called from ? line 1
Called from CommandLineTools.hx line 1904
Called from CommandLineTools.hx line 22
Called from a C function
Called from CommandLineTools.hx line 125
Called from CommandLineTools.hx line 640
Called from lime/tools/PlatformTarget.hx line 98
Called from MacPlatform.hx line 493
Called from lime/tools/IconHelper.hx line 102
Called from lime/tools/IconHelper.hx line 364
Called from lime/tools/ImageHelper.hx line 118
Called from lime/graphics/Image.hx line 698
Called from lime/graphics/Image.hx line 1628
Called from a C function
Called from /opt/homebrew/lib/haxe/std/neko/Lib.hx line 43
Uncaught exception - load.c(237) : Failed to load library : /usr/local/lib/haxe-arm64/lib/lime/8,0,0//ndll/Mac64/lime.ndll (dlopen(/usr/local/lib/haxe-arm64/lib/lime/8,0,0//ndll/Mac64/lime.ndll, 0x0001): tried: ‘/usr/local/lib/haxe-arm64/lib/lime/8,0,0//ndll/Mac64/lime.ndll’ (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))), ‘/usr/local/lib/haxe-arm64/lib/lime/8,0,0/ndll/Mac64/lime.ndll’ (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))))