How to compile VLC media player source on Ubuntu 10.10 Maverick

Recently I compiled VLC media player source in my Ubuntu 10.10 Maverick. Although there is an online documentation available at “http://wiki.videolan.org/UnixCompile”, yet I faced many dependencies problems during compilation. So, I decided to document most of those issues. The whole process is as below:

1. Prepare your build environment

  • setup git (a free open source version control system):
    $ sudo apt-get install git
  • setup build tools:
    $ sudo apt-get install build-essential

2. Download source

  • change to directory where the source need to be downloaded e.g. $cd ~
  • download source using git:
    $ git clone git://git.videolan.org/vlc.git
  • a folder ‘vlc’ will be created in your ~ directory. change to that directory: $ cd vlc

3. Bootstrap
$ ./bootstrap
Issues that I faced

  • autoreconf: not found:
    sudo apt-get install autoconf
  • libtool error:
    sudo apt-get install libtool

After these commands, bootstrap process was successful.

4. Configure
$ ./configure
During configuration, there were many dependency issues reported. Some of them are as below:

  • configure: WARNING: libhal >= 0.5.0 was not found. Install libhal-dev ?  &  configure: error: Couldn’t find DBus >= 1.0.0, install libdbus-dev ?
    For both of these use: $ sudo apt-get install libhal
  • configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http)
    $ sudo apt-get install liblua5.1-dev
  • configure: error: Could not find libmad on your system:

For all of the above and further issues, the command that I used was:
$ sudo apt-get build-dep vlc
This command will install all the dependencies. After running this command ‘configure’ worked without further issues.

5. Make
$ make

6. Run
$ ./vlc

 

This entry was posted in Uncategorized. Bookmark the permalink.

3 Responses to How to compile VLC media player source on Ubuntu 10.10 Maverick

  1. Rafael says:

    Thankz, very usefful!!

  2. pocho says:

    This post was great, thanks!!!!!

Leave a comment