no ragazzi, non è possibile che vinca bill..........
io vorrei iniziare ad utilizzare Ubuntu, ma sono tetraplegico... ed ha bisogno di questa cuffia per poter iniziare ad implementare simon per il riconoscimento vocale!
Ho seguito questa guida ma quando sono arrivato al punto di dover dare questo comando:
marco@marco-VirtualBox:~/.xpad360$ sudo make
make modules -C /usr/src/linux-headers-3.2.0-27-generic SUBDIRS=/home/marco/.xpad360
make[1]: ingresso nella directory "/usr/src/linux-headers-3.2.0-27-generic"
CC [M] /home/marco/.xpad360/xpad.o
/home/marco/.xpad360/xpad.c:66:28: fatal error: linux/smp_lock.h: File o directory non esistente
compilation terminated.
make[2]: *** [/home/marco/.xpad360/xpad.o] Errore 1
make[1]: *** [_module_/home/marco/.xpad360] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-3.2.0-27-generic"
make: *** [all] Errore 2
marco@marco-VirtualBox:~/.xpad360$
come posso rimediare?
il pacchetto che hai scaricato forse va bene per i kernel 2.6; dovresti cercare un pacchetto xpad360 per kernel superiore; 3.1 o 3.2, altrimenti continua ad emettere errori durante la compilazione.
proprio ieri avevo trovato questa guida!:)
Siccome sono ancora inesperto di Ubuntu, potresti essere così gentile da dirmi cosa scrivere in questo comando
MBdip » [url=http://forum.ubuntu-it.org/viewtopic.php?p=4147120#p4147120]ieri, 22:08[/url] ha scritto:ho riprovato a fare tutto non da macchina virtuale... ecco l'errore risultante al comando "make":
mbdip@mbdip-Dell-System-XPS-L702X:~/xpad$ make
make modules -C/usr/src/linux-headers-3.2.0-26-generic SUBDIRS=/home/mbdip/xpad
make[1]: ingresso nella directory "/usr/src/linux-headers-3.2.0-26-generic"
CC [M] /home/mbdip/xpad/xpad.o /home/mbdip/xpad/xpad.c:66:28: fatal error: linux/smp_lock.h: File o directory non esistente
compilation terminated.
make[2]: *** [/home/mbdip/xpad/xpad.o] Errore 1
make[1]: *** [_module_/home/mbdip/xpad] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-3.2.0-26-generic"
make: *** [all] Errore 2
mbdip@mbdip-Dell-System-XPS-L702X:~/xpad$
Non ha creato il driver xpad a causa del file header smp_lock.h non trovato; da terminale postami questo comando:
mbdip@mbdip-Dell-System-XPS-L702X:~$ gedit smp_lock.h
mbdip@mbdip-Dell-System-XPS-L702X:~$
mbdip@mbdip-Dell-System-XPS-L702X:~$ sudo chmod 777 /usr/src/linux-headers-3.2.0-27-generic/
mbdip@mbdip-Dell-System-XPS-L702X:~$ sudo mkdir /usr/src/linux-headers-3.2.0-27-generic/linux
mbdip@mbdip-Dell-System-XPS-L702X:~$ sudo cp -rf smp_lock.h /usr/src/linux-headers-3.2.0-27-generic/linux/smp_lock.h
mbdip@mbdip-Dell-System-XPS-L702X:~$ cd xpad
mbdip@mbdip-Dell-System-XPS-L702X:~/xpad$ make
make modules -C/usr/src/linux-headers-3.2.0-27-generic SUBDIRS=/home/mbdip/xpad
make[1]: ingresso nella directory "/usr/src/linux-headers-3.2.0-27-generic"
CC [M] /home/mbdip/xpad/xpad.o
In file included from /home/mbdip/xpad/xpad.c:66:0:
/usr/src/linux-headers-3.2.0-27-generic/linux/smp_lock.h:64:1: error: expected identifier or ‘(’ before numeric constant
/usr/src/linux-headers-3.2.0-27-generic/linux/smp_lock.h:64:1: error: stray ‘#’ in program
/usr/src/linux-headers-3.2.0-27-generic/linux/smp_lock.h:1:0: error: unterminated #ifndef
In file included from include/linux/usb.h:4:0,
from /home/mbdip/xpad/xpad.c:67:
include/linux/mod_devicetable.h:21:2: error: unknown type name ‘kernel_ulong_t’
include/linux/mod_devicetable.h:36:2: error: unknown type name ‘kernel_ulong_t’
include/linux/mod_devicetable.h:37:33: error: ‘kernel_ulong_t’ undeclared here (not in a function)
include/linux/mod_devicetable.h:37:3: error: requested alignment is not a constant
include/linux/mod_devicetable.h:119:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:141:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:154:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:168:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:179:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:187:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:195:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:200:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:265:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:314:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:341:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:366:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:413:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:424:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:435:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:499:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:531:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
include/linux/mod_devicetable.h:542:2: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/home/mbdip/xpad/xpad.c: In function ‘xpad_wireless_connect’:
/home/mbdip/xpad/xpad.c:291:3: error: implicit declaration of function ‘info’ [-Werror=implicit-function-declaration]
/home/mbdip/xpad/xpad.c: In function ‘xpad_open’:
/home/mbdip/xpad/xpad.c:382:29: error: ‘struct input_dev’ has no member named ‘private’
/home/mbdip/xpad/xpad.c: In function ‘xpad_close’:
/home/mbdip/xpad/xpad.c:408:29: error: ‘struct input_dev’ has no member named ‘private’
/home/mbdip/xpad/xpad.c: In function ‘xpad_probe’:
/home/mbdip/xpad/xpad.c:459:2: error: implicit declaration of function ‘usb_buffer_alloc’ [-Werror=implicit-function-declaration]
/home/mbdip/xpad/xpad.c:459:14: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/mbdip/xpad/xpad.c:496:11: error: ‘struct input_dev’ has no member named ‘cdev’
/home/mbdip/xpad/xpad.c:497:11: error: ‘struct input_dev’ has no member named ‘private’
/home/mbdip/xpad/xpad.c:577:1: error: implicit declaration of function ‘usb_buffer_free’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/mbdip/xpad/xpad.o] Errore 1
make[1]: *** [_module_/home/mbdip/xpad] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-3.2.0-27-generic"
make: *** [all] Errore 2
mbdip@mbdip-Dell-System-XPS-L702X:~/xpad$
Non so proprio come risolvere gli errori, di programmazione in C non me ne intendo; se avevi installato la 10.04 LTS e quel file che hai modificato, forse una speranza c'era; il problema che i kernel sono differenti colla 12.04 il kernel è 3.2 mentre colla 10.04 è 2.6.X.
Una prova che puoi fare è farlo funzionare con Wine!
mbdip@mbdip-laptop:~/xpad$ make
make modules -C/usr/src/linux-headers-2.6.32-38-generic SUBDIRS=/home/mbdip/xpad
make[1]: ingresso nella directory "/usr/src/linux-headers-2.6.32-38-generic"
CC [M] /home/mbdip/xpad/xpad.o
/home/mbdip/xpad/xpad.c: In function ‘xpad_wireless_connect’:
/home/mbdip/xpad/xpad.c:291: error: implicit declaration of function ‘info’
/home/mbdip/xpad/xpad.c: In function ‘xpad_open’:
/home/mbdip/xpad/xpad.c:382: error: ‘struct input_dev’ has no member named ‘private’
/home/mbdip/xpad/xpad.c: In function ‘xpad_close’:
/home/mbdip/xpad/xpad.c:408: error: ‘struct input_dev’ has no member named ‘private’
/home/mbdip/xpad/xpad.c: In function ‘xpad_probe’:
/home/mbdip/xpad/xpad.c:496: error: ‘struct input_dev’ has no member named ‘cdev’
/home/mbdip/xpad/xpad.c:497: error: ‘struct input_dev’ has no member named ‘private’
make[2]: *** [/home/mbdip/xpad/xpad.o] Errore 1
make[1]: *** [_module_/home/mbdip/xpad] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-2.6.32-38-generic"
make: *** [all] Errore 2
[1]+ Eseguito gedit Makefile
mbdip@mbdip-laptop:~/xpad$
mbdip@DELL-XPS-L702X:~/xpad$ make
make modules -C/usr/src/linux-headers-2.6.32-42-generic SUBDIRS=/home/mbdip/xpad
make[1]: ingresso nella directory "/usr/src/linux-headers-2.6.32-42-generic"
CC [M] /home/mbdip/xpad/xpad.o
/home/mbdip/xpad/xpad.c: In function ‘xpad_wireless_connect’:
/home/mbdip/xpad/xpad.c:291: error: implicit declaration of function ‘info’
/home/mbdip/xpad/xpad.c: In function ‘xpad_open’:
/home/mbdip/xpad/xpad.c:382: error: ‘struct input_dev’ has no member named ‘private’
/home/mbdip/xpad/xpad.c: In function ‘xpad_close’:
/home/mbdip/xpad/xpad.c:408: error: ‘struct input_dev’ has no member named ‘private’
/home/mbdip/xpad/xpad.c: In function ‘xpad_probe’:
/home/mbdip/xpad/xpad.c:496: error: ‘struct input_dev’ has no member named ‘cdev’
/home/mbdip/xpad/xpad.c:497: error: ‘struct input_dev’ has no member named ‘private’
make[2]: *** [/home/mbdip/xpad/xpad.o] Errore 1
make[1]: *** [_module_/home/mbdip/xpad] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-2.6.32-42-generic"
make: *** [all] Errore 2
mbdip@DELL-XPS-L702X:~/xpad$ make
prima di ciò ho seguito i comandi che mi hai detto modificando il mio kernel:
mbdip@DELL-XPS-L702X:~/xpad$ make
make modules -C/usr/src/linux-headers-2.6.32-42-generic SUBDIRS=/home/mbdip/xpad
make[1]: ingresso nella directory "/usr/src/linux-headers-2.6.32-42-generic"
CC [M] /home/mbdip/xpad/xpad.o
/home/mbdip/xpad/xpad.c: In function ‘xpad_wireless_connect’:
/home/mbdip/xpad/xpad.c:291: error: implicit declaration of function ‘info’
/home/mbdip/xpad/xpad.c: In function ‘xpad_open’:
/home/mbdip/xpad/xpad.c:382: error: ‘struct input_dev’ has no member named ‘private’
/home/mbdip/xpad/xpad.c: In function ‘xpad_close’:
/home/mbdip/xpad/xpad.c:408: error: ‘struct input_dev’ has no member named ‘private’
/home/mbdip/xpad/xpad.c: In function ‘xpad_probe’:
/home/mbdip/xpad/xpad.c:496: error: ‘struct input_dev’ has no member named ‘cdev’
/home/mbdip/xpad/xpad.c:497: error: ‘struct input_dev’ has no member named ‘private’
make[2]: *** [/home/mbdip/xpad/xpad.o] Errore 1
make[1]: *** [_module_/home/mbdip/xpad] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-2.6.32-42-generic"
make: *** [all] Errore 2
mbdip@DELL-XPS-L702X:~/xpad$ make
Gli errori che sono stati emessi sono dovuti a dei cambiamenti di parametri nel file che hai copiato e salvato, non so che modifiche bisogna apportare per farlo funzionare, quello che ti consiglio di fare, è aprire una nuova discussione nella sezione Programmazione, sperando che lì ci sia una persona che ti possa aiutare a modificare il file per la compilazione ed installazione del modulo driver xpad.