Giter Club home page Giter Club logo

Comments (1)

ardera avatar ardera commented on September 13, 2024 1

I think the flutter SDK isn't yet ready to be used on ARM / AARCH64, so it probably won't work on the Pi 4. Maybe you can get it to work with a lot of hacks, but I don't know how.

To be more precise, this is the exact error:

[...] the snapshot requires
'[...] x64-sysv' but the VM has '[...] arm-eabi hardfp'

The flutter SDK uses dart internally for a lot of it's tools. So when you run flutter build bundle, the flutter script will launch some dart snapshot internally that completes the task of building the asset bundle. Dart snapshots are basically dart code compiled to machine code, so a dart snapshot generated for x86-64 cannot be run on ARM 32bit hardfp, but that's exactly what the flutter script tries to do in your case.

Maybe it's somehow possible to regenerate the snapshots for arm-eabi hardfp, or to avoid using snapshots at all (dart can interpret and JIT-compile too) but I don't know how to do that. You should consider opening an issue at the official flutter repo or maybe someone on the flutter discord can help you. Even then, if you fix this issue, you may run into other incompatibilities.

Also, I really recommend building the asset bundle on a machine more powerful than the Pi 4. The build takes ~10 seconds on my desktop, I'm sure it'll take a lot longer on the Pi 4.

from flutter-pi.

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.