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

windows compile_error! #79

Open
songlinshu opened this issue Apr 14, 2022 · 1 comment
Open

windows compile_error! #79

songlinshu opened this issue Apr 14, 2022 · 1 comment

Comments

@songlinshu
Copy link

: 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)

@ArthurKValladares
Copy link
Contributor

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.

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

2 participants