Comments (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)
- 🐛 throwing DRM and GBM errors w/ latest kernel HOT 5
- Does webview work?
- screen ratio not respected. HOT 2
- MissingPluginException - method setSourceBytes (audioplayers) HOT 2
- error: static assignment failed: Expressionevaluation to false HOT 2
- No output on Odroid M1S when using Vu5S MIPI-DSI display HOT 14
- error: Couldn't create GBM surface for rendering - Rasberry pi 5 with 7 inch DSI official display HOT 6
- Missing Depens in Readme ? HOT 2
- Different resolution in flutter-pi than that of the OS (DSI panel) HOT 4
- Installing on iMX6ULL HOT 6
- Audioplayers MissingPluginException HOT 1
- Orange Pi Zero 3 configuration HOT 3
- Does flutter-pi work on Orange Pi 3 LTS? HOT 1
- Error installing flutterpi_tool HOT 1
- Member not found: 'windows_arm64' HOT 1
- MissingPluginException No implementation found for method openFile HOT 1
- Mouse Only Moves on Half the Screen with flutter-pi Rotated 90 Degrees
- RK3566 board get black screen with a cursor
- New Snapp CLI Update: Easy Raspberry Pi Setup from scratch, and Custom Device Integration HOT 2
- Flutter-pi and nanodlp image display conflict problem. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-pi.