vlc 3.0 ./configure gives “Missing libav or FFmpeg” despite I have them

*nix specific usage questions
qmastery
New Cone
New Cone
Posts: 2
Joined: 17 Jan 2017 10:45

vlc 3.0 ./configure gives “Missing libav or FFmpeg” despite I have them

Postby qmastery » 17 Jan 2017 10:48

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:

Code: Select all

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

Just looked at https://github.com/videolan/vlc/blob/ma ... nfigure.ac source code, it requires a libavcodec >=57.16.0 from libav or >=57.37.100 from ffmpeg, and 57.64.101 satisfies that requirement - so still can't understand what is wrong.

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):

Code: Select all

--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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc 3.0 ./configure gives “Missing libav or FFmpeg” despite I have them

Postby Rémi Denis-Courmont » 17 Jan 2017 14:37

Make sure that "pkg-config --modversion libavcodec" works. If not, then FFmpeg is essentially not installed.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

qmastery
New Cone
New Cone
Posts: 2
Joined: 17 Jan 2017 10:45

Re: vlc 3.0 ./configure gives “Missing libav or FFmpeg” despite I have them

Postby qmastery » 17 Jan 2017 21:08

Make sure that "pkg-config --modversion libavcodec" works. If not, then FFmpeg is essentially not installed.
Thank you very much, Rémi :D your answer is super helpful, really helped to fix this problem quickly!

"pkg-config --modversion libavcodec" command gave me the following error message:

Code: Select all

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 :

Code: Select all

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

Code: Select all

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! ^_^

bvsprasad4
New Cone
New Cone
Posts: 4
Joined: 03 May 2019 05:52

Re: vlc 3.0 ./configure gives “Missing libav or FFmpeg” despite I have them

Postby bvsprasad4 » 08 May 2019 08:23

Hi,
I searched for libavcodec.pc.I didn't found. In codec folder there was a subfolder called avcodec but it wasn't present there also. What should I do? Should I need to download it from somewhere?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: vlc 3.0 ./configure gives “Missing libav or FFmpeg” despite I have them

Postby unidan » 09 May 2019 10:53

Hi, install the development files for ffmpeg, which depends on your linux distribution.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 15 guests