Hi, I downloaded the last version (pwc-10.0.6a) from http://www.saillard.org/linux/pwc/files/ and tried to compile it for SuSE 9.1 but I get errors. I installed the kernel sources, did a "make oldconfig" (is make cloneconfig better ?), had to make a link to a symbols file (don't remember exactly). That's what is output : kllap:/home/koenraad/webcam/pwc-10.0.6a # make make -C /lib/modules/2.6.5-7.151-default/source SUBDIRS=/home/koenraad/webcam/pwc-10.0.6a modules make[1]: Entering directory `/usr/src/linux-2.6.5-7.151' CC [M] /home/koenraad/webcam/pwc-10.0.6a/pwc-if.o /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c: In function `pwc_isoc_cleanup': /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:937: warning: implicit declaration of function `usb_kill_urb' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c: At top level: /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: error: parse error before numeric constant /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: type defaults to `int' in declaration of `module_param_named' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: type defaults to `int' in declaration of `module_param_array' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: error: parse error before numeric constant /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: type defaults to `int' in declaration of `module_param_array' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2077: warning: `leds_nargs' defined but not used /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2079: warning: `dev_hint_nargs' defined but not used make[2]: *** [/home/koenraad/webcam/pwc-10.0.6a/pwc-if.o] Error 1 make[1]: *** [_module_/home/koenraad/webcam/pwc-10.0.6a] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.5-7.151' make: *** [default] Error 2 kllap:/home/koenraad/webcam/pwc-10.0.6a # I googled, but didn't find much. One thing that might help : my gcc is version 3.3.3 (standard installation from DVD). In one message from google, I read that the module should be compiled with the same compiler the kernel had been compiled with. How do I check this ? Any suggestions, pointers ? TIA -- Met vriendelijke groeten, Koenraad Lelong R&D Manager ACE electronics n.v.
Koenraad Lelong wrote: snip
I googled, but didn't find much. One thing that might help : my gcc is version 3.3.3 (standard installation from DVD). In one message from google, I read that the module should be compiled with the same compiler the kernel had been compiled with. How do I check this ? Any suggestions, pointers ? TIA
I would first suggest, that you should be a member of the Motion mailinglist: http://lists.frogtown.com/cgi-bin/mailman/listinfo/motion Then You can try to go on this site: http://www.lavrsen.dk/twiki/bin/view/PWC/WebHome?CGISESSID=537dabf07af2782d5f6f967e1316b7e8&CGISESSID=537dabf07af2782d5f6f967e1316b7e8 Its intended for pwc. This site here is also having a guide "The Motion Guide". http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome HTH Erik Jakobsen. BTW. I use a Creative Quickcam Pro 4000 controlled by motion
Erik Jakobsen wrote:
Koenraad Lelong wrote:
snip
I googled, but didn't find much. One thing that might help : my gcc is version 3.3.3 (standard installation from DVD). In one message from google, I read that the module should be compiled with the same compiler the kernel had been compiled with. How do I check this ? Any suggestions, pointers ? TIA
I would first suggest, that you should be a member of the Motion mailinglist:
http://lists.frogtown.com/cgi-bin/mailman/listinfo/motion
Then You can try to go on this site:
Its intended for pwc.
This site here is also having a guide "The Motion Guide".
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
HTH
Erik Jakobsen.
BTW. I use a Creative Quickcam Pro 4000 controlled by motion
If you are happy with rolling your own kernel. The pwc support was pulled by the owner some months ago, Alan Cox now supports it in his 2.6.x-ac? kernels and it's back in 2.6.12-rc1, the 2.6.12-rc1 has a problem with my CH Products USB Yoke and Pedals, they are seen, but don't work, the other USB stuff, card reader, printer and scanner work, so I backed off to 2.6.11.6. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired Large IBM and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux for all Computing Tasks
Koenraad Lelong a écrit :
Hi, I downloaded the last version (pwc-10.0.6a) from http://www.saillard.org/linux/pwc/files/ and tried to compile it for SuSE 9.1 but I get errors. I installed the kernel sources, did a "make oldconfig" (is make cloneconfig better ?), had to make a link to a symbols file (don't remember exactly). That's what is output : kllap:/home/koenraad/webcam/pwc-10.0.6a # make make -C /lib/modules/2.6.5-7.151-default/source SUBDIRS=/home/koenraad/webcam/pwc-10.0.6a modules make[1]: Entering directory `/usr/src/linux-2.6.5-7.151' CC [M] /home/koenraad/webcam/pwc-10.0.6a/pwc-if.o /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c: In function `pwc_isoc_cleanup': /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:937: warning: implicit declaration of function `usb_kill_urb' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c: At top level: /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: error: parse error before numeric constant /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: type defaults to `int' in declaration of `module_param_named' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: type defaults to `int' in declaration of `module_param_array' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: error: parse error before numeric constant /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: type defaults to `int' in declaration of `module_param_array' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2077: warning: `leds_nargs' defined but not used /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2079: warning: `dev_hint_nargs' defined but not used make[2]: *** [/home/koenraad/webcam/pwc-10.0.6a/pwc-if.o] Error 1 make[1]: *** [_module_/home/koenraad/webcam/pwc-10.0.6a] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.5-7.151' make: *** [default] Error 2 kllap:/home/koenraad/webcam/pwc-10.0.6a #
I googled, but didn't find much. One thing that might help : my gcc is version 3.3.3 (standard installation from DVD). In one message from google, I read that the module should be compiled with the same compiler the kernel had been compiled with. How do I check this ? Any suggestions, pointers ? TIA
Hi, I compiled it on my 9.2, but it should also work on 9.1 : 1) install kernel sources 2) issue the following commands : # cd /usr/src/linux # make clean # make mrproper # make cloneconfig # make prepare-all now you are ready to build extra modules for your kernel 3) cd to the pwc-10.0.6a directory and issue # make # make install That's it. William. -- --------------------------------------------------------- William Daniau Research Engineer FEMTO-ST Dept LPMO Tel : +33 (0) 381 85 39 69 Fax : +33 (0) 381 85 39 98 email : wdaniau@femto-st.fr ---------------------------------------------------------
William Daniau wrote:
Koenraad Lelong a écrit :
Hi, I downloaded the last version (pwc-10.0.6a) from http://www.saillard.org/linux/pwc/files/ and tried to compile it for SuSE 9.1 but I get errors. I installed the kernel sources, did a "make oldconfig" (is make cloneconfig better ?), had to make a link to a symbols file (don't remember exactly). That's what is output : kllap:/home/koenraad/webcam/pwc-10.0.6a # make make -C /lib/modules/2.6.5-7.151-default/source SUBDIRS=/home/koenraad/webcam/pwc-10.0.6a modules make[1]: Entering directory `/usr/src/linux-2.6.5-7.151' CC [M] /home/koenraad/webcam/pwc-10.0.6a/pwc-if.o /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c: In function `pwc_isoc_cleanup': /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:937: warning: implicit declaration of function `usb_kill_urb' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c: At top level: /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: error: parse error before numeric constant /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: type defaults to `int' in declaration of `module_param_named' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: type defaults to `int' in declaration of `module_param_array' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: error: parse error before numeric constant /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: type defaults to `int' in declaration of `module_param_array' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2077: warning: `leds_nargs' defined but not used /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2079: warning: `dev_hint_nargs' defined but not used make[2]: *** [/home/koenraad/webcam/pwc-10.0.6a/pwc-if.o] Error 1 make[1]: *** [_module_/home/koenraad/webcam/pwc-10.0.6a] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.5-7.151' make: *** [default] Error 2 kllap:/home/koenraad/webcam/pwc-10.0.6a #
I googled, but didn't find much. One thing that might help : my gcc is version 3.3.3 (standard installation from DVD). In one message from google, I read that the module should be compiled with the same compiler the kernel had been compiled with. How do I check this ? Any suggestions, pointers ? TIA
Hi,
I compiled it on my 9.2, but it should also work on 9.1 : 1) install kernel sources 2) issue the following commands : # cd /usr/src/linux # make clean # make mrproper # make cloneconfig # make prepare-all
now you are ready to build extra modules for your kernel
3) cd to the pwc-10.0.6a directory and issue # make # make install
That's it.
William.
Then modprobe pwc Erik
Erik Jakobsen wrote:
William Daniau wrote:
Koenraad Lelong a écrit :
Hi, I downloaded the last version (pwc-10.0.6a) from http://www.saillard.org/linux/pwc/files/ and tried to compile it for SuSE 9.1 but I get errors. ...
Hi,
I compiled it on my 9.2, but it should also work on 9.1 : 1) install kernel sources 2) issue the following commands : # cd /usr/src/linux # make clean # make mrproper # make cloneconfig # make prepare-all
now you are ready to build extra modules for your kernel
3) cd to the pwc-10.0.6a directory and issue # make # make install
That's it.
William.
Then modprobe pwc
Erik
Last weekend I built my first kernel (2.6.10). With that I could compile pwc. I believe you need a kernel more recent than 2.6.5 of Suse9.1. And I just had to plug the webcam in the USB-port, the rest went automagically. Xine did not work (something like 'overlays not supported'), but Motion and Camstream run fine. Thanks anyway. -- Met vriendelijke groeten, Koenraad Lelong R&D Manager ACE electronics n.v.
participants (4)
-
Erik Jakobsen
-
Koenraad Lelong
-
Sid Boyce
-
William Daniau