Motion - Free BSD Fix Compile

FreeBSD Fix Compile

Problem description

When you try to compile FreeBSD version of motion without bktr support ( V4L in linux ) passing --without-v4l to configure , make don't work raising an error about some not defined vales METEOR_* that's because the headers files containing METEOR_*_* values are not included due are not needed without bktr.

If you have ffmpeg installed but don't have lame library motion fails to compile :

/usr/bin/ld: cannot find -lmp3lame

So i've updated the patch to solve that in configure.in.freebsd excluding -lmp3lame, configure.in ( linux version ) had that issue fixed already, so i guess now both configure.in are synchronised.

Solution

Apply this patch , How ? ( see below ):

  1. -. Get & descompress the patch gunzip freeBSD-patch--without-v4l.diff.gz
  2. -. Apply the patch tar xfvz motion-3.1.16.tar.gz ; cd motion-3.1.16 ; patch -p1 < ../freeBSD-patch--without-v4l.diff
  3. -. Configure & Build motion for FreeBSD cp configure.in.freebsd configure.in ; autoconf ; ./configure --without-v4l ; make ; make install

-- AngelCarpintero - 27 Sep 2004

Comments

A great patch by Angel, this works fantastic, very good.

-- RuyNeto - 30 Sep 2004

Patch has been implented on my source tree and will for sure be part of 3.1.17.

-- KennethLavrsen - 01 Oct 2004
Topic revision: r9 - 14 Oct 2004, KennethLavrsen
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.