|
From: Chris B. <ch...@cn...> - 2008-03-03 02:42:39
|
n_m wrote: >> 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 >> > > I did that. I did get warning message > /usr/share/aclocal/libgcrypt.m4:23: warning: underquoted definition of > AM_PATH_LIBGCRYPT > run info '(automake)Extending aclocal' > or see http://sources.redhat.com/automake/automake.html#Extending-aclocal > > To confirm change in ./configure, I did > diff configure.ac.orig configure.ac > 275,278c275,278 > < [AC_CHECK_LIB(avformat, av_open_input_file, > FFMPEG_LIBS="$FFMPEG_LIBS -lavformat", using_ffmpeg=no) > < AC_CHECK_LIB(avutil, av_rescale_q, FFMPEG_LIBS="$FFMPEG_LIBS > -lavutil", using_ffmpeg=no) > < AC_CHECK_LIB(avcodec, avcodec_decode_audio2, > FFMPEG_LIBS="$FFMPEG_LIBS -lavcodec", using_ffmpeg=no)], > < using_ffmpeg=no) > --- > >> [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) >> > > Looks right to me. > > But, no improvement from before :-( > > Can you check the timestamp of configure versus your updated configure.ac? I think the warning you showed was actually some sort of error and it didn't update configure. Your log attached shows its still trying to check libavcodec before libavutil so I suspect configure is still old. Perhaps I either had a typo or you had one during the update. Since your now moving on to fix real bugs in v14.0.1 of SoX, I suggest starting with most recent copy from current CVS. It has a verified bugfix for linking ffmpeg in the right order. Download SoX source from CVS as described at http://sox.sf.net and run: autoreconf -i ./configure make Use configure options you've already settled on. Chris |