Closed netthier closed 2 years ago
Hi @netthier, sorry about this. Actually the code to detect the arm64/aarch64 chip is for Apple M1 chip. We are not compiling Aseprite for Linux arm64 so probably it will need some adjustments.
Older versions of Aseprite compiled fine on aarch64. I don't really have the time to check which tag exactly introduced this breakage. Since aarch64 Linux doesn't seem to need any extra workarounds, is restoring this support planned?
EDIT: Checking my messages in your Discord server, it seems I was able to compile the latest beta on September 29th 2021.
@netthier if you just need to get it to build for yourself, you could probably modify platform.h to force arm64, although I'm not sure what the downstream side effects would be.
This happens because only Apple platforms define __arm64__
. Linux gcc defines __aarch64__
instead. I worked around the issue with the following patch
diff -ur aseprite-orig/laf/base/platform.h aseprite/laf/base/platform.h
--- aseprite-orig/laf/base/platform.h 2022-03-18 03:49:25.129299822 -0700
+++ aseprite/laf/base/platform.h 2022-03-18 03:50:19.533186579 -0700
@@ -44,7 +44,7 @@
;
static constexpr Arch arch =
-#if __arm64__
+#if __arm64__ || defined(__aarch64__)
Arch::arm64
#elif defined(__x86_64__) || defined(_WIN64)
Arch::x64
Just merged a patch for this issue :+1: thanks @rqou
When attempting to compile Aseprite, compilation fails due to the following error:
If I were to guess, this is due to my system reporting
aarch64
instead ofarm64
.My OS is Arch Linux ARM running on the Pinebook Pro.