(12-15-2016, 03:37 PM)martinayotte Wrote: You can grab this library : https://github.com/swkim01/RPi.GPIO-PineA64
I've contribute to add I2c and SPI almost 4 weeks ago.
I attempted to update my RPi.GPIO-PineA64 by cloning from GitHub and when I run Python setup.py install I get the errors shown below. I'm sure somehow I've probably misconfigured my system or am overlooking something obvious or simple. Does anyone have any suggestions on correctly installing the RPi.GPIO-PineA64 package with all its new goodies?
_______________________________________
In file included from source/i2c/i2c_lib.c:34:0:
/usr/include/linux/i2c-dev.h:37:8: error: redefinition of ‘struct i2c_msg’
struct i2c_msg {
^
In file included from source/i2c/i2c_lib.c:33:0:
/usr/include/linux/i2c.h:68:8: note: originally defined here
struct i2c_msg {
^
In file included from source/i2c/i2c_lib.c:34:0:
/usr/include/linux/i2c-dev.h:89:7: error: redefinition of ‘union i2c_smbus_data’
union i2c_smbus_data {
^
In file included from source/i2c/i2c_lib.c:33:0:
/usr/include/linux/i2c.h:129:7: note: originally defined here
union i2c_smbus_data {
^
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1