Skip to content

Can't compile VLC 2.2.0 on Ubuntu 14.04 LTS

Source code has been downloaded from http://www.videolan.org/vlc/download-sources.html. When trying to compile it on Ubuntu 14.04 I get the following error:

avparser.c: In function ‘OpenPacketizer’:
avparser.c:108:9: error: implicit declaration of function ‘avcodec_free_context’ [-Werror=implicit-function-declaration]
         avcodec_free_context( &p_codec_ctx );
         ^

avcodec version:

# dpkg -l|grep avcodec
ii  libavcodec-dev      6:9.16-0ubuntu0.14.04.1   i386   Development files for libavcodec
ii  libavcodec54:i386   6:9.16-0ubuntu0.14.04.1   i386   Libav codec library

Log is attached.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information