Okay I made some progress. I was having a separate problem and another user named "micke" told me he never
builds on the NAS, he has a separate Linux system that he uses and builds on that. The key it seems is using the
Debian distribution
Etch which is comparable to what is installed on the Qnap NAS (it uses the same libraries and such).
Step 1.
Do a google search for
debian-40r7-i386-DVD-1.iso I found it
here and
here. There seems to be three DVDs in total, but I only needed the first.
Step 2.
Install Debian Etch on an alternate system. I found it was easiest to use
VirtualBox and just install it onto my main Windows machine. The setup is pretty straight forward, with one tricky part... When asked if you want to use a Fixed Size disk or a Flexible Size disk, choose Fixed. I tried flexible and it got stuck, so just set aside a few GB for the Debian installation and use the fixed size.
Step 3.
Install the missing dependencies. I followed the instructions found on the
HandBrake website about compiling for Linux. At the moment that website seems to be down, but if you use google you can view the cached version. I recommend only trying to install what is needed for the Command-Line version of Handbrake because it has less dependencies.
Code: Select all
su root
apt-get install subversion build-essential autoconf automake make libtool zlib1g-dev libbz2-dev
You also need YASM which I couldn't find via apt-get, you might have better luck though. I got it working by installing it from source.
Step 4.
Create a folder on your newly acquired Debian box to work out of, I called mine Handbrake. Then download and build HandBrake from the svn repository:
Code: Select all
mkdir HandBrake
cd HandBrake
svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk
cd hb-trunk
./configure --launch --disable-gtk
This step took a while, but once finished navigate into the folder called "build" and there should be a
HandBrakeCLI executable in there. When running the above step make sure you are not getting any more errors. I was missing "make" the first time I tried.
Step 5.
The final thing to do is copy the
HandBrakeCLI that we just built onto your Qnap NAS. I accomplished this by emailing the file to myself using GMail from within the Debian Box. Maybe you know a better way to transfer files across Operating Systems?
I still have some more testing to do, but after copying the
HandBrakeCLI file to my NAS I was able to run it without getting warnings:
Code: Select all
[/share/Public/handbrake/hb-trunk/build] # ./HandBrakeCLI -u
[21:36:11] hb_init: checking for updates
[21:36:11] Using http://handbrake.fr/appcast_unstable.xml
[21:36:11] latest: 0.9.4, build 2009112300
[21:36:11] hb_init: checking cpu count
[21:36:11] hb_init: starting libhb thread
HandBrake svn3717 (2010122801) - Linux i686 - http://handbrake.fr
Your version of HandBrake is up to date.
I haven't tried to actually transcode anything yet, but I will update this post with the results soon.