|
From: Chris B. <ch...@cn...> - 2008-02-22 21:04:20
|
On Fri, Feb 22, 2008 at 11:37:14AM -0800, n_m wrote:
> With the '--with-ffmpeg' the configure test stops right after
> trying to find ffmpeg. Nice feature, Thanks!
>
> Configure finishes with
> configure:24577: result: no
> configure:24592: error: cannot find ffmpeg
> See `config.log' for more details.
>
I think you found a bug in our configure script. For some reason
your system is doing stricter linking then my box. We were
trying to create an executable linking to libavformat before
we detected and added in libavutil.
We are not using pkg-config support for ffmpeg support right now so
you technically don't need to set that stuff (but it won't hurt).
Do you have access to autotools on your system? You'll know
you do if "autoreconf" exists in /usr/bin. If not, then I
can provide you with a new "configure" script but your
system may act wierd (like report your running version 4.1.0).
If you do have it then please modify the file sox-14.0.1/configure.ac.
After modifying, run "autoreconf" in sox-14.0.1 and then rerun
configure script.
Look for "dnl Check for ffmpeg libraries". Replace the section I'll
list below... The only difference is the order of calling AC_CHECK_LIB
and how it updates FFMPEG_LIBS based on it. I had this problems
on cygwin for most libraries recently but didn't try ffmpeg.
if test "$with_ffmpeg" != "no"; then
using_ffmpeg=yes
AC_CHECK_HEADER(ffmpeg/avformat.h,
[AC_CHECK_LIB(avutil, av_rescale_q, FFMPEG_LIBS="-lavutil $FFMPEG_LIBS", using_ffmpeg=no)
AC_CHECK_LIB(avcodec, avcodec_decode_audio2, FFMPEG_LIBS="-lavcodec $FFMPEG_LIBS", using_ffmpeg=no)
AC_CHECK_LIB(avformat, av_open_input_file, FFMPEG_LIBS="-lavformat $FFMPEG_LIBS", using_ffmpeg=no)],
using_ffmpeg=no)
if test "$with_ffmpeg" = "yes" -a "$using_ffmpeg" = "no"; then
AC_MSG_FAILURE([cannot find ffmpeg])
fi
fi
Chris
|