Bonjour, Désolé, je réponds un peu en retard... J'ai donc suivi ton conseil et j'arrive à peu près à la même conclusion... 1. Je compile em28xx et em2880-dvb. Tout se passe bien. 2. Je lance la procédure indiquée par Markus : p3010-ac-nantes:/opt/v4l-dvb-merge/v4l# make kernel-links cd ..; v4l/scripts/makelinks.sh /lib/modules/2.6.18-1-686/build patching /lib/modules/2.6.18-1-686/build... mkdir: created directory `/lib/modules/2.6.18-1-686/build/Documentation' mkdir: created directory `/lib/modules/2.6.18-1-686/build/Documentation/dvb' mkdir: created directory `/lib/modules/2.6.18-1-686/build/Documentation/video4li nux' mkdir: created directory `/lib/modules/2.6.18-1-686/build/Documentation/video4li nux/bttv' mkdir: created directory `/lib/modules/2.6.18-1-686/build/Documentation/video4li nux/cx2341x' mkdir: created directory `/lib/modules/2.6.18-1-686/build/Documentation/video4li nux/cx88' 3. Je tente la compilation de spca5xx : p3010-ac-nantes:/opt/spca5xx-20060501# make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/opt/spca5xx-20060501 CC=cc module s make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.18-1-686 » CC [M] /opt/spca5xx-20060501/drivers/usb/spca5xx.o /opt/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_open’: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:2392: warning: implicit declaration of function ‘video_devdata’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:2392: warning: initialization makes pointer from integer without a cast /opt/spca5xx-20060501/drivers/usb/spca5xx.c:2397: warning: implicit declaration of function ‘video_get_drvdata’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:2397: warning: initialization makes pointer from integer without a cast /opt/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_close’: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:2487: warning: initialization makes pointer from integer without a cast /opt/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_do_ioctl’: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:2547: warning: initialization makes pointer from integer without a cast /opt/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_ioctl’: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3091: warning: implicit declaration of function ‘video_usercopy’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_read’: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3110: warning: initialization makes pointer from integer without a cast /opt/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_mmap’: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3209: warning: initialization makes pointer from integer without a cast /opt/spca5xx-20060501/drivers/usb/spca5xx.c: At top level: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3261: error: variable ‘spca50x_templ ate’ has initializer but incomplete type /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3262: error: unknown field ‘owner’ s pecified in initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3262: warning: excess elements in st ruct initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3262: warning: (near initialization for ‘spca50x_template’) /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3263: error: unknown field ‘name’ sp ecified in initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3263: warning: excess elements in st ruct initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3263: warning: (near initialization for ‘spca50x_template’) /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3264: error: unknown field ‘type’ sp ecified in initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3264: warning: excess elements in st ruct initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3264: warning: (near initialization for ‘spca50x_template’) /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3265: error: unknown field ‘hardware ’ specified in initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3265: warning: excess elements in st ruct initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3265: warning: (near initialization for ‘spca50x_template’) /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3266: error: unknown field ‘fops’ sp ecified in initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3266: warning: excess elements in st ruct initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3266: warning: (near initialization for ‘spca50x_template’) /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3268: error: unknown field ‘release’ specified in initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3268: error: ‘video_device_release’ undeclared here (not in a function) /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3268: warning: excess elements in st ruct initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3268: warning: (near initialization for ‘spca50x_template’) /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3270: error: unknown field ‘minor’ s pecified in initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3270: warning: excess elements in st ruct initializer /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3270: warning: (near initialization for ‘spca50x_template’) /opt/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘cd_to_spca50x’: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3338: warning: implicit declaration of function ‘to_video_device’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3338: warning: initialization makes pointer from integer without a cast /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3339: warning: return makes pointer from integer without a cast /opt/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca50x_create_sysfs’: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:3448: warning: implicit declaration of function ‘video_device_create_file’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_probe’: /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5504: warning: implicit declaration of function ‘video_device_alloc’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5504: warning: assignment makes poin ter from integer without a cast /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5507: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5507: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5507: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5509: error: dereferencing pointer t o incomplete type /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5511: warning: implicit declaration of function ‘video_set_drvdata’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5516: warning: implicit declaration of function ‘video_register_device’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: ‘VFL_TYPE_GRABBER’ unde clared (first use in this function) /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: (Each undeclared identi fier is reported only once /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: for each function it ap pears in.) /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5545: error: dereferencing pointer t o incomplete type /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5546: warning: implicit declaration of function ‘video_device_release’ /opt/spca5xx-20060501/drivers/usb/spca5xx.c:5548: warning: implicit declaration of function ‘video_unregister_device’ make[2]: *** [/opt/spca5xx-20060501/drivers/usb/spca5xx.o] Erreur 1 make[1]: *** [_module_/opt/spca5xx-20060501] Erreur 2 make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.18-1-686 » make: *** [default] Erreur 2 Bref, retour au point de départ !!! David. Le samedi 11 novembre 2006 à 14:41 +0100, "Gérald Sédrati-Dinet (gibus)" a écrit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > David, j'ai exactement le même problème de compatibilité entre spca5xx > et em28xx. > > J'ai vu que dans le Makefile de v4l-dvb/v4l (dernière version obtenue > par hg clone http://linuxtv.org/hg/~mrechberger/v4l-dvb), on pouvait faire : > > make kernel-links > > ce qui modifiait des fichiers .h dans l'arborescence du noyau > (/usr/src/linux-headers-2.6.18-2-k7) en créant des liens symboliques > vers les sources de v4l (/usr/src/v4l-dvb/v4l/). > > J'imagine que c'est de cela dont te parlait le développeur de em28xx. > > Je pensais qu'ensuite une recompilation du module spca5xx utiliserait la > partie video apportée par em28xx et que cela résoudrait les problèmes de > compatibilité. Mais en refaisant un : > > module-assistant build spca5xx > > j'ai maintenant des erreurs de compilation (cf. ci-dessous). Je ne sais > pas trop comment avancer à partir de là... > > PS: je ne suis pas abonné à debian-user-french, merci de me répondre en > privé si quelqu'un a une solution. > > __cut log du module-assistant build spca5xx__ > > # Build the module > /usr/bin/make -C /usr/src/modules/spca5xx KERNEL_VERSION=2.6.18-2-k7 > KERNELDIR=/lib/modules/2.6.18-2-k7/build > make[2]: entrant dans le répertoire « /usr/src/modules/spca5xx » > Building SPCA5XX driver for 2.5/2.6 kernel. > Remember: you must have read/write access to your kernel source tree. > /usr/bin/make -C /lib/modules/2.6.18-2-k7/build > SUBDIRS=/usr/src/modules/spca5xx CC=gcc-4.1 modules > make[3]: entrant dans le répertoire « /usr/src/linux-headers-2.6.18-2-k7 » > CC [M] /usr/src/modules/spca5xx/drivers/usb/spca5xx.o > CC [M] /usr/src/modules/spca5xx/drivers/usb/spcadecoder.o > In file included from include/linux/videodev.h:8, > from /usr/src/modules/spca5xx/drivers/usb/spca5xx.h:12, > from /usr/src/modules/spca5xx/drivers/usb/spcadecoder.h:5, > from /usr/src/modules/spca5xx/drivers/usb/spcadecoder.c:36: > include/linux/videodev2.h:19:5: warning: "LINUX_VERSION_CODE" is not defined > include/linux/videodev2.h:19:26: warning: "KERNEL_VERSION" is not defined > include/linux/videodev2.h:19:40: error: missing binary operator before > token "(" > include/linux/videodev2.h:22:5: warning: "LINUX_VERSION_CODE" is not defined > include/linux/videodev2.h:22:26: warning: "KERNEL_VERSION" is not defined > include/linux/videodev2.h:22:40: error: missing binary operator before > token "(" > include/linux/videodev2.h:77:5: warning: "LINUX_VERSION_CODE" is not defined > include/linux/videodev2.h:77:27: warning: "KERNEL_VERSION" is not defined > include/linux/videodev2.h:77:41: error: missing binary operator before > token "(" > include/linux/videodev2.h:90:5: warning: "LINUX_VERSION_CODE" is not defined > include/linux/videodev2.h:90:26: warning: "KERNEL_VERSION" is not defined > include/linux/videodev2.h:90:40: error: missing binary operator before > token "(" > include/linux/videodev2.h:114:5: warning: "LINUX_VERSION_CODE" is not > defined > include/linux/videodev2.h:114:26: warning: "KERNEL_VERSION" is not defined > include/linux/videodev2.h:114:40: error: missing binary operator before > token "(" > include/linux/videodev2.h:119:5: warning: "LINUX_VERSION_CODE" is not > defined > include/linux/videodev2.h:119:26: warning: "KERNEL_VERSION" is not defined > include/linux/videodev2.h:119:40: error: missing binary operator before > token "(" > include/linux/videodev2.h:124:5: warning: "LINUX_VERSION_CODE" is not > defined > include/linux/videodev2.h:124:27: warning: "KERNEL_VERSION" is not defined > include/linux/videodev2.h:124:41: error: missing binary operator before > token "(" > In file included from /usr/src/modules/spca5xx/drivers/usb/spca5xx.h:12, > from /usr/src/modules/spca5xx/drivers/usb/spcadecoder.h:5, > from /usr/src/modules/spca5xx/drivers/usb/spcadecoder.c:36: > include/linux/videodev.h:16:5: warning: "LINUX_VERSION_CODE" is not defined > include/linux/videodev.h:16:26: warning: "KERNEL_VERSION" is not defined > include/linux/videodev.h:16:40: error: missing binary operator before > token "(" > /usr/src/modules/spca5xx/drivers/usb/spcadecoder.c: In function ‘fun_D’: > /usr/src/modules/spca5xx/drivers/usb/spcadecoder.c:809: warning: value > computed is not used > make[4]: *** [/usr/src/modules/spca5xx/drivers/usb/spcadecoder.o] Erreur 1 > make[3]: *** [_module_/usr/src/modules/spca5xx] Erreur 2 > make[3]: quittant le répertoire « /usr/src/linux-headers-2.6.18-2-k7 » > make[2]: *** [default] Erreur 2 > make[2]: quittant le répertoire « /usr/src/modules/spca5xx » > make[1]: *** [binary-modules] Erreur 2 > make[1]: quittant le répertoire « /usr/src/modules/spca5xx » > make: *** [kdist_build] Erreur 2 > > __cut log du module-assistant build spca5xx__ > - -- > Gérald Sédrati-Dinet > Président de la FFII France et vice-président de la FFII > http://www.ffii.fr/ > http://www.ffii.org/
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=