Enable flutter engine artifacts for Windows on Arm

This issue has been created since 2022-11-24.

Use case

To support targeting Windows on Arm platform (#62597), we need first to enable artifacts for flutter engine on this platform.

Proposal

Engine can be cross-compiled from a x64 machine by using:

python3 ./flutter/tools/gn --no-goma --windows-cpu arm64
ninja -C out/host_debug_arm64

I'll create a patch for recipe file.
Thanks @loic-sharma for proposing to help upstream this patch.

pbo-linaro wrote this answer on 2022-12-01

@loic-sharma Tried to create a gerrit change for that, but it confirms I don't have access.

The commit to upstream is here, based on what was done for darwin-arm64.

loic-sharma wrote this answer on 2022-12-06

Hello, thanks for the patch! I apologize for the delay, I was off last week.

I kicked off a test run of your changes, that failed on the Zip windows-arm64 windows-arm64-embedder.zip step:

IOError: [Errno 2] No such file or directory: u'C:\b\s\w\ir\cache\builder\src\out/host_debug_arm64/flutter_embedder.h'

Please let me know when you're ready for me to run another test!

pbo-linaro wrote this answer on 2022-12-06

Thanks @loic-sharma . No problem, you said you were out :)

I pushed two other commits here, to fix the issue you mentioned (regarding font), and removed the embedder package for now (not sure what it is used for).

Feel free to squash commits to have a single patch. For now, I just try to keep commits splitted to track history of this patch.

loic-sharma wrote this answer on 2022-12-06

Here's the latest result: https://ci.chromium.org/raw/build/logs.chromium.org/flutter/led/loicsharma_google.com/c0e4ff1860fc1c4916a177502cc4cfb0fad1d20aa848aac5b68add72334199f0/+/build.proto?server=chromium-swarm.appspot.com

( 321 ms )C:\b\s\w\ir\cache\builder\src\out\host_release_arm64\zip_archives\windows-arm64\font-subset.zip not found
( 319 ms )Files in parent directory of safe_upload request
[WinError 3] The system cannot find the path specified: 'C:\b\s\w\ir\cache\builder\src\out\host_release_arm64\zip_archives\windows-arm64'

pbo-linaro wrote this answer on 2022-12-07

I removed the font subset as it does not seem to be built when building for windows-arm64. Still here.

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2022-12-10
Star Count 147243
Watcher Count 3561
Fork Count 23950
Issue Count 11325

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Library don't works inside docker container 0 2022-02-01 2022-10-10
How to solve this kernel issue: "XSRF cookie does not match POST argument" ? 3 2022-02-11 2022-08-27
OSX (Mojave): Gui widgets do not appear on window 3 2021-02-02 2022-10-25
PRs closed without any info? 6 2022-06-19 2022-11-12
Webcam not appearing with 1.18.x 10 2021-05-12 2022-11-10
Missing return value. 2 2021-07-21 2022-07-06
[Feature request] Load scripts inside profile.d recursively 4 2022-11-07 2022-11-13
[Icebox] Variant with a suitable alternative to "Do Not Use" blocks 1 2021-09-26 2022-07-15
Breaks on hard tab indents in rST 1 2022-01-15 2022-10-08
🐛 BUG: The PWA does not display main content sometimes 18 2021-06-05 2022-09-09
Child process exited with code 127 2 2022-06-23 2022-12-01
I recommend that,it can use websocket to exchange cadidate signal,or can give command to contact the server,then use can use java webscoket to contact with the server 2 2021-04-23 2022-08-05
Browser extension 11 2021-06-26 2022-01-17
Inconsistent 'TResult' type parameter constraints 9 2021-06-17 2022-09-27
Newline character in string breaks translation 3 2021-09-30 2022-11-18
Can *some* assets be proprietary but the entry qualify as open-source? 9 2021-06-26 2022-12-07
String-based route types do not save 15 2022-09-12 2022-10-05
Remove LibreSwan & L2TP/IPSec Service 15 2018-03-21 2022-12-05
Command to create new tab with specified name 2 2021-09-20 2022-11-12
Docs site down? 3 2021-07-12 2021-11-10
[BUG]: Failure to compile qt build in linux 6 2022-05-29 2022-11-18
Some mouse cross-species consensus nodes are not showing up 3 2021-10-06 2022-10-04
Pagination for HitsController not working sometimes in iOS 3 2022-09-01 2022-12-02
Italian translation 0 2021-02-19 2022-01-04
BUG: Conda installation not working 8 2021-09-30 2022-12-03
[Discussion] Who is using RestClient in production? 2 2020-06-29 2022-11-13
Age of Chivalry (17510) 1 2022-02-19 2022-10-12
can limit the number of upload images? 0 2020-06-23 2022-09-06
Robot/Genius-Tech-1998s 1 2022-03-17 2022-03-13
Error: check out my portfolio website is created with just markdown without any css 1 2021-09-09 2022-11-11
Updating instance of a buffer does not persist Blob 3 2021-12-21 2022-10-02
Redisotel should allow an option to not set the raw cmd as an attribute on spans 0 2022-08-26 2022-11-19
Clarification on Visible Controls (AA) - (Visible vs Perceivable) 4 2022-04-14 2022-12-01
[Build] Failed to build Avalonia when LangVersion is 11 1 2022-10-14 2022-10-29
new mirror adding request 1 2022-06-11 2022-11-20
TypeError: Cannot read properties of undefined (reading 'toLocaleLowerCase') on @azure/static-web-apps-cli/dist/core/deploy-client.js:149 4 2022-05-02 2022-12-09
Using pabot? 4 2019-03-04 2022-01-11
taro框架中使用时,图形画出来尺寸不对,设置pixelRatio也无效 1 2022-09-14 2022-12-02
(duplicate issue) 1 2021-11-06 2022-01-16
electron-store needs to update for Typescript 4.7 0 2022-04-20 2022-12-08
[Support]: Debug "stuck" detection events 18 2022-06-22 2022-10-24
TST: Port over pre 1990 NYSE test from pandas_market_calendars 0 2020-09-24 2022-11-10
偶尔不抛异常,导致应用卡在加载状态 6 2021-09-07 2021-12-30
Philips Hue Automation - Vimar Friends of Hue switches 6 2022-01-10 2022-10-29
[glew]There are too many pdf documents. Maybe the [opengl-registry] dependenciesshould be removed. 2 2022-11-23 2022-11-27
No Mechanism to replace failed hotspot 0 2022-01-25 2022-12-02
Enhancement request: ability to remove ":" from URL 0 2021-01-17 2022-11-14
[Feature Request] burly-open-last-bookmark can cross session. 4 2022-01-03 2022-11-02
Crash BFTask.m - Line 54 Crashed: com.parse.asynctaskqueue.sync SIGABRT ABORT 0x00000001b70da95c 6 2020-11-07 2022-11-28
Upgrade Assistant could not parse the pathway to my project 1 2022-09-22 2022-12-01