MLAB-project / hid-cp2112

Silicon Labs HID USB to SMBus master bridge driver
GNU General Public License v3.0
6 stars 5 forks source link

Compile.. Error #1

Open imain1 opened 10 years ago

imain1 commented 10 years ago

HI.. I've tried many times to compile your driver. But I've never successed with it.

What I did are..

1) Ubuntu linux 12.04 : hid-cp2112.c and "make" ==> there isn't libhid.a

  I have could not find libhid-dev package for 12.04 .

2) Ubuntu linux 10.04 : hid-cp2112.c and "make" ==>

/usr/src/linux..../include/linux/hid.h ==>a little difference .. hid.h file.: compile failed.

/hid-cp2112.c:177: error: ‘struct hid_device’ has no member named ‘hid_get_raw_report’

/Hid-cp2112-master/hid-cp2112.c:180: error: implicit declaration of function ‘hid_err’

Would you give me a little comment about the linux configuration?

kaklik commented 10 years ago

Hello, This driver does not work. I am sorry for poor documentation and misunderstanding. We are not authors of the driver. Author is David Barksdale dbarksdale@uplogix.com he claims that you need a kernel version 3.15. at least to get it working. We are not using this driver for now.

We are currently using the HIDAPI interface implemented in our code: https://github.com/MLAB-project/MLAB-I2c-modules With this Python module library you should communicate with I²C devices over USB port from a Python scripting.