Build VLC media player under Ubuntu Intrepid

26 November 2008

This post is an update of the popular howto for Build VLC with feisty and Build VLC with hardy.

Those articles are always popular on my blog, so here is an update.

Introduction

So we are going to build the latest VLC possible.

Everything will be done in a console/terminal and should be straight-forward. Every question should be asked on the forum, or in the comments here.

Conventions

Every line beginning with a # should be done as root, or using the sudo command. Every line beginning witha % is a normal line.

Building VLC

Prepare your environment

We need a few package starting from a fresh intrepid:


# apt-get install vlc
# apt-get build-dep vlc 
# apt-get install cvs build-essential git git-core automake1.9 libtool
# apt-get install libcddb2-dev libzvbi-dev yasm

Checkout VLC trunk and bootstrap the tree


% git clone git://git.videolan.org/vlc.git

% cd vlc
% ./bootstrap

Build x264

x264

x264 is a library to encode movies in H.264.


% cd extras/
%
% git clone git://git.videolan.org/x264.git
% cd x264
% make
% sudo make install
% cd ../..

Configure VLC

Configure

 
% mkdir build; cd build;
%../configure --prefix=/usr --enable-mozilla

Finish


% make

You just have to wait a bit :D

Jean-Baptiste Kempf

Comments

  1. On 14 May 14140, 6:16 by psychok9

    Hello! Now that I’ve compiled without errors, I get this errors when I launch VLC:
    @jaunty-server:~/src/vlc/build/bin$ ./vlc
    VLC media player 1.0.0-pre1 Goldeneye
    [0x1afc0c8] main libvlc error: no memcpy module matched “any”
    [0x1b303d8] main access error: no access module matched “file”
    [0x1b2db88] main input error: open of `file/xspf-open:///home/gianluca/.local/share/vlc/ml.xspf’ failed: no access module matched “file”
    [0x1b2db88] main input error: Your input can’t be opened
    [0x1b2db88] main input error: VLC is unable to open the MRL ‘file/xspf-open:///home/gianluca/.local/share/vlc/ml.xspf’. Check the log for details.
    [0x1b2e678] main interface error: no interface module matched “hotkeys,none”
    [0x1b2e678] main interface error: no suitable interface module
    [0x1afc0c8] main libvlc error: interface “hotkeys,none” initialization failed
    [0x1b2e678] main interface error: no interface module matched “dbus,none”
    [0x1b2e678] main interface error: no suitable interface module
    [0x1afc0c8] main libvlc error: interface “dbus,none” initialization failed
    [0x1b2e678] main interface error: no interface module matched “inhibit,none”
    [0x1b2e678] main interface error: no suitable interface module
    [0x1afc0c8] main libvlc error: interface “inhibit,none” initialization failed
    [0x1b2e678] main interface error: no interface module matched “screensaver,none”
    [0x1b2e678] main interface error: no suitable interface module
    [0x1afc0c8] main libvlc error: interface “screensaver,none” initialization failed
    [0x1b2e7e8] main interface error: no interface module matched “signals”
    [0x1b2e7e8] main interface error: no suitable interface module
    [0x1afc0c8] main libvlc error: interface “signals” initialization failed
    [0x1b2e7e8] main interface error: no interface module matched “qt4”
    [0x1b2e7e8] main interface error: no suitable interface module
    [0x1afc0c8] main libvlc error: interface “(null)” initialization failed

    Can you help me?
    Thank you!

  2. On 18 May 18180, 2:24 by JBK

    Yeah, I use the default ones, which means gcc 4.2 or 4.3 on Linux and gcc 4.2.1 for Windows.

  3. On 17 May 17170, 6:45 by vlc fans

    J-B, could you please point out the gcc distribution you are using for buiding?

  4. On 12 May 12120, 12:51 by JBK

    Latest git fixes this.

  5. On 11 May 11110, 11:49 by gitpik

    Thank you for this posting. I followed all of your instructions, but during make I get the following:

    x264.c: In function ‘Open’:
    x264.c:975: error: ‘x264_param_t’ has no member named ‘b_pre_scenecut’
    make[5]: *** [libx264_plugin_la-x264.lo] Error 1

    Then make fails.

    Forgive me for my noobishness, but where can I go from here? Thanks in advance :D

  6. On 27 May 27270, 12:12 by JBK

    @Johan: do you have all the ffmpeg devel libraries installed ?

  7. On 26 May 26260, 10:04 by Johan van der Stoel

    Great initiative to describe this so clear! I followed all your instructions, but got the message (during ../configure step): “configure: error: swscale (and its fallback module imgresample) support will be missing. Use –disable-swscale to ignore this error.”
    What did I do wrong? I must say I had this error several times before, the only to resolve it was following the comment. But it looks like you didn’t get this error message, so I am very interested in your solution.
    Johan