Date: Sat, 13 Oct 2007 21:01:47 +0200 From: Heiko Recktenwald <heikorecktenwald@googlemail.com> To: Jeremy Messenger <mezz7@cox.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: multimedia/setpwc etc Message-ID: <4711161B.1040704@uni-bonn.de> In-Reply-To: <op.tz5aj2ea9aq2h7@mezz.mezzweb.com> References: <4709E898.706@uni-bonn.de> <op.tzv08sjp9aq2h7@mezz.mezzweb.com> <470BFFB2.8000500@uni-bonn.de> <20071010083828.jbheis3em8ockg4o@0x20.net> <470C7F7A.1080200@gmail.com> <20071010101425.iqz40wmlc0cw0cok@0x20.net> <471099ED.6090600@uni-bonn.de> <op.tz5aj2ea9aq2h7@mezz.mezzweb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
All: Jeremy Messenger wrote: > On Sat, 13 Oct 2007 05:11:57 -0500, Heiko Recktenwald > <uzs106@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4711161B.1040704>