rust-embed-resource: Unable to find RC.exe

This is a cross-post from this https crate issue.

This crate seems sensitive to C-compiler setup; failing on Windows 10 when running cargo install https. I think it’s trying to find a Visual Studio compiler that is not normally in the system path.

error: failed to run custom build command for `https v1.3.2`
process didn't exit successfully: `C:\Users\david\AppData\Local\Temp\cargo-install9Sgt9O\release\build\https-b1afe7e63ae
4afd0\build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Are you sure you have RC.EXE in your $PATH?: Os { code: 2, kind: NotFound, message: "The syst
em cannot find the file specified." }', libcore\result.rs:945:5

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

Appears to be fixed. Thanks for sorting this out!

Some(
    VsFindResult {
        windows_sdk_version: 10,
        windows_sdk_root: Some(
            "C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.17134.0"
        ),
        windows_sdk_um_library_path: Some(
            "C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.17134.0\\um\\x64"
        ),
        windows_sdk_ucrt_library_path: Some(
            "C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.17134.0\\ucrt\\x64"
        ),
        vs_exe_path: Some(
            "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\
\bin\\Hostx64\\x64"
        ),
        vs_library_path: Some(
            "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\
\lib\\x64"
        )
    }
)

I just read the opening ‘easy’ on how as bad as that code is, it’s actually really good despite all the pressure on it to be worse… 😢

Good luck with it! 👍