-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Building lime.ndll on Apple Silicon Mac #1640
Comments
For any changes involving submodules, please start with the 8.2.0 branch and submit changes to that branch. The branch includes a build guide that may help debug, but still feel free to ask if not. |
Created a new branch based on 8.2.0 as suggested. The linker error was due to a problem with the libpixman patch, which I have explained in more detail here: openfl/libpixman#1. I've created a new PR with the 8.2.0 based branch, which allows for a successful build of the lime.ndll on arm64 Mac with Expand for detailed installation instructions# install updated hxcpp with arm64 building support
haxelib git hxcpp https://github.com/HaxeFoundation/hxcpp.git
# clone forked version of lime from PR #1642
git clone https://github.com/soccertutor/lime.git --branch fix/m1-build-ndll --recursive
# set lime library path
haxelib dev lime ./lime
# rebuild lime
haxelib run lime rebuild mac -DHXCPP_ARM64 Since the ndll is still loaded from the cd $(haxelib libpath lime)
rm ndll/Mac64/lime.ndll
cp ndll/MacArm64/lime-64.ndll ndll/Mac64/lime.ndll We also ran into this issue: #1750. UPDATE: It looks like Despite having to use these awkward workarounds, |
how whould i build the macos arm64 dll on a x86_64 and i have xcode |
For some reason after installing the lime fork and doing all the steps, I got a segmentation fault
If I put the
|
@ido-pluto The html5 target doesn't use hxcpp or lime.ndll so there is no need to build here with the |
Lime does use the ndll when building, which could explain the error. If so, there's a second solution: the |
👋 Ran into this as well - any closer to this being resolved? |
Use the x86 version of haxe without brew (from the website). This works without any issue |
Ah will give this a go - thanks!
Related: Any chance we could get the x86 version on homebrew? |
I learned a while back that there are now two different versions of Homebrew. One for Intel and one for Apple Silicon, and you can actually install both on the same computer. I needed the Intel version on my M1 Mac to locally build HashLink binaries a while back, and I mentioned what I did to install Intel Hombrew on the Haxe forums. Maybe it'll help you out. https://community.haxe.org/t/compiling-hashlink-on-macos-apple-silicon/3150 |
This seems to be required with Xcode 15, but was not required previously
Now that the PRs have been merged, it is possible to build
Then run:
So I think it's time to close this issue! |
Also, in the develop branch you can now pass the
Same requirements as above (particularly for hxcpp). |
Love to see this completed |
Created this to keep track of the status of native Apple Silicon builds of the lime.ndll.
Todo:
develop
branch is missing this patch, but this is applied inDev-8.2.0
, in f200ecdThis PR includes the following submodule patches, for the Dev-8.2.0 branch:
/opt/homebrew/lib
as an rpath for arm64 mac builds of lime.ndll:lime.ndll
fails to loadlibneko.dylib
with certain homebrew installs of haxe/neko #1750After applying these patches, it is possible to build the ndll and build/run projects as expected.
The text was updated successfully, but these errors were encountered: