multimedia/setpwc etc

Jeremy Messenger mezz7 at cox.net
Sat Oct 13 09:49:36 PDT 2007


On Sat, 13 Oct 2007 05:11:57 -0500, Heiko Recktenwald <uzs106 at uni-bonn.de>  
wrote:

> Solved! Not yet tested,  but it looks good so far!
>>
>>> From setpwc.c:
>>>
>>>
>>> #include <errno.h>
>>> #include <string.h>
>>> #include <stdio.h>
>>> #include <stdlib.h>
>>> #include <sys/ioctl.h>
>>> #include <sys/types.h>
>>> #include <sys/stat.h>
>>> #include <fcntl.h>
>>> #include <unistd.h>
>>> #define _LINUX_TIME_H 1 /* to get things compile on kernel 2.6.x */
>>> #include <linux/videodev.h>
>>>
>
> I simply replaced the last line with
>
> #include "/usr/local/include/linux/videodev.h"

It's not correct. You need to add -I${LOCALBASE}/include in the CFLAGS and  
possible -L${LOCALBASE}/lib in LDFLAGS if it needs.

Cheers,
Mezz

>>> #include "pwc-ioctl.h"
>
> Maybe my multimedia/v4l_compat installation is broken,  was allready  
> there, manually moved from from multimedia/bsdpwc/work/, maybe I have  
> to  add it manually to some list?
>
> Thanks to all!
>
> Best, H.


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia at FreeBSD.org


More information about the freebsd-multimedia mailing list