Hallo,
ich habe mich extra in diesem Forum angemeldet, weil ich mit meinem Latein am Ende bin.
Habe jetzt schon alles Mögliche versucht, um das spidev Modul auf meinen Raspberry zu bekommen - leider ohne Erfolg.
In Kürze:
Ich bin nach diesem
http://www.100randomtasks.com/simple-spi-on-raspberry-pi
Tutorial vorgegangen und stecke zum Schluss bei "sudo python setup.py install" fest.
Da bekomme ich dann folgenden Fehler:
Code
running install
running build
running build_ext
building 'spidev' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/src/linux/include -I/usr/include/python2.7 -c spidev_module.c -o build/temp.linux-armv6l-2.7/spidev_module.o
In file included from /usr/include/linux/spi/spidev.h:25:0,
from spidev_module.c:25:
/usr/src/linux/include/linux/types.h:14:26: error: conflicting types for 'fd_set'
/usr/include/arm-linux-gnueabihf/sys/select.h:78:5: note: previous declaration of 'fd_set' was here
/usr/src/linux/include/linux/types.h:15:25: error: conflicting types for 'dev_t'
/usr/include/arm-linux-gnueabihf/sys/types.h:61:17: note: previous declaration of 'dev_t' was here
/usr/src/linux/include/linux/types.h:16:25: error: conflicting types for 'ino_t'
/usr/include/arm-linux-gnueabihf/sys/types.h:51:19: note: previous declaration of 'ino_t' was here
/usr/src/linux/include/linux/types.h:17:26: error: conflicting types for 'mode_t'
/usr/include/arm-linux-gnueabihf/sys/types.h:71:18: note: previous declaration of 'mode_t' was here
/usr/src/linux/include/linux/types.h:20:25: error: conflicting types for 'off_t'
/usr/include/stdio.h:93:19: note: previous declaration of 'off_t' was here
/usr/src/linux/include/linux/types.h:25:26: error: conflicting types for 'timer_t'
/usr/include/time.h:104:19: note: previous declaration of 'timer_t' was here
/usr/src/linux/include/linux/types.h:36:24: error: conflicting types for 'uintptr_t'
/usr/include/stdint.h:129:23: note: previous declaration of 'uintptr_t' was here
/usr/src/linux/include/linux/types.h:134:23: error: conflicting types for 'blkcnt_t'
/usr/include/arm-linux-gnueabihf/sys/types.h:249:22: note: previous declaration of 'blkcnt_t' was here
spidev_module.c:35:0: warning: "PyLong_Check" redefined [enabled by default]
/usr/include/python2.7/longobject.h:14:0: note: this is the location of the previous definition
spidev_module.c:888:1: warning: return type defaults to 'int' [-Wreturn-type]
spidev_module.c: In function 'initspidev':
spidev_module.c:897:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
error: command 'gcc' failed with exit status 1
Alles anzeigen
Habe ewig gegoogelt und probiert, bin aber ziemlicher Laie und krieg's allein einfach nicht gebacken.
Bitte um Hilfe!
Als übergeordnetes Problem will ich zwei LED-Matrizen per daisy chain betreiben, damit mein kleiner Cam-Rover in eine Richtung kommunizieren kann.