Open utterances-bot opened 2 years ago
Guide is very tough to follow. Please make a script that automatically do all the work or just make a video tutorial. I followed your guide twice but always lost. Also I have only very initial knowledge about docker.
This article is old, so the content may have changed.
Flutter already supports linux-arm64
.
please, @hhk7734, can you show us how to compile from fluter, i installed flutter on a raspberry with "sudo snap install flutter --classic && flutter sdk-path" and then when i try to run the project i get this error:
ERROR: Compilation to SkSL failed.
/home/pi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag: warning: (version, profile) forced to be (460, core), while in source code it is (320, es)
/home/pi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:9: error: '#include' : Included file not found. for header name: flutter/runtime_effect.glsl
/home/pi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: 'FlutterFragCoord' : no matching overloaded function found
/home/pi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: '=' : cannot convert from ' const float' to ' temp 2-component vector of float'
ERROR: Target release_bundle_linux-arm64_assets failed: ShaderCompilerException: Shader compilation of "/home/pi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag" to "/home/pi/my_app/build/flutter_assets/shaders/ink_sparkle.frag" failed with exit code 1.
/home/pi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag: warning: (version, profile) forced to be (460, core), while in source code it is (320, es)
/home/pi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:9: error: '#include' : Included file not found. for header name: flutter/runtime_effect.glsl
/home/pi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: 'FlutterFragCoord' : no matching overloaded function found
/home/pi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: '=' : cannot convert from ' const float' to ' temp 2-component vector of float'
For more detail, you can see it on: https://stackoverflow.com/questions/74892008/how-to-build-flutter-app-on-raspberry-pi-4
Thanks very much
Build Flutter engine for linux-arm/arm64 | loliot
Build Flutter engine for linux-arm/arm64
https://wiki.loliot.net/docs/lang/flutter/engine/flutter-engine-for-linux-arm64/