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

Linux ARM64 Support? #1761

Open
AwesomeCoder412412 opened this issue Feb 18, 2024 · 5 comments
Open

Linux ARM64 Support? #1761

AwesomeCoder412412 opened this issue Feb 18, 2024 · 5 comments

Comments

@AwesomeCoder412412
Copy link

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
Copy link
Contributor

gepatto commented Feb 18, 2024

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
Copy link
Author

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
Copy link
Contributor

gepatto commented Feb 19, 2024

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
Copy link
Author

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
Copy link

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.

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

No branches or pull requests

3 participants