Skip to content

Cross-compiling from Linux results in: "No windir environment variable foundΒ #143

Closed
@Susurrus

Description

@Susurrus

I'm on x86_64 Manjaro running Rust trying to build this library. It'd be helpful to know what targets (as defined by Rust) are supported. I'm trying to compile for x86_64-pc-windows-gnu (x86_64-pc-windows-msvc has the same error):

$ cargo build --features win_rt --target x86_64-pc-windows-gnu
   Compiling serialport v3.3.1-alpha.0 (/home/susurrus/Projects/serialport-rs)
error: proc macro panicked
  --> src/windows/winrt.rs:12:1
   |
12 | / import!(
13 | |     dependencies
14 | |     os
15 | |     modules
...  |
18 | |         "windows.storage.streams"
19 | | );
   | |__^
   |
   = help: message: No `windir` environment variable found

error: aborting due to previous error

error: could not compile `serialport`.

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions