pwc
[Top] [All Lists]

Re: [pwc] Thank you +

To:
Subject: Re: [pwc] Thank you +
From:
Date: Mon, 17 Sep 2007 10:55:03 +0200 (CEST)
I had the same problem when trying to compile libpwc. The problem is
caused by /usr/include/linux/videodev2.h not including the correct time.h
header file for userspace.

Updating this file to a more recent version should fix the problem.

Alternatively you can manually modify this file to include the right
header file:

#ifndef __LINUX_VIDEODEV2_H
#define __LINUX_VIDEODEV2_H
#ifdef __KERNEL__
#include <linux/time.h>     /* need struct timeval */
#include <linux/compiler.h> /* need __user */
#else
#define __user
#include <sys/time.h>
#endif
#include <linux/types.h>


   Gert


Op Ma, 17 september, 2007 3:46 am schreef oliver:
> I would first like to say thanks for the driver, and all the
> resources on the pwc page. It's realy awsome. I recently acquired a SPC 900
> NC so I can play around with
> video like I use to do on windows,where I use to use a DVcam and DSPack
> components. I found the file capture.c(V4L example) very useful to get
> going and pwc-ioctl.h is just perfect.
>
> Now I do have I litlle problem : I found libpwc on the mailing list
> the other day, It looks cool, very practical for convertions and all. But
> it won't compile, if I type make I get :
>
> rm -f libpwc.o pwc-dec23.o pwc-kiara.o pwc-timon.o pwc-raw.o convert.o cc
> -c -g -Wall -fno-inline-functions-called-once libpwc.c pwc-dec23.c
> pwc-kiara.c pwc-timon.c pwc-raw.c convert.c In file included from
> /usr/include/linux/videodev.h:15,
> from libpwc.c:8: /usr/include/linux/videodev2.h:521: error: field
> ?timestamp? has
> incomplete type In file included from /usr/include/linux/videodev.h:15,
> from libpwc.h:29, from pwc-dec23.h:28, from pwc-dec23.c:29:
> /usr/include/linux/videodev2.h:521: error: field ?timestamp? has
> incomplete type make: *** [libpwc.a] Error 1
>
>
> I don't know what an "incomplete type" is so I am a little lost.
>
>
> regards
>
> oliver
>
> _______________________________________________
> pwc mailing list 
> http://lists.saillard.org/mailman/listinfo/pwc
>
>


_______________________________________________
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