Thanks, I now managed to compile libpwc, but now I have another problem : I am use to installing libs with apt-get and then compile with a -lthelib option. I am quite lost with .o and .a files on my hands. Is there any way I can install libpwc so I can use it easily, I have been trying to recompile testlibpwc.c myself without any success.
[EMAIL PROTECTED] wrote: > 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 pwc@lists.saillard.org >> http://lists.saillard.org/mailman/listinfo/pwc >> >> >> > > > _______________________________________________ > pwc mailing list > pwc@lists.saillard.org > http://lists.saillard.org/mailman/listinfo/pwc > > _______________________________________________ pwc mailing list pwc@lists.saillard.org http://lists.saillard.org/mailman/listinfo/pwc