Coder Social home page Coder Social logo

Comments (5)

ArcaneNibble avatar ArcaneNibble commented on August 15, 2024 1

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

from laf.

dacap avatar dacap commented on August 15, 2024 1

Just merged a patch for this issue 👍 thanks @rqou

from laf.

dacap avatar dacap commented on August 15, 2024

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.

from laf.

netthier avatar netthier commented on August 15, 2024

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.

from laf.

tma02 avatar tma02 commented on August 15, 2024

@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.

from laf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.