Giter VIP home page Giter VIP logo

rust-hidapi-sys's Introduction

hidapi-sys WTFPL

Bindings for hidapi with support for building sources automatically.

Requirements

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-sys's People

Contributors

d-e-s-o avatar ih8c0ff33 avatar meh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rust-hidapi-sys's Issues

Error message for missing git command

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.

Building error: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.