multimedia/setpwc etc
Heiko Recktenwald
heikorecktenwald at googlemail.com
Sat Oct 13 12:03:28 PDT 2007
All:
Jeremy Messenger wrote:
> 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!
>>>
Seems to work!! My framerate was 5!!
Btw, there is a very enthusiastic webpage of a setpwc user, an
astro-photographer, at
http://uk.geocities.com/greg.beeke@btinternet.com/PWC.htm
with a lot of links at the bottom of the page.
>>>> 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.
>
The Makefile should look like
<<
VERSION=1.2
CFLAGS+=-Wall -O2 -DVERSION=\"$(VERSION)\" -I${LOCALBASE}/include
LDFLAGS=-L${LOCALBASE}/lib
<...>
>>
?
But I dont know enough of the ports system, how to write "patches" etc,
to submit it yet.
Maybe later ;-)
Best and thanks,
H.
More information about the freebsd-multimedia
mailing list