pwc
[Top] [All Lists]

Re: [pwc] pwc-ioctl.h

To: Philips Webcam Linux Driver <>
Subject: Re: [pwc] pwc-ioctl.h
From: Luc Saillard <>
Date: Fri, 24 Feb 2006 10:08:54 +0100
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

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU