pwc
[Top] [All Lists]

SV: [pwc] pwc-ioctl.h

To: Luc Saillard <>, Philips Webcam Linux Driver <>
Subject: SV: [pwc] pwc-ioctl.h
From: Lars Andre Sunde <>
Date: Fri, 24 Feb 2006 10:24:29 +0100 (CET)
> 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

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