2011/02/10

Building HandBrakeCLI for CentOS

Problem with CentOS & other RHEL is that it's packages are updated slowly. Building software like Handbrake needs additional steps.

1. First of all, you need to have the essential development tools:
yum groupinstall "Development Tools" "Development Libraries" \
"X Software Development" "GNOME Software Development"

yum install yasm zlib-devel bzip2-devel \
dbus-glib-devel libgudev1-devel webkitgtk-devel libnotify-devel \
gstreamer-devel gstreamer-plugins-base-devel


2. Build Autoconf 2.61 (stock is 2.59) and install to /opt
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.bz2
tar xjf autoconf-2.61.tar.bz2
cd autoconf-2.61
./configure --prefix=/opt
make
sudo make install


3. Use the 2.61 version
export PATH=/opt/bin:$PATH

4. Greb latest source from subversion or download from Handbrake source.
Here we assume you download the tar source:
wget http://handbrake.fr/rotation.php?file=HandBrake-0.9.5.tar.bz2
tar zxvf HandBrake-0.9.5.tar.gz


5. Config & build
GUI version is no supported according to the Handbrake forum. --disable-gtk option will generate CLI build.
cd HandBrake-0.9.5
./configure --disable-gtk --launch

it's gonna take awhile depending on your hardware...

-------------------------------------------------------------------------------
time end: Thu Feb 10 12:57:49 2011
duration: 20 minutes, 2 seconds (1202.42s)
result: SUCCESS
-------------------------------------------------------------------------------
Build is finished!

6. Install
If no other trouble, you get the success build result. Now install it:
cd build
make install

This will copy the build to /usr/local/bin/HandBrakeCLI and now enjoy the work!
HandBrakeCLI --help

Reference:
  1. https://trac.handbrake.fr/wiki/CompileOnLinux
  2. https://forum.handbrake.fr/viewtopic.php?f=13&t=19479
  3. http://linuxtoolkit.blogspot.com/2010/10/installing-handbrake-on-fedora-13.html

沒有留言:

Mercury簡易改裝

有同好有一樣的困擾 - 如何使用自己的data logging軟體,因此寫了這篇來分享我的簡易改裝。 Background 雲豆子 MERCURY roaster 烘豆機的設計是使用自行開發的軟體,來:1. 操控風門/火力; 2. data logging/自動烘焙。 ...