[vlc-devel] configure: error: Missing libav or FFmpeg

qma ster qmastery16 at gmail.com
Tue Jan 17 20:52:56 CET 2017


I got a really helpful advice from RĂ©mi Denis-Courmont at VLC forums thread
- https://forum.videolan.org/viewtopic.php?f=13&t=137096

    Make sure that "pkg-config --modversion libavcodec" works.
    If not, then FFmpeg is essentially not installed.

This command gave me the following error message:

    Package libavcodec was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libavcodec.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavcodec' found

Checked my PKG_CONFIG_PATH variable - it was empty :

    echo $PKG_CONFIG_PATH

Then I searched at /usr directory for libavcodec.pc , and found it:

    find /usr -name "libav*.pc"
    /usr/lib/pkgconfig/libavutil.pc
    /usr/lib/pkgconfig/libavcodec.pc
    /usr/lib/pkgconfig/libavfilter.pc
    /usr/lib/pkgconfig/libavformat.pc
    /usr/lib/pkgconfig/libavdevice.pc
    /usr/lib/pkgconfig/libavresample.pc
    /usr/lib64/pkgconfig/libavc1394.pc

Now all I needed to do is to add these path: /usr/lib/pkgconfig/ , and also
/usr/lib64/pkgconfig/ just in case, to PKG_CONFIG_PATH (could be done
through bashrc or any other way). After that, "pkg-config --modversion
libavcodec" outputs a version number of libavcodec instead of error, and
vlc could be configured and built without any problems! ^_^

2017-01-17 3:09 GMT-05:00 qma ster <qmastery16 at gmail.com>:

> "tried again", it still does not work. Do you have a more helpful advice?
>
> I am trying to build the most recent development version of vlc-3.0 (git
> cloned) from source, but running ./configure gives me the following error:
>
> configure: error: Missing libav or FFmpeg
>
> That is despite I have built from source and installed a fresh
> ffmpeg-3.2.2 with the following configuration including --enable-shared
> (see below). Also, in my /usr/lib directory there is a library libavcodec.a
> , libavcodec.so.57.64.101 with symbolic links to it libavcodec.so and
> libavcodec.so.57 .
>
> Maybe I need to pass some additional flag to vlc-3.0 to force it to notice
> my libavcodec library? If yes, what flags should I try?
>
> ffmpeg configure options (just in case): --prefix=/usr --enable-gpl
> --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls
> --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b
> --enable-libcaca --enable-libcdio --disable-libebur128
> --enable-libfontconfig --enable-libfreetype --enable-libfribidi
> --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame
> --enable-libopenjpeg --enable-libopus --enable-libpulse
> --enable-librubberband --enable-libsnappy --enable-libsoxr
> --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame
> --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
> --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi
> --enable-omx --enable-openal --enable-opengl --enable-sdl2
> --enable-libdc1394 --enable-libiec61883 --enable-libopencv --enable-frei0r
> --enable-libx264 --enable-chromaprint --enable-shared
>
> Best regards,
> qmastery
>
> 2017-01-17 5:27 GMT+03:00 liyoubdu <liyoubdu at qq.com>:
>
>> try again
>>
>>
>> ------------------ Original ------------------
>> *From: * "qma ster";<qmastery16 at gmail.com>;
>> *Send time:* Tuesday, Jan 17, 2017 7:12 AM
>> *To:* "vlc-devel"<vlc-devel at videolan.org>;
>> *Subject: * [vlc-devel] configure: error: Missing libav or FFmpeg
>>
>> I am trying to build the most recent development version of vlc-3.0 (git
>> cloned) from source, but running ./configure gives me the following error:
>>
>> configure: error: Missing libav or FFmpeg
>>
>> That is despite I have built from source and installed a fresh
>> ffmpeg-3.2.2 with the following configuration including --enable-shared
>> (see below). Also, in my /usr/lib directory there is a library libavcodec.a
>> , libavcodec.so.57.64.101 with symbolic links to it libavcodec.so and
>> libavcodec.so.57 .
>>
>> Maybe I need to pass some additional flag to vlc-3.0 to force it to
>> notice my libavcodec library? If yes, what flags should I try?
>>
>> ffmpeg configure options (just in case): --prefix=/usr --enable-gpl
>> --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls
>> --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b
>> --enable-libcaca --enable-libcdio --disable-libebur128
>> --enable-libfontconfig --enable-libfreetype --enable-libfribidi
>> --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame
>> --enable-libopenjpeg --enable-libopus --enable-libpulse
>> --enable-librubberband --enable-libsnappy --enable-libsoxr
>> --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame
>> --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
>> --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi
>> --enable-omx --enable-openal --enable-opengl --enable-sdl2
>> --enable-libdc1394 --enable-libiec61883 --enable-libopencv --enable-frei0r
>> --enable-libx264 --enable-chromaprint --enable-shared
>>
>> Best regards,
>> qmastery
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170117/d04e4c94/attachment.html>


More information about the vlc-devel mailing list