motion-3.2.12 does not work with bktr

Cpet Services cpetservice at gmail.com
Thu Oct 18 18:15:09 UTC 2012


I will look into this and take into account Matt's modifications.

Chris

On Thu, Oct 18, 2012 at 10:18 AM, Alex V. Petrov <alexvpetrov at gmail.com>wrote:

> With this:
>
> cc -O2 -pipe -fno-strict-aliasing -I/usr/local/include -O2 -pipe
> -fno-strict-aliasing -D_REENTRANT -D_THREAD_SAFE -DHAVE_FFMPEG
> -I/usr/local/include/ffmpeg -DHAVE_FFMPEG_NEW -DMOTION_V4L2
> -DTYPE_32BIT="int" -DHAVE_BSWAP    -Wall -DVERSION=\"3.2.12\"
> -Dsysconfdir=\"/usr/local/etc\"  -I/usr/local/include  -c -o alg.o
> alg.c
> track.c: In function 'uvc_center':
> track.c:587: error: storage size of 'control_s' isn't known
> track.c:589: error: 'V4L2_CID_PRIVATE_BASE' undeclared (first use in
> this function)
> track.c:589: error: (Each undeclared identifier is reported only once
> track.c:589: error: for each function it appears in.)
> track.c:592: error: 'VIDIOC_S_CTRL' undeclared (first use in this function)
> track.c:601: error: storage size of 'queryctrl' isn't known
> track.c:605: error: 'VIDIOC_QUERYCTRL' undeclared (first use in this
> function)
> track.c:601: warning: unused variable 'queryctrl'
> track.c:587: warning: unused variable 'control_s'
> track.c:636: error: storage size of 'control_s' isn't known
> track.c:636: warning: unused variable 'control_s'
> track.c: In function 'uvc_move':
> track.c:724: error: storage size of 'control_s' isn't known
> track.c:726: error: 'V4L2_CID_PRIVATE_BASE' undeclared (first use in
> this function)
> track.c:729: error: 'VIDIOC_S_CTRL' undeclared (first use in this function)
> track.c:724: warning: unused variable 'control_s'
> track.c:779: error: storage size of 'control_s' isn't known
> track.c:779: warning: unused variable 'control_s'
> gmake: *** [track.o] Ошибка 1
> gmake: *** Ожидание завершения заданий...
> *** [do-build] Error code 1
>
> Stop in /usr/ports/multimedia/motion.
> *** [build] Error code 1
>
> Stop in /usr/ports/multimedia/motion.
>
> 2012/10/18 Matt Dawson <matt at chronos.org.uk>:
> > On Thu, 18 Oct 2012 12:00:01 +0000
> > Cpet Services <cpetservice at gmail.com> wrote:
> >
> >> Going to need a little more info that the info provided. Also the
> >> issue mentioned sounds like a perm issue rather an issue with motion.
> >
> > It isn't. It is counter-intuitive but to have bktr/meteor code work
> > for local sources one has to let the V4L code compile or it won't work
> > at all, even with the BKTR option enabled. In the Makefile, remove the
> > line CFLAGS+= -DWITHOUT_V4L, to make the PWCBSD conditional look like
> > this:
> >
> > .if ${PORT_OPTIONS:MPWCBSD}
> > BUILD_DEPENDS+=
> > v4l_compat>=1.0.20060801:${PORTSDIR}/multimedia/v4l_compat
> > RUN_DEPENDS+=   /boot/modules/pwc.ko:${PORTSDIR}/multimedia/pwcbsd
> > CONFIGURE_ARGS+=--with-pwcbsd
> > .else
> > CONFIGURE_ARGS+=--without-pwcbsd
> > .endif
> >
> > The port as it stands is useless for bktr without the Makefile hack.
> > --
> > Matt Dawson
> > MTD15-RIPE
> > GW0VNR
> > _______________________________________________
> > freebsd-multimedia at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> > To unsubscribe, send any mail to "
> freebsd-multimedia-unsubscribe at freebsd.org"
>
>
>
> --
> ----------------------
> Alex V. Petrov
> _______________________________________________
> freebsd-multimedia at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to "
> freebsd-multimedia-unsubscribe at freebsd.org"
>



-- 
--------------------------------------------------------
Chris Petrik
FreeBSD Contributor
Reincarnated
cpet on irc


More information about the freebsd-multimedia mailing list