ERROR: libmp3lame >= 3.98.3 not found

后端 未结 6 1933
一生所求
一生所求 2021-02-06 02:58

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 an

相关标签:
6条回答
  • 2021-02-06 03:24

    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
    
    0 讨论(0)
  • 2021-02-06 03:24

    On Ubuntu 16.04

    sudo apt-get install yasm libmp3lame-dev
    

    Then configure ffmpeg to build from source with libmp3lame:

    ./configure --enable-gpl --enable-libmp3lame --enable-shared
    
    0 讨论(0)
  • 2021-02-06 03:34

    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
    
    0 讨论(0)
  • 2021-02-06 03:34

    In my case the solution for ffmpeg/3.1.3 (based on https://github.com/Homebrew/legacy-homebrew/issues/44489) was to add:

    --host-ldflags=-L/usr/local/lib
    

    to the configure string.

    0 讨论(0)
  • 2021-02-06 03:42

    this is my way:

    install X11,and goto ffmpeg path,and code this in the Terminal:

        pkg-config usr/local/lib
        pkg-config usr/lib
        pkg-config usr/X11/lib
    

    then code ./configure xxxx.

    0 讨论(0)
  • 2021-02-06 03:48

    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
    
    0 讨论(0)
提交回复
热议问题