libui-rs: Trying to `cargo build` fails on `ui-sys`

Doing: cargo build causes following error on Windows 7 (64bit) and Rust 1.24.

_Compiling ui-sys v0.1.1 error: failed to run custom build command for ui-sys v0.1.1

— stderr fatal: Not a git repository (or any of the parent directories): .git thread ‘main’ panicked at '_

The trace leads to: 10: build_script_build::main at .\build.rs:15

If I initialise a git-repo inside the folder, it just keeps the same error-trace but no actual mentioning of a fatal error.

About this issue

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

Commits related to this issue

Most upvoted comments

I tried the example app and this time it built iui-sys 0.1.3 and iui 0.3.0 worked fine (Win-7-64, Rust 1.26.2). I’ll now start trying it out properly.

I got the same problem on Windows 7-64-bit and Rust 1.25. I installed cmake-3.11.1 64-bit & I copied & pasted the example code into a new --bin project’s src/main.rs and added iui = "0.2" to the Cargo.toml dependencies. Then I ran cargo run --release. The output was:

R:\rs\hellowin>cargo run --release --
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading iui v0.2.0
 Downloading ui-sys v0.1.1
 Downloading failure v0.1.1
 Downloading cmake v0.1.31
 Downloading make-cmd v0.1.0
 Downloading cc v1.0.15
 Downloading failure_derive v0.1.1
 Downloading backtrace v0.3.7
 Downloading synstructure v0.6.1
 Downloading rustc-demangle v0.1.8
 Downloading cfg-if v0.1.3
   Compiling make-cmd v0.1.0
   Compiling bitflags v0.7.0
   Compiling unicode-xid v0.0.4
   Compiling cfg-if v0.1.3
   Compiling cc v1.0.15
   Compiling winapi v0.3.4
   Compiling quote v0.3.15
   Compiling libc v0.2.40
   Compiling rustc-demangle v0.1.8
   Compiling synom v0.11.3
   Compiling syn v0.11.11
   Compiling backtrace v0.3.7
   Compiling cmake v0.1.31
   Compiling ui-sys v0.1.1
   Compiling synstructure v0.6.1
error: failed to run custom build command for `ui-sys v0.1.1` process didn't exit successfully: `R:\rs\hellowin\target\release\build\ui-sys-79acea2def35845c\build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', libcore\result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed