> make install only install the kernel module. Why do you want to copy the
> kernel headers (temp object file) and where ?
> 
> Luc

Hi Luc,

I'd like develope an application that access the pwc web-cam video stream using 
c++. After successfully installing the driver I wanted to make a proto_type 
program to try and read some data from the web-camera. In Kenneth Lavrsen's API 
introduction it says to include
#include <linux/videodev.h>
#include <sys/ioctl.h>
#include "pwc-ioctl.h"

so I make the following source file

#include <stdio.h>
#include <stdlib.h>
#include <linux/videodev.h>
#include <sys/ioctl.h>
#include "pwc-ioctl.h"

int main()
{ 
printf("A PWC Application\n");
return 0;
}

The problem is the first time I try to compile it;
g++ -o example example.cc
I get "pwc-ioctl.h no such file or directory" error from the compiler. 

So then I add an include that points to the downloaded pwc-10.0.11 source code 
(where I know a copy of pwc-ioctl.h is located);
g++ -I/usr/pwc -o example example.cc
however this gives me
/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.
error message.

So if I'm not mistaken I need the pwc-ioctl.h to get access to the pwc-driver. 
Hope thats understandable? What am I doing wrong or not doing?

Appreciate some help.
_______________________________________________
pwc mailing list
[email protected]
http://lists.saillard.org/mailman/listinfo/pwc

Reply via email to