On Wed, Oct 17, 2007 at 04:25:40PM +0100, Chris Green wrote:
> I'm new to webcams and to Fedora 7, I was using Slackware for many
> years until a couple of weeks ago.
>
> I am trying to build the pwc Philips video driver on my Fedora 7
> system which is running a 2.6.22.9-91.fc7 kernel. It's a 64 bit build
> if that's of relevance but it has all the 32-bit libraries and I'm,
> for example, running a 32-bit Firefox without problems.
>
> I'm following (approximately) the instructions at
> http://www.lavrsen.dk/twiki/bin/view/PWC/InstallationStandAloneModuleKernel2x6
>
> First question, it seems I don't need libpwc as well as pwc, or do I?
>
> I have downloaded pwc-10.0.11.tar.bz2, unpacked it, etc. and when I try
> 'make' I get a *lot* of errors (see below). Is this because pwc will
> only build with some kernel versions or am I missing something much
> simpler than that?
>
[snip long list of errors]
OK, I've fixed some of it....
You need to replace "linux/config.h" with "linux/autoconf.h"
You need to "#include <media/v4l2-dev.h>" in pwc_if.c
I'm now left with the following errors:-
make -C /lib/modules/2.6.22.9-91.fc7/source
SUBDIRS=/scratch/ins/camE/pwc-10.0.12-rc1 modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.9-91.fc7-x86_64'
CC [M] /scratch/ins/camE/pwc-10.0.12-rc1/pwc-if.o
/scratch/ins/camE/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_isoc_init':
/scratch/ins/camE/pwc-10.0.12-rc1/pwc-if.c:922: warning: assignment from
incompatible pointer type
/scratch/ins/camE/pwc-10.0.12-rc1/pwc-if.c: In function
'pwc_create_sysfs_files':
/scratch/ins/camE/pwc-10.0.12-rc1/pwc-if.c:1065: warning: ignoring return
value of 'video_device_create_file', declared with attribute warn_unused_result
/scratch/ins/camE/pwc-10.0.12-rc1/pwc-if.c:1066: warning: ignoring return
value of 'video_device_create_file', declared with attribute warn_unused_result
CC [M] /scratch/ins/camE/pwc-10.0.12-rc1/pwc-misc.o
CC [M] /scratch/ins/camE/pwc-10.0.12-rc1/pwc-ctrl.o
/scratch/ins/camE/pwc-10.0.12-rc1/pwc-ctrl.c: In function 'pwc_ioctl':
/scratch/ins/camE/pwc-10.0.12-rc1/pwc-ctrl.c:1288: error: dereferencing
pointer to incomplete type
make[2]: *** [/scratch/ins/camE/pwc-10.0.12-rc1/pwc-ctrl.o] Error 1
make[1]: *** [_module_/scratch/ins/camE/pwc-10.0.12-rc1] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.9-91.fc7-x86_64'
make: *** [all] Error 2
That's a bit more subtle than just a missing/incorrect header file I think,
any ideas anyone?
--
Chris Green
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|