tendermint/tmkms

compile error

SemElVik opened this issue · 1 comments

  • x86_64 /ubuntu 18.04
  • rustc 1.32.0;
  • gcc + clang;
  • pkg-config;
  • libusb (1.0+)
    cargo install tmkms --features=ledgertm
    for any attempts to compile there is an error.
error: failed to run custom build command for hidapi v0.5.2
process didn't exit successfully: /tmp/cargo-installlEV3wy/release/build/hidapi-e3a7571fb47900f3/build-script-build (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to find libudev: Failure { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"libudev\"", output: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "Package libudev was not found in the pkg-config search path.\nPerhaps you should add the directory containing `libudev.pc\'\nto the PKG_CONFIG_PATH environment variable\nPackage \'libudev\', required by \'world\', not found\n" } }', src/libcore/result.rs:1009:5
note: Run with RUST_BACKTRACE=1 for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: failed to compile tmkms v0.5.0, intermediate artifacts can be found at /tmp/cargo-installlEV3wy

Caused by:
  build failed

apt-get install libudev-dev corrects the error.
dependence can be specified in the description