I am installing ffmpeg utility, but I am facing libmp3lame >= 3.98.3
not found not found error. I am able to find lame-3.99.5-1.el6.rf.x86_64.rpm
and lame-libs-3.98.4-1.el6.nux.x86_64.rpm
but installing these are not solving the problem. I am not able to find libmp3lame rpm to install.
Can anyone help me here?
[root@sdp-dev-03:/opt/ffmpeg] # ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --disable-ffplay --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads
ERROR: libmp3lame >= 3.98.3 not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected]
mailing list or IRC #ffmpeg
on irc.freenode.net
.
Include the log file "config.log" produced by configure as this will help
solve the problem.
I just experienced this problem. I had lame v3.99.5
installed, but ffmpeg
configure was giving ERROR: libmp3lame >= 3.98.3
not found.
In addition to --extra-ldflags
, I had to specify --extra-cflags
. So, the configure line was:
./configure [...] --enable-libmp3lame [...] --extra-ldflags=-L/usr/local/lib --extra-cflags=-I/usr/local/include
What worked for me was building lame from source. Download lame from here: https://sourceforge.net/projects/lame/files/lame/3.99/, then extract and install:
tar -zxvf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure
make
sudo make install
Check to see where libmp3lame.a is:
locate libmp3lame.a
Its probably in /usr/local/lib.
Now when you go to configure ffmpeg, try adding that path to the end of your ./configure string. For me it made the difference. e.g.:
--extra-ldflags=-L/usr/local/lib
For configure
troubleshooting see the ffbuild/config.log
in the ffmpeg
source directory.
In my case it had missing references to libmath
functions, even if -lm
was set in host_extralibs
.
For a quick-fix add -lm
to the configure
script:
enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3lame -lm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With