Skip to content
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

Add Flutter Windows app support #32

Open
chenzww opened this issue Oct 5, 2021 · 3 comments
Open

Add Flutter Windows app support #32

chenzww opened this issue Oct 5, 2021 · 3 comments

Comments

@chenzww
Copy link

chenzww commented Oct 5, 2021

Cpp(on windows) is to difficult for me. Will it add support for Windows app? Currently, Microsoft officially crate which name windows already support access any Windows API. If possible, I hope it will completely replace cpp with Rust on development windows app.

@shekohex
Copy link
Owner

shekohex commented Oct 6, 2021

I'm sure you can use this project on Windows, by writing your code and build the rust project for windows (producing a .dll shared lib) then you load it as you load any library on Linux or macOS and it should surely work like any other platform.

I've tested it before, for running dart testing over a windows machine when I have access to one last year. (but currently, I don't have access to one, so keep me updated if it does not work.)

@maxnemoy
Copy link

confirm it works great for windows

@davehorner
Copy link
Contributor

@maxnemoy would be interested in notes on how it works on windows. I have tried 'flutter create .' and this is what I get from a build.

`# flutter build windows --no-sound-null-safety

Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety

packages/adder_ffi/lib/adder.dart(5,16): error G311314CC: Method not found: 'add'. [C:\working\flutter\flutterust\build\windows\flutter\flutter_assemble.vcxproj]
packages/scrap_ffi/lib/scrap.dart(31,12): error G311314CC: Method not found: 'error_message_utf8'. [C:\working\flutter\flutterust\build\windows\flutter\flutter_assemble.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: Custom build for 'C:\working\flutter\flutterust\build\windows\CMakeFiles\ec487d42ab240c697667441dca0168bb\flutter_windows.dll.rule;C:\working\flutter\flutterust\build\windows\CMakeFiles\d018b0b2122db738001a3223cc8ccec7\flutter_assemble.rule;C:\working\flutter\flutterust\windows\flutter\CMakeLists.txt' exited with code 1. [C:\working\flutter\flutterust\build\windows\flutter\flutter_assemble.vcxproj]
Building Windows application...
Build process failed.`

I would be interested in helping to get the windows build working. Gonna take some time to figure out what to do next... if someone has some suggestions lmk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants