On Thu, Feb 23, 2006 at 05:40:19PM +0100, Lars Andre Sunde wrote:
>
> Hi,
>
> Finally have managed to install the pwc driver after alot of difficulty but
> still left with a small problems, I have two questions;
>
> # Anyone else have any problem with pwc-ioctl.h ?
>
> Created this simple piece of 'code'
>
> #include <stdio.h>
> #include <stdlib.h>
> #include "pwc-ioctl.h"
>
> int main()
> {
> printf("Starting application\n");
> return 0;
> }
>
> Try to compile it I get this;
> video]# g++ -I/usr/pwc -o example example.cc
> In file included from example.cc:10:
> /usr/pwc/pwc-ioctl.h:315: error: '__le16' is used as a type, but is not
> defined as a type.
> /usr/pwc/pwc-ioctl.h:316: error: '__le16' is used as a type, but is not
> defined as a type.
> video]#
> Do I need to fix the header? How?
__le16 has been defined in newer kernel (perhaps 2.6.13+), if you don't have
__le16, replace it by __u16.
> # Another thing, after running 'make install' the pwc.ko file is copied to
> /lib/modules/2.6.10/kernel/drivers/usb/media/pwc.ko
> but all the pwc.h and pwc.o files are still located in /usr/pwc which is the
> folder I unpacked the source into but I've noticed that
> http://www.saillard.org/linux/pwc/ there is a list of all the header and
> source file in drivers/usb/media/pwc/ folder. Have I missed a part of the
> installation? Where should all the pwc* header, source and object files be
> located after install? (hope that made sense).
make install only install the kernel module. Why do you want to copy the
kernel headers (temp object file) and where ?
Luc
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|