Δημοσιεύτηκε: 08 Μαρ 2010, 22:13
από xaris2335
Ακολουθώ τις οδηγίες αυτού του σάιτ και μου βγάζει έρορ σε μία εντολή τι κάνω
Σημείωση το build μπορώ να το κάνω μέσω της εντολής m-a σωστά;
έτσι για να μαθαίνω κιόλας.
Spoiler: show
ubuntu@ubuntu-desktop:~/gspcav1-20071224$ sudo ./gspca_build
[sudo] password for ubuntu:
REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules
CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err
COMPILE gspca Please Wait ....!!
INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: αδύνατη η εκτέλεση της stat στο αρχείο «gspca.ko»: No such file or directory
make: *** [install] Error 1
LOAD gspca in memory
FATAL: Module gspca not found.
PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/ubuntu/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-20-generic'
CC [M] /home/ubuntu/gspcav1-20071224/gspca_core.o
/home/ubuntu/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
In file included from /home/ubuntu/gspcav1-20071224/gspca_core.c:848:
/home/ubuntu/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
/home/ubuntu/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
/home/ubuntu/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
/home/ubuntu/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
In file included from /home/ubuntu/gspcav1-20071224/gspca_core.c:856:
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/ubuntu/gspcav1-20071224/gspca_core.c:2466: error: implicit declaration of function ‘video_usercopy’
/home/ubuntu/gspcav1-20071224/gspca_core.c: At top level:
/home/ubuntu/gspcav1-20071224/gspca_core.c:2612: error: unknown field ‘owner’ specified in initializer
/home/ubuntu/gspcav1-20071224/gspca_core.c:2612: warning: initialization from incompatible pointer type
/home/ubuntu/gspcav1-20071224/gspca_core.c:2614: error: unknown field ‘type’ specified in initializer
/home/ubuntu/gspcav1-20071224/gspca_core.c:2618: warning: initialization from incompatible pointer type
/home/ubuntu/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/ubuntu/gspcav1-20071224/gspca_core.c:2772: error: implicit declaration of function ‘video_device_create_file’
/home/ubuntu/gspcav1-20071224/gspca_core.c:2783: error: implicit declaration of function ‘video_device_remove_file’
/home/ubuntu/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/ubuntu/gspcav1-20071224/gspca_core.c:4314: error: incompatible types when assigning to type ‘struct device’ from type ‘struct device *’
make[2]: *** [/home/ubuntu/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/home/ubuntu/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-20-generic'
make: *** [default] Error 2
[sudo] password for ubuntu:
REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules
CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err
COMPILE gspca Please Wait ....!!
INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: αδύνατη η εκτέλεση της stat στο αρχείο «gspca.ko»: No such file or directory
make: *** [install] Error 1
LOAD gspca in memory
FATAL: Module gspca not found.
PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/ubuntu/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-20-generic'
CC [M] /home/ubuntu/gspcav1-20071224/gspca_core.o
/home/ubuntu/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
In file included from /home/ubuntu/gspcav1-20071224/gspca_core.c:848:
/home/ubuntu/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
/home/ubuntu/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
/home/ubuntu/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
/home/ubuntu/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
In file included from /home/ubuntu/gspcav1-20071224/gspca_core.c:856:
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function
/home/ubuntu/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/ubuntu/gspcav1-20071224/gspca_core.c:2466: error: implicit declaration of function ‘video_usercopy’
/home/ubuntu/gspcav1-20071224/gspca_core.c: At top level:
/home/ubuntu/gspcav1-20071224/gspca_core.c:2612: error: unknown field ‘owner’ specified in initializer
/home/ubuntu/gspcav1-20071224/gspca_core.c:2612: warning: initialization from incompatible pointer type
/home/ubuntu/gspcav1-20071224/gspca_core.c:2614: error: unknown field ‘type’ specified in initializer
/home/ubuntu/gspcav1-20071224/gspca_core.c:2618: warning: initialization from incompatible pointer type
/home/ubuntu/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/ubuntu/gspcav1-20071224/gspca_core.c:2772: error: implicit declaration of function ‘video_device_create_file’
/home/ubuntu/gspcav1-20071224/gspca_core.c:2783: error: implicit declaration of function ‘video_device_remove_file’
/home/ubuntu/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/ubuntu/gspcav1-20071224/gspca_core.c:4314: error: incompatible types when assigning to type ‘struct device’ from type ‘struct device *’
make[2]: *** [/home/ubuntu/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/home/ubuntu/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-20-generic'
make: *** [default] Error 2
Σημείωση το build μπορώ να το κάνω μέσω της εντολής m-a σωστά;
έτσι για να μαθαίνω κιόλας.