shekohex / flutterust

Flutter + Rust = :heart:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App build issues on windows 10

pratikpparikh opened this issue · comments

When i try to build on windows, I get following. Can you please help me understand what I might be missing?

Compiling adder-ffi v0.1.0 (C:\opt\development\projects\rust-apps\flutterust\native\adder-ffi) error: failed to run custom build command foradder-ffi v0.1.0 (C:\opt\development\projects\rust-apps\flutterust\native\adder-ffi)`

Caused by:
process didn't exit successfully: C:\opt\development\projects\rust-apps\flutterust\target\debug\build\adder-ffi-1fff778eecd53b49\build-script-build (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)
[2021-04-06T02:53:23Z INFO cargo_ndk::cli] If the build failed due to a missing target, you can run this command:
[2021-04-06T02:53:23Z INFO cargo_ndk::cli]
[2021-04-06T02:53:23Z INFO cargo_ndk::cli] rustup target install aarch64-linux-android
[cargo-make][1] ERROR - Error while executing command, exit code: 101
[cargo-make][1] WARN - Build Failed.

C:\opt\development\projects\rust-apps\flutterust\native\adder-ffi>if 1 NEQ 0 exit /b 1
[cargo-make] ERROR - Error while executing command, exit code: 1
[cargo-make] WARN - Build Failed.
`

Target list
C:\opt\development\projects\rust-apps\flutterust> rustup target list --installed
aarch64-linux-android
aarch64-pc-windows-msvc
armv7-linux-androideabi
i586-pc-windows-msvc
i686-linux-android
i686-pc-windows-msvc
x86_64-linux-android
x86_64-pc-windows-msvc