Open karolzlot opened 3 years ago
Windows 10. How to solve this issue?
PowerShell 7.1.3 Copyright (c) Microsoft Corporation. https://aka.ms/powershell Type 'help' to get help. PS C:\moje\programowanie\projekty2021\roomba> cargo install --path roomba-cli Installing roomba-s9plus-cli v0.1.0 (C:\moje\programowanie\projekty2021\roomba\roomba-cli) Updating crates.io index Updating git repository `https://github.com/eclipse/paho.mqtt.rust.git` Updating git submodule `https://github.com/eclipse/paho.mqtt.c.git` Downloaded aho-corasick v0.7.18 Downloaded async-channel v1.6.1 Downloaded async-executor v1.4.1 Downloaded async-io v1.4.1 Downloaded async-task v4.0.3 Downloaded bitflags v1.2.1 Downloaded cfg-if v1.0.0 Downloaded crossbeam-utils v0.8.5 Downloaded env_logger v0.7.1 Downloaded foreign-types-shared v0.1.1 Downloaded futures-executor-preview v0.3.0-alpha.19 Downloaded futures-channel-preview v0.3.0-alpha.19 Downloaded futures-macro v0.3.15 Downloaded futures-task v0.3.15 Downloaded lazy_static v1.4.0 Downloaded futures-util-preview v0.3.0-alpha.19 Downloaded openssl-sys v0.9.63 Downloaded num_cpus v1.13.0 Downloaded pkg-config v0.3.19 Downloaded proc-macro-hack v0.5.19 Downloaded quick-error v1.2.3 Downloaded slab v0.4.3 Downloaded serde v1.0.126 Downloaded thiserror v1.0.25 Downloaded syn v1.0.72 Downloaded value-bag v1.0.0-alpha.7 Downloaded unicode-segmentation v1.7.1 Downloaded winapi v0.3.9 Downloaded atty v0.2.14 Downloaded cache-padded v1.1.1 Downloaded wepoll-sys v3.0.1 Downloaded clap v2.33.3 Downloaded dirs-sys v0.3.6 Downloaded futures-core-preview v0.3.0-alpha.19 Downloaded futures-preview v0.3.0-alpha.19 Downloaded futures v0.3.15 Downloaded futures-util v0.3.15 Downloaded itoa v0.4.7 Downloaded parking v2.0.0 Downloaded numtoa v0.1.0 Downloaded proc-macro-error-attr v1.0.4 Downloaded quote v1.0.9 Downloaded serde_json v1.0.64 Downloaded structopt v0.3.21 Downloaded thiserror-impl v1.0.25 Downloaded unicode-xid v0.2.2 Downloaded waker-fn v1.1.0 Downloaded async-lock v2.4.0 Downloaded blocking v1.0.2 Downloaded concurrent-queue v1.2.2 Downloaded fastrand v1.4.1 Downloaded futures-core v0.3.15 Downloaded futures-lite v1.12.0 Downloaded log v0.4.14 Downloaded proc-macro-error v1.0.4 Downloaded regex v1.5.4 Downloaded termcolor v1.1.2 Downloaded serde_derive v1.0.126 Downloaded futures-timer v0.3.0 Downloaded version_check v0.9.3 Downloaded async-mutex v1.4.0 Downloaded cassowary v0.3.0 Downloaded ctor v0.1.20 Downloaded futures-channel v0.3.15 Downloaded futures-io-preview v0.3.0-alpha.19 Downloaded kv-log-macro v1.0.7 Downloaded openssl v0.10.34 Downloaded pin-project-lite v0.2.6 Downloaded proc-macro2 v1.0.27 Downloaded strsim v0.8.0 Downloaded tui v0.10.0 Downloaded unicode-width v0.1.8 Downloaded async-global-executor v2.0.2 Downloaded cmake v0.1.45 Downloaded foreign-types v0.3.2 Downloaded futures-sink-preview v0.3.0-alpha.19 Downloaded proc-macro-nested v0.1.7 Downloaded memchr v2.4.0 Downloaded vcpkg v0.2.13 Downloaded structopt-derive v0.4.14 Downloaded atomic-waker v1.0.0 Downloaded event-listener v2.5.1 Downloaded futures-io v0.3.15 Downloaded once_cell v1.7.2 Downloaded regex-syntax v0.6.25 Downloaded toml v0.5.8 Downloaded futures-executor v0.3.15 Downloaded async-std v1.9.0 Downloaded socket2 v0.4.0 Downloaded libc v0.2.95 Downloaded autocfg v1.0.1 Downloaded winapi-util v0.1.5 Downloaded termion v1.5.6 Downloaded humantime v1.3.0 Downloaded futures v0.1.31 Downloaded pin-utils v0.1.0 Downloaded cc v1.0.68 Downloaded polling v2.0.3 Downloaded dirs v3.0.2 Downloaded textwrap v0.11.0 Downloaded ryu v1.0.5 Downloaded vec_map v0.8.2 Downloaded futures-sink v0.3.15 Downloaded heck v0.3.3 Downloaded 104 crates (5.8 MB) in 11.00s (largest was `winapi` at 1.2 MB) Compiling proc-macro2 v1.0.27 Compiling unicode-xid v0.2.2 Compiling syn v1.0.72 Compiling version_check v0.9.3 Compiling memchr v2.4.0 Compiling cc v1.0.68 Compiling futures-core v0.3.15 Compiling autocfg v1.0.1 Compiling winapi v0.3.9 Compiling libc v0.2.95 Compiling slab v0.4.3 Compiling futures-io v0.3.15 Compiling cfg-if v1.0.0 Compiling pin-project-lite v0.2.6 Compiling log v0.4.14 Compiling pin-utils v0.1.0 Compiling proc-macro-hack v0.5.19 Compiling futures-task v0.3.15 Compiling futures-channel v0.3.15 Compiling proc-macro-nested v0.1.7 Compiling cache-padded v1.1.1 Compiling bitflags v1.2.1 Compiling futures-core-preview v0.3.0-alpha.19 Compiling futures-sink-preview v0.3.0-alpha.19 Compiling once_cell v1.7.2 Compiling fastrand v1.4.1 Compiling futures-io-preview v0.3.0-alpha.19 Compiling futures-sink v0.3.15 Compiling vcpkg v0.2.13 Compiling event-listener v2.5.1 Compiling serde_derive v1.0.126 Compiling pkg-config v0.3.19 Compiling parking v2.0.0 Compiling waker-fn v1.1.0 Compiling serde v1.0.126 Compiling futures v0.1.31 Compiling async-task v4.0.3 Compiling unicode-width v0.1.8 Compiling ryu v1.0.5 Compiling lazy_static v1.4.0 Compiling atomic-waker v1.0.0 Compiling unicode-segmentation v1.7.1 Compiling foreign-types-shared v0.1.1 Compiling serde_json v1.0.64 Compiling crossbeam-utils v0.8.5 Compiling openssl v0.10.34 Compiling quick-error v1.2.3 Compiling regex-syntax v0.6.25 Compiling strsim v0.8.0 Compiling numtoa v0.1.0 Compiling vec_map v0.8.2 Compiling itoa v0.4.7 Compiling cassowary v0.3.0 Compiling concurrent-queue v1.2.2 Compiling value-bag v1.0.0-alpha.7 Compiling proc-macro-error-attr v1.0.4 Compiling proc-macro-error v1.0.4 Compiling futures-macro v0.3.15 Compiling futures-util v0.3.15 Compiling futures-channel-preview v0.3.0-alpha.19 Compiling async-mutex v1.4.0 Compiling async-lock v2.4.0 Compiling textwrap v0.11.0 Compiling cmake v0.1.45 Compiling foreign-types v0.3.2 Compiling humantime v1.3.0 Compiling heck v0.3.3 Compiling async-channel v1.6.1 Compiling num_cpus v1.13.0 Compiling termion v1.5.6 Compiling wepoll-sys v3.0.1 Compiling openssl-sys v0.9.63 Compiling paho-mqtt-sys v0.4.0 (https://github.com/eclipse/paho.mqtt.rust.git?rev=47eb3eaee53a9e5f3687f9120b20d15a22a7bb9f#47eb3eae) error[E0433]: failed to resolve: unresolved import --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\lib.rs:24:9 | 24 | pub use sys::size::terminal_size; | ^^^ | | | unresolved import | help: a similar path exists: `color::env::sys` error[E0433]: failed to resolve: unresolved import --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\lib.rs:27:9 | 27 | pub use sys::tty::{is_tty, get_tty}; | ^^^ | | | unresolved import | help: a similar path exists: `color::env::sys` error[E0433]: failed to resolve: unresolved import --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\async.rs:5:5 | 5 | use sys::tty::get_tty; | ^^^ | | | unresolved import | help: a similar path exists: `color::env::sys` error[E0433]: failed to resolve: unresolved import --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:28:5 | 28 | use sys::attr::{get_terminal_attr, raw_terminal_attr, set_terminal_attr}; | ^^^ | | | unresolved import | help: a similar path exists: `color::env::sys` error[E0432]: unresolved import `sys` --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:29:5 | 29 | use sys::Termios; | ^^^ | | | unresolved import | help: a similar path exists: `color::env::sys` error[E0425]: cannot find function `get_tty` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\async.rs:14:36 | 14 | thread::spawn(move || for i in get_tty().unwrap().bytes() { | ^^^^^^^ not found in this scope error[E0425]: cannot find function `get_tty` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\async.rs:43:36 | 43 | thread::spawn(move || for i in get_tty().unwrap().bytes() { | ^^^^^^^ not found in this scope error[E0425]: cannot find function `set_terminal_attr` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:45:9 | 45 | set_terminal_attr(&self.prev_ios).unwrap(); | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find function `get_terminal_attr` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:102:23 | 102 | let mut ios = get_terminal_attr()?; | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find function `raw_terminal_attr` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:105:9 | 105 | raw_terminal_attr(&mut ios); | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find function `set_terminal_attr` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:107:9 | 107 | set_terminal_attr(&ios)?; | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find function `set_terminal_attr` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:119:9 | 119 | set_terminal_attr(&self.prev_ios)?; | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find function `get_terminal_attr` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:125:23 | 125 | let mut ios = get_terminal_attr()?; | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find function `raw_terminal_attr` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:126:9 | 126 | raw_terminal_attr(&mut ios); | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find function `set_terminal_attr` in this scope --> C:\Users\musli\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:127:9 | 127 | set_terminal_attr(&ios)?; | ^^^^^^^^^^^^^^^^^ not found in this scope Compiling futures-lite v1.12.0 Compiling futures-util-preview v0.3.0-alpha.19 Compiling aho-corasick v0.7.18 Compiling quote v1.0.9 error: aborting due to 15 previous errors Some errors have detailed explanations: E0425, E0432, E0433. For more information about an error, try `rustc --explain E0425`. error: could not compile `termion` To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: failed to compile `roomba-s9plus-cli v0.1.0 (C:\moje\programowanie\projekty2021\roomba\roomba-cli)`, intermediate artifacts can be found at `C:\moje\programowanie\projekty2021\roomba\target` Caused by: build failed PS C:\moje\programowanie\projekty2021\roomba>
Windows 10. How to solve this issue?