openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
749 stars 359 forks source link

Linux ARM64 Support? #1761

Open AwesomeCoder412412 opened 4 months ago

AwesomeCoder412412 commented 4 months ago

Right now I'm trying to compile a Haxe program on my 16k page size ARM64 linux machine. Unless I'm missing something, it looks like lime might support ARM64 on Mac, but not linux? I say this as while everything else grudgingly compiled, my lime.ntdll seems to stubbornly be built for x86_64 linux and doesn't seem to be able to be coaxed into producing a ARM64 Linux lime.ntdll. If it's possible, how do I build/where can I find a ARM64 Linux lime.ntdll?

Apologies if I'm really misunderstanding something, I'm a bit new to working with lime.

gepatto commented 4 months ago

I have been trying to get lime working on a 64bit Raspberry Pi (arm64 running bullseye 64bit) in a fork of 8.2.0-Dev Although I'm able to compile the 64bit lime.ndll, binaries made with it will randomly crash. I'm suspecting it's unaligned-access related.

I haven't seen any other ARM64 Linux version out there yet.

AwesomeCoder412412 commented 4 months ago

I have been trying to get lime working on a 64bit Raspberry Pi (arm64 running bullseye 64bit) in a fork of 8.2.0-Dev

Although I'm able to compile the 64bit lime.ndll, binaries made with it will randomly crash.

I'm suspecting it's unaligned-access related.

I haven't seen any other ARM64 Linux version out there yet.

It's good to hear I'm not the only one. I know you said it crashes randomly, but could please you tell me how you compiled the 64 bit Linux ARM lime.ndll, or provide a download link to it? At this point I'm just curious if my program is even able to launch.

gepatto commented 4 months ago

You can check out my fork of lime (branch 8.2.0-Dev). Some of the changes are in https://github.com/gepatto/lime/blob/8.2.0-Dev/tools/platforms/LinuxPlatform.hx There is no binary there.

I'm not posting a link here in the issue tracker. But if you can contact me on Discord (openfl or haxe) I can share a link to my 64bit ndll. But that does contain some raspberry pi specific (sdl) stuff so I don't think it's going to work.

AwesomeCoder412412 commented 4 months ago

You can check out my fork of lime (branch 8.2.0-Dev).

Some of the changes are in

https://github.com/gepatto/lime/blob/8.2.0-Dev/tools/platforms/LinuxPlatform.hx

There is no binary there.

I'm not posting a link here in the issue tracker.

But if you can contact me on Discord (openfl or haxe) I can share a link to my 64bit ndll.

But that does contain some raspberry pi specific (sdl) stuff so I don't think it's going to work.

Thank you so much! I'll reach out to you in a bit.

LilyRoss19 commented 4 months ago

In that way I did build for AArch64 aswell but didn't work due I not have Raspberry Pi that didn't work. (I use chrooting in termux)

so I used x86_64-linux-gnu-gcc with box64 and that worked very well and like normal linux does.