On Mon, 8 Aug 2005, Dik Takken wrote:

> Wow, that's interesting. I tried recompiling SMILUtils 0.3.0 on 
> Gentoo Linux using these configure options:

> ./configure --prefix=/usr --with-avcodec --with-ffmpeg=/usr/include/ffmpeg 
> --enable-mp3lame --enable-vorbis --disable-dependency-tracking

        Well, there are a couple problems with that.  For one thing 0.3.0
        is quite old.  Last release was 0.3.1 and the cvs version is quite
        a bit newer than 0.3.1 - just hasn't been a release recently (not
        sure where Charlie Yates has wandered off to ;)).

        The other thing is that building smilutils with libavcodec used the
        SOURCE tree of ffmpeg, not an 'installed' ffmpeg.  Basically you'd
        do a 'make' of ffmpeg but leave the .a file (do not do a 'make clean').
        Then something like:

--with-avcodec --with-avcodec-include=/usr/local/src/ffmpeg/libavcodec

> I do have ffmpeg installed, and its headers really are in 
> /usr/include/ffmpeg. Unfortunately, compilation fails:

        Until this weekend it was not possible to build smilutils against
        an "installed" ffmpeg.

        However, ffmpeg has changed (in the spirit of "if it's working fix
        it anyway" ;)) recently.  'installed' versions of ffmpeg are now
        'pkg-config' enabled which makes it possible for (cvs version) of
        smilutils to build more easily using ffmpeg.

> Does anybody know how to compile SMILUtils 0.3.0 with ffmpeg support?

        First step would be Update to something newer - both smilutils and
        ffmpeg (or are you currently using the cvs version of ffmpeg?) ;)

        With the cvs versions of ffmpeg and smilutils present it is now
        easier to build smilutils+libavcodec.  You may either build, as
        before, against the static ffmpeg source tree version (as before) OR
        against the installed version.

        NOW a simple

                --with-avcodec

        will look for the PKG-CONFIG file from ffmpeg.  But if you want to
        build against the installed (perhaps shared) version then specify
        the source tree location (where the .a and .h files are located) with

                --with-avcodec=/usr/local/src/ffmpeg/libavcodec

        Perhaps the comment I added to smilutil's configure.ac file will
        explain the situation better:

# Try it the easy way first.  If --with-avcodec is used with no argument then
# look for the installed pkg-config based version of libavcodec.  If an arg
# was given then use it as a complete prefix to where libavcodec.a and .h files
# are (basically take over both the old --avcodec-include and -libs options).
#
# This is all VERY UGLY due to ffmpeg's making shared libs a PITA to build
# (can't be easily done on OSX) and insisting on static libs.  IF ffmpeg has
# been pkg-config installed the shared versions are presumed to be present.

        As an added bonus the cvs version of smilutils will build using
        g++/gcc 4 :)

        Cheers,
        Steven Schultz



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to