-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: embedderUsers of the Embedder APIUsers of the Embedder APIengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Description
Generating an AOT image for Target Linux Embedder Engine requires a Host Engine build.
Required tools to generate a target AOT (linux arm/arm64) are missing from Target build, which involves needing to build for Host to get the tools.
out/host_release/dart-sdk/bin/dart
out/host_release/gen/frontend_server.dart.snapshot
This is with master.
Target build config
GN_ARGS = " \
--clang \
--target-os linux \
--linux-cpu ${@gn_target_arch_name(d)} \
--target-sysroot ${STAGING_DIR_TARGET} \
--target-triple ${@gn_clang_triple_prefix(d)} \
--target-toolchain ${S}/buildtools/linux-x64/clang \
--runtime-mode release \
--embedder-for-target \
--enable-fontconfig \
--lto \
--full-dart-sdk \
--disable-desktop-embeddings \
"
I documented steps that built me an AOT ELF image here: jwinarske/meta-flutter#7
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: embedderUsers of the Embedder APIUsers of the Embedder APIengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team