Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install the latest VLC source from git and compile it on Ubuntu 12.04 and make it very full-featured. A plugin I wish to use requires that I have VLC sources available, so I might as well build VLC from source. For this question, you can assume that I will not install VLC from the repos or a PPA.

I want to do what is generically described at this page:

UnixCompile - VideoLAN Wiki

Unfortunately, I've been trying for 3 days. I have a ton of questions and I have hit a few different errors. I came here hoping to find a nice Ubuntu-focused how-to guide. All I found was how to install from a PPA.

Furthermore, I want to enable near-maximum functionality of VLC. And I have the real ffmpeg installed on my system (from a PPA), so I'm guessing that probably impacts VLC's configuration.

Here are some examples of other configure options I want VLC to have: the SFTP option (configure option --enable-sftp), bluray playing, KDE and/or qt support. Those are a minimum. I appreciate other recommendations. I'd rather have too much than too little for this "experiment."

Here's the minimal configure I came up with so far:

./configure --enable-x11 --enable-xvideo --enable-sdl --enable-avcodec --enable-avformat  --enable-swscale --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav  --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype  --enable-fribidi --enable-speex --enable-flac --enable-live555 --with-live555-tree=/usr/lib/live  --enable-ffmpeg --with-ffmpeg-mp3lame --enable-kde --enable-sftp --enable-real  --enable-media-library  --enable-caca --enable-skins --enable-skins2 --enable-alsa --enable-qt4 --enable-ncurses

After building with those options I get an error that libvlccore.so.7 isn't found after make install. But I have concerns that many of my prior steps have been less than ideal for Ubuntu. Hopefully someone can tell me what configure options to use based on experience. All I can do is guess.

Which libraries do I need to install to have maximum features in VLC? Here's the suggestion from the VLC wiki, but it is for Ubuntu 11.10

$ sudo apt-get -y install libvorbis-dev libogg-dev libtheora-dev speex libspeex-dev flac libflac-dev \
  x264 libx264-dev a52-0.7.4 liba52-0.7.4-dev mpeg2dec libmpeg2-4-dev faad libfaad-dev faac libfaac-dev \
  lame libmp3lame-dev ffmpeg libavdevice-dev libmad0 libmad0-dev dirac libdirac-dev liboil-dev libschroedinger-dev \
  libebml-dev libdca-dev twolame libtwolame-dev libmpcdec-dev libvorbisidec1 libvorbisidec-dev libass-dev libass4 \
  libmatroska-dev  libdvbpsi-dev libmodplug1 libmodplug-dev libshout3 libshout3-dev  libdvdread4 libdvdnav4 \
  libdvdnav-dev livemedia-utils liblivemedia-dev libcddb2 libcddb2-dev libcdio10 libcdio-dev libxcb-composite0-dev\
  libcdio-utils vcdimager libvcdinfo0 libvcdinfo-dev libgpg-error0 libgpg-error-dev libgcrypt11 libgcrypt11-dev \
  gnutls-bin libgnutls26 libgnutls-dev libdap10 libdap-bin libdap-dev libxml2 libxml2-dev libpng12-0 libpng12-dev \
  libjpeg8 libtiff4 libsdl1.2-dev libsdl-image1.2 libsdl-image1.2-dev libc-bin gettext libfreetype6 libfreetype6-dev \
  libfribidi-dev libfribidi0 zlib1g zlib1g-dev libtag1-dev libcaca0 libcaca-dev caca-utils libqt4-core libqt4-dev \
  libportaudio2 libportaudio-dev libupnp-dev libupnp4 libupnp3 libexpat1 libexpat1-dev yasm libxcb-xv0 libxcb-xv0-dev \
  libx11-xcb1 libx11-xcb-dev

Here is the configure command from the VLC wiki (which I modified above to add more features).

./configure --enable-x11 --enable-xvideo --disable-gtk \
--enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame \
--enable-mad --enable-libdvbpsi --enable-a52 --enable-dca \
--enable-libmpeg2 --enable-dvdnav --enable-faad \
--enable-vorbis --enable-ogg --enable-theora --enable-faac\
--enable-mkv --enable-freetype --enable-fribidi \
--enable-speex --enable-flac --enable-livedotcom \
--with-livedotcom-tree=/usr/lib/live --enable-caca \
--enable-skins --enable-skins2 --enable-alsa --disable-kde\
--disable-qt --enable-wxwindows --enable-ncurses \
--enable-asa --enable-release 
share|improve this question
take a look here, written for 13.10 but really isn't any different for 12.04 other than possibly some build dep package names. For SFTP install libssh2-1-dev. As far as the ./configure line vlc will auto enable many things so in those cases no need to add to the ./configure line. At source prompt run ./configure --help to see what needs to be manually added. You can break andrew's at the ./configure, remove the && \ to check if it configured as you wish, then pick up from the make .. to finish. Interactive help is available in that thread ubuntuforums.org/showthread.php?t=2141949 –  doug Jan 16 at 6:18
@doug - thanks. That looks like a great thread. –  MountainX Jan 16 at 16:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.