Bindings for hidapi with support for building sources automatically.
gcc
and pkg-config
are required for building source automatically.
git
is required unless HIDAPI_PATH
is exported to an existing checkout of
hidapi sources.
Rust hidapi bindings.
LINK : fatal error LNK1181: cannot open input file 'hidapi.lib'
When I try to build crate with 'build' feature and git command isn't installed, cargo panicked with the message 'File not found'. It doesn't explain the problem and uninformative.
It would be nice if build.rs explains missing git problem more detailed. I like how it done in openssl-sys/build.rs.
I added 'build' feature and when I am trying to compile I got following error:
error: linking with `cc` failed: exit code: 1
... [skipped long-long command]
= note: /usr/bin/ld: /home/********/target/debug/deps/libhidapi_sys-e7ecce37533f01a9.rlib(hid.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC`.
OS: Linux Debian 9 amd64
Rust target: x86_64-unknown-linux-gnu
$ rust --version
rustc 1.24.0-nightly (f9b0897c5 2017-12-02)
$ gcc --version
gcc (Debian 6.3.0-18) 6.3.0 20170516
My Cargo.toml:
[dependencies.hid]
version = "^0.4.1"
features = ["build"]
I tried to add 'static' feature but it doesn't help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.