cargo-mobile icon indicating copy to clipboard operation
cargo-mobile copied to clipboard

windows compile_error!

Open songlinshu opened this issue 2 years ago • 1 comments

: Host platform not yet supported by cargo-mobile! We'd love if you made a PR to add support for this platform ❤️ --> src\os\mod.rs:16:1 | 16 | compile_error!("Host platform not yet supported by cargo-mobile! We'd love if you made a PR to add support for this platform ❤️"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import crate::os::command_path --> src\util\mod.rs:11:23 | 11 | use crate::os::{self, command_path}; | ^^^^^^^^^^^^ no command_path in os

error[E0433]: failed to resolve: could not find info in self --> src\os\mod.rs:28:15 | 28 | self::info::check() | ^^^^ could not find info in self

error[E0433]: failed to resolve: could not find Application in os --> src\util\mod.rs:583:9 | 583 | os::Application::detect_editor() | ^^^^^^^^^^^ could not find Application in os

error[E0425]: cannot find function open_file_with in module os --> src\android\cli.rs:163:17 | 163 | os::open_file_with("Android Studio", config.project_dir()).map_err(Error::OpenFailed) | ^^^^^^^^^^^^^^ not found in os

error[E0412]: cannot find type DetectEditorError in module os --> src\util\mod.rs:568:22 | 568 | DetectFailed(os::DetectEditorError), | ^^^^^^^^^^^^^^^^^ not found in os

error[E0412]: cannot find type OpenFileError in module os --> src\util\mod.rs:569:20 | 569 | OpenFailed(os::OpenFileError), | ^^^^^^^^^^^^^ not found in os

Some errors have detailed explanations: E0412, E0425, E0432, E0433. For more information about an error, try rustc --explain E0412. error: could not compile cargo-mobile due to 7 previous errors warning: build failed, waiting for other jobs to finish...

stable-i686-pc-windows-gnu stable-i686-pc-windows-msvc stable-x86_64-pc-windows-gnu stable-x86_64-pc-windows-msvc (default) nightly-x86_64-pc-windows-gnu nightly-x86_64-pc-windows-msvc 1.60.0-x86_64-pc-windows-msvc

installed targets for active toolchain

wasm32-unknown-unknown x86_64-pc-windows-msvc

active toolchain

stable-x86_64-pc-windows-msvc (default) rustc 1.60.0 (7737e0b5c 2022-04-04)

songlinshu avatar Apr 14 '22 22:04 songlinshu

Windows is not a supported architecture quite yet, so sadly this is an expected error and you won't be able to run on Windows until support for it is added.

ArthurKValladares avatar Apr 18 '22 20:04 ArthurKValladares