about the nightmare of cross platform development targetting Linux mobile
Downloading Linux x64 Dart SDK from Flutter engine f40e976bedff57e69e1b3d89a7c2a3c617a03dad...
# [...]
Building flutter tool...
Resolving dependencies... (1.8s)
Got dependencies.
Downloading Material fonts... 296ms
Downloading Gradle Wrapper... 18ms
Downloading android-arm-profile/linux-x64 tools... 237ms
Downloading android-arm-release/linux-x64 tools... 213ms
Downloading android-arm64-profile/linux-x64 tools... 247ms
Downloading android-arm64-release/linux-x64 tools... 217ms
Downloading android-x64-profile/linux-x64 tools... 238ms
Downloading android-x64-release/linux-x64 tools... 215ms
Downloading android-x86 tools... 1,807ms
Downloading android-x64 tools... 1,919ms
Downloading android-arm tools... 1,750ms
Downloading android-arm-profile tools... 607ms
Downloading android-arm-release tools... 416ms
Downloading android-arm64 tools... 6.9s
Downloading android-arm64-profile tools... 732ms
Downloading android-arm64-release tools... 482ms
Downloading android-x64-profile tools... 679ms
Downloading android-x64-release tools... 489ms
Downloading android-x86-jit-release tools... 852ms
Downloading Web SDK... 5.4s
Downloading package sky_engine... 116ms
Downloading flutter_patched_sdk tools... 326ms
Downloading flutter_patched_sdk_product tools... 326ms
Downloading linux-x64 tools... 3.9s
Downloading linux-x64-debug/linux-x64-flutter-gtk tools... 1,998ms
Downloading linux-x64-profile/linux-x64-flutter-gtk tools... 845ms
Downloading linux-x64-release/linux-x64-flutter-gtk tools... 713ms
Downloading linux-x64/font-subset tools... 164ms
$ flutter build linux --target-platform linux-arm64 \
--target-sysroot ~/flutter-aarch64-sysroot
> Cross-build from Linux x64 host to Linux arm64 target is
> not currently supported.
docker run --privileged --rm tonistiigi/binfmt --install all
> [...]
docker run -ti --rm --platform linux/arm64 -v "$(pwd):/build" -w /build \
registry.gitlab.com/theonewiththebraid/flutter-dockerimages:3.16.8 \
flutter build linux --target-platform linux-arm64
> [...]
file build/linux/arm64/release/bundle/test_project
> build/linux/arm64/release/bundle/test_project: ELF 64-bit LSB pie executa
ble, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld
-linux-aarch64.so.1, BuildID[sha1]=759d1251987321485b7f93787a32312871e7c618
, for GNU/Linux 3.7.0, not stripped
-> Dev environment on target device way easier
All Rosahaj emojis based on the works of heatherhorns, CC BY-SA.
<- these slides