Handbrake 0.9.3 on Ubuntu 8.04

Handbrake is wonderful. And now it’s even better – since you can now encode from any source, not just DVDs.

Anyways, on the download page they have available a .deb for Ubuntu 8.10. That’s fine and dandy, but I’m running 8.04. So time to compile!

Following the guide – you’ll eventually encounter an error like

LibX264 ./lib/libx264.a
patching file encoder/slicetype.c
Hunk #1 succeeded at 487 (offset 108 lines).
Found yasm 0.5.0.1591
Minimum version is yasm-0.6.1 or nasm-2.0
If you really want to compile without asm, configure with –disable-asm.

    cd dirname ./x264.tar.gz && CONTRIB=pwd &&
    rm -rf x264 && (gzip -dc x264.tar.gz | tar xf – ) &&
    cd x264 &&  patch -p0 < ../patch-x264-idr.patch &&
    bash ./configure –prefix=$CONTRIB –enable-pthread &&
    make libx264.a && cp libx264.a $CONTRIB/lib/ && cp x264.h $CONTRIB/include/ && strip -S $CONTRIB/lib/libx264.a

…failed LibX264 ./lib/libx264.a …

The issue is that the yasm version in the 8.04 repository is too old. So you need to build your own version.

$sudo apt-get remove –purge yasm 
$wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.2.tar.gz 
$tar xvzf yasm-0.7.2.tar.gz 
$cd yasm-0.7.2 
$./configure 
$make 
$sudo checkinstall

Once that’s set, you should be able to build Handbrake with no issues. Hooray!

This entry was posted in Computers. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Posted December 12, 2008 at 8:00 am | Permalink

    Thanks for this. There were still some missing dependencies (libfaac-dev, libfaac-dev…) but not too difficult to figure. Now, I can use Handbrake at work.

  2. Peter Dee
    Posted April 8, 2009 at 10:15 pm | Permalink

    Thanks for this info.

    Absolute saviour!!

    Cheers

    Peter

  3. Posted April 18, 2009 at 12:08 am | Permalink

    Thanks… I used this for fixing my problem getting handbrake to compile on Ubuntu 8.10 amd64 as well.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">