Donc j'ai refais le manip et je vous poste le code en entier:
[root@msr qc-usb-messenger-1.3]# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 003: ID 046d:08f0 Logitech, Inc. QuickCam Messenger
Bus 002 Device 002: ID 03f0:4811 Hewlett-Packard
[root@msr qc-usb-messenger-1.3]#
[client@msr qc-usb-messenger-1.3]$ ./quickcam.sh
-=- Logitech QuickCam USB camera driver installer -=-
Hello! I am the (hopefully) easy-to-use, fully automated
qc-usb driver installation script.
At the moment, this is experimental, and if it doesn't work,
don't hesitate to quit this with Ctrl+C and install the
driver manually.
The driver is provided in source code form, so it has to be
compiled. This should happen automatically, but it does mean
that there are some steps required before installation.
You also need to know "root" user password to test and
install the driver.
Basically you need only to keep hitting Enter whenever you
see this prompt: --->. Sometimes you're asked root password.
Pay special attention to lines beginning with [!].
It means that some trouble has been detected.
To most important location is the path to your kernel source
or headers. This can be guessed, but you can specify it by
giving it as an argument to this script like this:
./quickcam.sh LINUX_DIR=/usr/src/linux
If you haven't done it yet, now it would be a good moment to
take a look at file README.
Next I'm going to check if you have some important programs installed
and if they and the kernel are of suitable version.
Press Ctrl+C to quit, Enter to continue --->
/home/client/qc-usb-messenger-1.3/quickcam.sh
/usr/bin/whoami
/bin/su
/bin/ls
/bin/cat
/usr/bin/gcc
/usr/bin/gcc
/usr/bin/make
/bin/grep
/bin/egrep
/usr/bin/awk
/bin/sed
/usr/bin/tail
/usr/bin/head
/usr/bin/install
/usr/bin/ld
/bin/uname
/usr/bin/tr
which: no xawtv in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
Warning: xawtv missing
/usr/bin/xdpyinfo
/bin/dmesg
/usr/bin/wc
[!] Some important programs can not be found on default path.
Probably they aren't installed.
You should install them, for example, by using apt-get or rpm.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
which: no realpath in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
which: no realpath in (/usr/local/bin)
/usr/bin/readlink
gcc version: version gcc 4.1.1 20061011 (Red Hat 4.1.1-30)
gcc version: version gcc 4.1.1 20061011 (Red Hat 4.1.1-30)
Make version: GNU Make 3.81
Linker version: GNU ld version 2.17.50.0.3-6 20060715
Kernel compiler: gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)
[!] Kernel compiler and gcc seem to be different versions.
Instead, they should be the same. If you have many compilers
installed, you can specify the correct one with command (in bash)
export CC=kgcc
before trying to install the driver. Replace kgcc with the command
required for compiling kernels (kgcc is often used in Red Hat systems).
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
Looking for more necessary programs...
which: no depmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
Found program /sbin/depmod
which: no insmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
Found program /sbin/insmod
which: no rmmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
Found program /sbin/rmmod
which: no modprobe in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
Found program /sbin/modprobe
Found program /bin/mount
which: no lsusb in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
Found program /sbin/lsusb
depmod version: module-init-tools 3.3-pre1
insmod version: module-init-tools version 3.3-pre1
rmmod version: module-init-tools version 3.3-pre1
modprobe version: module-init-tools version 3.3-pre1
Checking whether we're root... client
Checking for driver source code...
Checking for write permission...
Previous round done. Now checking if you have kernel source installed.
Press Ctrl+C to quit, Enter to continue --->
which: no depmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
Kernel source directory: /lib/modules/2.6.18-1.2798.fc6/build
Detected kernel version is 2.6.x.
which: no depmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
which: no depmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
which: no depmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
[!] Multiple kernel versions specified in linux/version.h
This is probably a heavily modified Red Hat or other distributor
kernel, and the kernel version check doesn't work.
So we can not check if your kernel version is correct, so we
must just hope so.
Press Ctrl+C to quit, Enter to continue --->
Kernel version name:
Kernel source version code: 132626
Driver file name: quickcam.ko
Module install directory: /lib/modules/2.6.18-1.2798.fc6
which: no depmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
Driver source directory (PWD): /home/client/qc-usb-messenger-1.3
Kernel source directory (LINUX_DIR): /lib/modules/2.6.18-1.2798.fc6/build
Module install directory (MODULE_DIR): /lib/modules/2.6.18-1.2798.fc6
Utility install directory (PREFIX): /usr/local
User options (USER_OPT):
Driver file name (use with insmod): quickcam.ko
Kernel version code: 132626
The QuickCam driver requires other drivers from kernel.
I'll now check if those seem to be loaded.
Press Ctrl+C to quit, Enter to continue --->
Modules loaded into the kernel:
vfat fat autofs4 hidp l2cap bluetooth sunrpc dm_multipath video sbs i2c_ec button battery asus_acpi ac ipv6 parport_pc lp parport snd_usb_audio sg snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_seq_dummy snd_seq_oss tuner snd_seq_midi_event bttv snd_seq snd_pcm_oss video_buf ir_common usblp snd_mixer_oss floppy i2c_algo_bit btcx_risc tveeprom nvidia ide_cd cdrom snd_pcm snd_usb_lib snd_rawmidi skge i2c_nforce2 snd_seq_device quickcam_messenger snd_timer snd_hwdep usbvideo pcspkr i2c_core snd snd_page_alloc compat_ioctl32 soundcore videodev v4l1_compat v4l2_common serio_raw dm_snapshot dm_zero dm_mirror dm_mod sata_nv sata_sil libata sd_mod scsi_mod ext3 jbd ehci_hcd ohci_hcd uhci_hcd
[!] The QuickCam driver is already loaded!
You should first remove the (old?) module by issuing
rmmod mod_quickcam || rmmod quickcam
as root, otherwise I will fail to install the new module.
I will now try to unload it for you automatically,
if you just give me the root password (Ctrl+D to cancel):
Mot de passe :
=== Entering root mode ===
Trying to unload QuickCam driver...
ERROR: Module quickcam does not exist in /proc/modules
ERROR: Module mod_quickcam does not exist in /proc/modules
=== Leaving root mode ===
[!] QuickCam driver failed to unload.
It is not possible to install new version before unloading
the older version. Check that no application is using the
camera, using e.g.
lsof /dev/video0
or whatever is the camera device file.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
Next round: let's see if you have a supported QuickCam.
Please plug in your USB camera before continuing.
Press Ctrl+C to quit, Enter to continue --->
I can find the following probably compatible devices:
Bus 002 Device 003: ID 046d:08f0 Logitech, Inc. QuickCam Messenger
Another round done. Let's now compile the driver, it takes a while.
This step will also clear old unnecessary files from the directory.
Press Ctrl+C to quit, Enter to continue --->
which: no depmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
rm -f *.o qcset input_read show *~ .\#* .*.cmd *.mod.c *.ko
rm -rf .tmp_versions
cd testquickcam ; make clean
make[1]: entrant dans le répertoire « /home/client/qc-usb-messenger-1.3/testquickcam »
rm -f testquickcam *~ pic.ppm pic.gif
make[1]: quittant le répertoire « /home/client/qc-usb-messenger-1.3/testquickcam »
which: no depmod in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/client/bin)
make -C "/lib/modules/2.6.18-1.2798.fc6/build" SUBDIRS="/home/client/qc-usb-messenger-1.3" modules V=1 USER_OPT=""
make[1]: entrant dans le répertoire « /usr/src/kernels/2.6.18-1.2798.fc6-i686 »
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /home/client/qc-usb-messenger-1.3/.tmp_versions
rm -f /home/client/qc-usb-messenger-1.3/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/client/qc-usb-messenger-1.3
gcc -m32 -Wp,-MD,/home/client/qc-usb-messenger-1.3/.qc-driver.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -Os -pipe -msoft-float -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -mtune=generic -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fasynchronous-unwind-tables -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DNOKERNEL -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_driver)" -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /home/client/qc-usb-messenger-1.3/.tmp_qc-driver.o /home/client/qc-usb-messenger-1.3/qc-driver.c
Dans le fichier inclus à partir de /home/client/qc-usb-messenger-1.3/qc-driver.c:47:
/home/client/qc-usb-messenger-1.3/quickcam.h:93:26: erreur: linux/config.h : Aucun fichier ou répertoire de ce type
In file included from /home/client/qc-usb-messenger-1.3/qc-driver.c:47:
/home/client/qc-usb-messenger-1.3/quickcam.h:547: erreur: field 'vdev' has incomplete type
/home/client/qc-usb-messenger-1.3/qc-driver.c:91:2: attention : #warning "Little Endian system"
/home/client/qc-usb-messenger-1.3/qc-driver.c: In function 'qc_proc_read':
/home/client/qc-usb-messenger-1.3/qc-driver.c:875: erreur: 'UTS_RELEASE' undeclared (first use in this function)
/home/client/qc-usb-messenger-1.3/qc-driver.c:875: erreur: (Each undeclared identifier is reported only once
/home/client/qc-usb-messenger-1.3/qc-driver.c:875: erreur: for each function it appears in.)
/home/client/qc-usb-messenger-1.3/qc-driver.c: In function 'qc_v4l_poll':
/home/client/qc-usb-messenger-1.3/qc-driver.c:2533: erreur: implicit declaration of function 'video_devdata'
/home/client/qc-usb-messenger-1.3/qc-driver.c:2533: attention : initialization makes pointer from integer without a cast
/home/client/qc-usb-messenger-1.3/qc-driver.c:2535: erreur: déréférencement d'un pointeur de type incomplet
/home/client/qc-usb-messenger-1.3/qc-driver.c: In function 'qc_v4l_open':
/home/client/qc-usb-messenger-1.3/qc-driver.c:2585: attention : initialization makes pointer from integer without a cast
/home/client/qc-usb-messenger-1.3/qc-driver.c:2587: erreur: déréférencement d'un pointeur de type incomplet
/home/client/qc-usb-messenger-1.3/qc-driver.c: In function 'qc_v4l_close':
/home/client/qc-usb-messenger-1.3/qc-driver.c:2650: attention : initialization makes pointer from integer without a cast
/home/client/qc-usb-messenger-1.3/qc-driver.c:2652: erreur: déréférencement d'un pointeur de type incomplet
/home/client/qc-usb-messenger-1.3/qc-driver.c: In function 'qc_v4l_read':
/home/client/qc-usb-messenger-1.3/qc-driver.c:2698: attention : initialization makes pointer from integer without a cast
/home/client/qc-usb-messenger-1.3/qc-driver.c:2701: erreur: déréférencement d'un pointeur de type incomplet
/home/client/qc-usb-messenger-1.3/qc-driver.c: In function 'qc_v4l_mmap':
/home/client/qc-usb-messenger-1.3/qc-driver.c:2754: attention : initialization makes pointer from integer without a cast
/home/client/qc-usb-messenger-1.3/qc-driver.c:2758: erreur: déréférencement d'un pointeur de type incomplet
/home/client/qc-usb-messenger-1.3/qc-driver.c: In function 'qc_v4l_ioctl':
/home/client/qc-usb-messenger-1.3/qc-driver.c:2787: attention : initialization makes pointer from integer without a cast
/home/client/qc-usb-messenger-1.3/qc-driver.c:2790: erreur: déréférencement d'un pointeur de type incomplet
/home/client/qc-usb-messenger-1.3/qc-driver.c: Hors de toute fonction :
/home/client/qc-usb-messenger-1.3/qc-driver.c:3395: erreur: variable 'qc_v4l_template' has initializer but incomplete type
/home/client/qc-usb-messenger-1.3/qc-driver.c:3396: erreur: unknown field 'name' specified in initializer
/home/client/qc-usb-messenger-1.3/qc-driver.c:3396: attention : éléments en excès dans l'initialisation de la structure
/home/client/qc-usb-messenger-1.3/qc-driver.c:3396: attention : (near initialization for 'qc_v4l_template')
/home/client/qc-usb-messenger-1.3/qc-driver.c:3397: erreur: unknown field 'type' specified in initializer
/home/client/qc-usb-messenger-1.3/qc-driver.c:3397: attention : éléments en excès dans l'initialisation de la structure
/home/client/qc-usb-messenger-1.3/qc-driver.c:3397: attention : (near initialization for 'qc_v4l_template')
/home/client/qc-usb-messenger-1.3/qc-driver.c:3398: erreur: unknown field 'hardware' specified in initializer
/home/client/qc-usb-messenger-1.3/qc-driver.c:3398: attention : éléments en excès dans l'initialisation de la structure
/home/client/qc-usb-messenger-1.3/qc-driver.c:3398: attention : (near initialization for 'qc_v4l_template')
/home/client/qc-usb-messenger-1.3/qc-driver.c:3399: erreur: unknown field 'minor' specified in initializer
/home/client/qc-usb-messenger-1.3/qc-driver.c:3399: attention : éléments en excès dans l'initialisation de la structure
/home/client/qc-usb-messenger-1.3/qc-driver.c:3399: attention : (near initialization for 'qc_v4l_template')
/home/client/qc-usb-messenger-1.3/qc-driver.c:3401: erreur: unknown field 'release' specified in initializer
/home/client/qc-usb-messenger-1.3/qc-driver.c:3401: attention : éléments en excès dans l'initialisation de la structure
/home/client/qc-usb-messenger-1.3/qc-driver.c:3401: attention : (near initialization for 'qc_v4l_template')
/home/client/qc-usb-messenger-1.3/qc-driver.c:3402: erreur: unknown field 'fops' specified in initializer
/home/client/qc-usb-messenger-1.3/qc-driver.c:3402: attention : éléments en excès dans l'initialisation de la structure
/home/client/qc-usb-messenger-1.3/qc-driver.c:3402: attention : (near initialization for 'qc_v4l_template')
/home/client/qc-usb-messenger-1.3/qc-driver.c: In function 'qc_usb_init':
/home/client/qc-usb-messenger-1.3/qc-driver.c:3666: erreur: invalid application of 'sizeof' to incomplete type 'struct video_device'
/home/client/qc-usb-messenger-1.3/qc-driver.c:3666: erreur: invalid application of 'sizeof' to incomplete type 'struct video_device'
/home/client/qc-usb-messenger-1.3/qc-driver.c:3666: erreur: invalid application of 'sizeof' to incomplete type 'struct video_device'
/home/client/qc-usb-messenger-1.3/qc-driver.c:3670: erreur: implicit declaration of function 'video_register_device'
/home/client/qc-usb-messenger-1.3/qc-driver.c:3670: erreur: 'VFL_TYPE_GRABBER' undeclared (first use in this function)
/home/client/qc-usb-messenger-1.3/qc-driver.c:3706: erreur: implicit declaration of function 'video_unregister_device'
/home/client/qc-usb-messenger-1.3/qc-driver.c: In function 'qc_usb_probe':
/home/client/qc-usb-messenger-1.3/qc-driver.c:3877: erreur: 'UTS_RELEASE' undeclared (first use in this function)
make[2]: *** [/home/client/qc-usb-messenger-1.3/qc-driver.o] Erreur 1
make[1]: *** [_module_/home/client/qc-usb-messenger-1.3] Erreur 2
make[1]: quittant le répertoire « /usr/src/kernels/2.6.18-1.2798.fc6-i686 »
make: *** [quickcam.ko] Erreur 2
ls: quickcam.ko: Aucun fichier ou répertoire de ce type
[!] Looks like the driver compilation failed.
Did you get any error messages above?
If asking for help, show what error messages you got.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
[!] Looks like compilation of the utility programs failed.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
Now everything should be well and the driver compiled.
Let's then try actually loading the fresh driver and testing
if it works.
Press Ctrl+C to quit, Enter to continue --->
To load the driver, I need to know the root password.
Mot de passe :
=== Entering root mode ===
I will now try to enable the SysRq key.
If your computer crashes, you can try pressing:
Alt + SysRq + S: Emergency Sync (write everything on hard disk)
Alt + SysRq + U: Unmount all harddisks
Alt + SysRq + B: Reboot system immediately
Press Ctrl+C to quit, Enter to continue --->
Now I finally will try to load the module.
If you're unlucky, your computer might crash right now!!!!
Consider long if you really want to continue.
Press Ctrl+C to quit, Enter to continue --->
You decided to do it, here we go...
insmod: can't read './quickcam.ko': No such file or directory
=== Leaving root mode ===
The driver detected the following supported cameras:
[!] No cameras detected.
Try unloading and reloading the driver manually with
rmmod quickcam; insmod ./quickcam.ko debug=-1
and then checking whether there are any messages indicating
problems with command
dmesg
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
I will be using , if there are more cameras I'll not test them.
Press Ctrl+C to quit, Enter to continue --->
Testing if is correct.
ls: : Aucun fichier ou répertoire de ce type
./quickcam.sh: line 700: [: too many arguments
ls: : Aucun fichier ou répertoire de ce type
ls: : Aucun fichier ou répertoire de ce type
[!] major number is .
Usually it should be 81, so there are problems ahead.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
Right now driver is loaded and should be ready to run.
Let's test if user applications can see it, starting with qcset.
Press Ctrl+C to quit, Enter to continue --->
./quickcam.sh: line 733: ./qcset: Aucun fichier ou répertoire de ce type
[!] qcset did not found the QuickCam camera
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
If you like, you can quit now and start using the camera -
you have good chances that it works, if no problems were detected.
If you have X Window System running and xawtv installed,
I can now run it automatically for you.
You will then also have opportunity to install the driver permanently.
Press Ctrl+C to quit, Enter to continue --->
Launching xawtv (press q on xawtv window to quit it)...
If the image is not sharp, try focusing it by turning the
wheel around the camera lens.
xawtv -noscale -noxv -c ""
./quickcam.sh: line 754: xawtv: command not found
Well, did it work, did you get a picture?
If you did, you might now want to install the driver
permanently. Just proceed to do that...
Press Ctrl+C to quit, Enter to continue --->
Just an extra warning: the driver (quickcam.ko) and
the utility (qcset) will be now copied into system
directories. If you have already other versions,
they will be overwritten. Verify by giving root password.
Mot de passe :
J'ai arreter la vu que déja il y a echo " ERROR: Kernel configuration is invalid.";
Mais je comprend pas pk?
Merci