-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Add Support for running Flutter on Windows ARM64 #53120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm reinstalling everything and try it again. |
cc @csells. IIRC, we are not presently supporting this. We're looking at it for the roadmap, however. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
We would need help from the Dart team on this, AFAIK Dart does not support Windows arm64. @rmacnak-google @a-siva or @mraleph would know better. |
Adding engine label because in the event that Dart can or will support this, the engine build rules and recipes would need to be updated to handle it. |
Windows/ia32 and Windows/x64 are the two configurations we support the Dart SDK. |
It might be possible to get it working with Linux arm64 using WSL somehow, but that's likely a pretty significant effort (and still requires us to build and ship binaries that we don't today). |
Note that WSL has its own issues - and we don't actually test or support running Linux Dart SDK on WSL. There have been reports of pub hanging on WSL for example. In general unless there is a very strong use case we would prefer to not expand Dart SDK to yet another platform - because it adds a lot of maintenance burden. We need waterfall builders for this, etc. |
Isn't the fact that mainstream ARM laptops running Windows 10 (one of the platforms Flutter supports) are being sold right now a strong use case? It's not like we're talking about legacy machines (like requests for 32-bit Windows as a development platform). |
It'd probably be helpful if we had marketshare information on those. FWIW, this same issue will impact running Flutter applications on such machines. I've also seen some articles suggesting Microsoft is working on having x64 emulation available on those machines, but that would obviously come with some performance penalty. |
@stuartmorgan If the use case is percieved as strong a case has to be made at the product level for us to invest in adding this configuration to our mix and supporting it. |
Here is a reference from https://store.steampowered.com/hwsurvey?platform=pc It's from a post on https://www.reddit.com/r/windows/comments/57fse0/windows_32b_vs_64b_market_share_statistics/ And I quote
|
Windows on Arm in 2020: An ecosystem finally worth buying into?
Probably, Windows 10 on Arm is neither suitable for |
Source for that? How do you know it's not lumped into "Windows 10 64 bit" (given that it is both)? I'm also not sure how useful market share numbers are for something that's relatively new. When Apple switched to Intel, market share numbers for users with Intel Apple machines were very low too; that's the nature of the introduction of anything new. Obviously that was a different case since it was an announced transition, but absent that level of clear signal all we know is that it's not many people yet,
I'm not sure why you believe that Flutter development should be restricted to "power-user workhorse laptops". I'm not saying that this is a major portion of the market right now, I'm saying that currently we aren't living up to our own described system requirements, nor do we know how much this segment may grow going forward. |
No offense. I was working in Xiaomi. I've learn a lot about the Snapdragon chip's capability. And I'm working on APPs and drivers on Windows for our IoT product. As far as I known, Snapdragon is the only selection for Windows 10 on Arm now. Snapdragon is designed to handle mobile network and light work for phones. And it couldn't afford heavy jobs right now, maybe couple years later. Windows 10 on Arm has little market share and poor software compatiblity. MSDN has few doc for Arm development as well. Both Matebook E 2019 and Lenovo Miix 630 have terrible comments. Surface Go and Surface Pro X are too pricy for what they are capable of, while Chrome book is a better choice. So I don't think Windows 10 on Arm will populate in a few years.
|
For my very limited knowledge in the matter |
@Sunbreak
The Surface Go and Neo are also not relevant here since they both use Intel x64 chips and are therefore already capable of Flutter development. @stuartmorgan @iapicca |
Thank you guys for the very interesting discussion. I'll switch to another notebook, that's the easiest possibility. |
I didn't know that, @t0lah |
Hi @ekuleshov , did you solve the problem? I have the same issue here. |
Nope. I was hoping @maxim-saplin or someone else would shed some light on this... |
@ekuleshov @trevorwang |
This comment was marked as resolved.
This comment was marked as resolved.
Just tried the suggestion #122098 from @huycozy , it works with vs 2019 |
I would like to know if Windows on ARM is working, currently I get the linker errors when building. |
Any update on this? I just got it working with VS2019, but it feels like a hacky solution... |
Is it possible to submit x64 builds to Microsoft App Store using this solution? |
I think so. My first attempt was denied, but that's because "some features did not work" but from the review it seems they were able to test it, which I think equals to being able to publish via the Microsoft store |
That's awesome, great work 😅 looking forward to hopefully run my workflow in a VM than using another Laptop 🚀 |
Same issue on Mac mini M2 Pro running Parallels Desktop Windows 11 Pro using the latest Visual Studio 2022. There is no way to build with this VS version, regardless if Windows 10 SDK or Windows 11 SDK is installed. The workaround of installing Visual Studio 2019 16.11.5 with Windows 10 SDK works for me, I can debug and release. |
@LeoSandbox could you please provide the download link for Visual Studio 2019 16.11.5 with Windows 10 SDK? I tried this Community 2019 here and installed however I got this message: I saw this link but it recommends Visual Studio 2022 17.4 |
You can safely ignore that warning for now. Flutter will work with it. Don't go for VS Studio 2022. However, it would be fine if Flutter would work with a Visual Studio 2022 installation in Windows 11 on ARM (Windows 10 on ARM is no longer supported by MS), as that contains both the build tools für x86_64 and for arm64. If Flutter is then only using the x86_64 build tools and building x86_64 binaries that would be fine for now. Until Windows on ARM gets more love by the market (which it will soon). |
@pbo-linaro implemented this with #131843 and #141930. Flutter on the beta and stable channels build x64 executables that run using emulation on Arm64 machines. Flutter on the master channel targets your host architecture: an x64 executable is built on an x64 machine, and an Arm64 executable is built on an Arm64 machine. #62597 tracks the remaining work, including adding cross-compilation. I'll close this item as it is completed. Please create new issues if you run into problems running Flutter on Windows Arm64. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I'm new to flutter - and receive an error during installation:
Additional info on my computer setup:
Lenovo - 64bit Snapdragon - Win10 - newest version of flutter.
@rifqempul @Muhammad1122 I would like to provide you with more information, do you have questions? Many thanks. @TahaTesser Thanks! 👍
The text was updated successfully, but these errors were encountered: