Build Handbrake 1.0.0 on Raspbian Jessie

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
rmorgenstern
Posts: 7
Joined: Mon Oct 10, 2016 7:25 am

Build Handbrake 1.0.0 on Raspbian Jessie

Post by rmorgenstern »

Problem building Handbrake 1.0 on Raspberry Pi 2

Handbrake 1.0 Raspbian Jessie.

Wanted to build Handbrake 1.0 on Rasbian Jessie, but it does does not work. see error message below.
Is the problem that I do not have built ffmepg on the system?
I am using a downloaded binary of ffmpeg for Raspbian, which works.
I did not want to build ffmpeg from source, as it will take a very, very long time - read that it could take p to 9 hours.
Please indicate what is missing.

Possibly there is a compiled version of Handbrake 1.0 available somewhere??


ERROR: opus not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
libav-tools@libav.org mailing list or IRC #libav on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
../contrib/ffmpeg/module.rules:2: recipe for target 'contrib/ffmpeg/.stamp.configure' failed
make: *** [contrib/ffmpeg/.stamp.configure] Error 1

Pasted log files:
http://pasted.co/b78e5c7d
rmorgenstern
Posts: 7
Joined: Mon Oct 10, 2016 7:25 am

Re: Build Handbrake 1.0.0 on Raspbian Jessie

Post by rmorgenstern »

Installed all the dependencies, etc.
Re downloaded from Git and followed the instructions from the site, but it still fails - with and without Handbake CLI.
Seems to me that ffmeg in the contrib directory is a problem?
See output below.

Renate
==============

pi@raspberrypi:~/Downloads/HandBrake $ ./configure --launch-jobs=$(nproc) --launch
probe: host tuple...(pass) armv7l-unknown-linux-gnueabihf
compute: available architectures...(pass) armv7l
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /bin/cp
find: gcc...(pass) /usr/bin/gcc
find: gmake...(pass) /usr/bin/make
find: gm4...(pass) /usr/bin/m4
find: mkdir...(pass) /bin/mkdir
find: gpatch...(pass) /usr/bin/patch
find: rm...(pass) /bin/rm
find: ranlib...(pass) /usr/bin/ranlib
find: strip...(pass) /usr/bin/strip
find: gtar...(pass) /bin/tar
find: yasm...(pass) /usr/bin/yasm
find: autoconf...(pass) /usr/bin/autoconf
find: automake...(pass) /usr/bin/automake
find: cmake...(pass) /usr/bin/cmake
find: libtool...(fail) not found
find: pkg-config...(pass) /usr/bin/pkg-config
find: xcodebuild...(fail) not found
find: lipo...(fail) not found
compute: build tuple...(pass) armv7l-unknown-linux-gnueabihf
probe: number of CPU cores...(pass) 4
probe: repo info...(pass) https://github.com/HandBrake/HandBrake.git
compute: project data...(pass) HandBrake (developer)
version probe: yasm...(pass) 1.2.0
note: enabling local autotools
probe: strerror_r...(pass) end
compute: makevar SRC/ = ..
compute: makevar BUILD/ = .
compute: makevar PREFIX/ = /usr/local
mkdir: ./build
chdir: ./build
write: GNUmakefile
mkdir: project
write: project/handbrake.m4
write: distfile.cfg
mkdir: log
write: log/build.txt
time begin: Fri Dec 30 12:43:25 2016
launch: /usr/bin/make -j4
-------------------------------------------------------------------------------
: /bin/mkdir -p libhb/
: /bin/mkdir -p libhb/extras/
: /bin/mkdir -p contrib/libvpx/
: /bin/mkdir -p contrib/autoconf/
: /bin/mkdir -p contrib/m4/
: /bin/mkdir -p contrib/lib/
: /bin/mkdir -p contrib/include/
: /bin/mkdir -p contrib/automake/
: /bin/mkdir -p contrib/libtool/
: /bin/mkdir -p contrib/pkgconfig/
: /bin/mkdir -p contrib/ffmpeg/
: /bin/mkdir -p contrib/libdvdread/
: /bin/mkdir -p contrib/libdvdnav/
: /bin/mkdir -p contrib/x265/
: /bin/mkdir -p contrib/libbluray/
: /bin/mkdir -p test/
: /bin/mkdir -p gtk/
: /usr/bin/m4 -Iproject ../libhb/project.h.m4 > libhb/project.h
: /bin/cp ../libhb/openclkernels.h libhb/openclkernels.h
: /bin/cp ../libhb/h264_common.h libhb/h264_common.h
: /bin/cp ../libhb/eedi2.h libhb/eedi2.h
: /bin/cp ../libhb/hbffmpeg.h libhb/hbffmpeg.h
: /bin/cp ../libhb/hb_dict.h libhb/hb_dict.h
: /bin/cp ../libhb/h265_common.h libhb/h265_common.h
: /bin/cp ../libhb/decsrtsub.h libhb/decsrtsub.h
: /bin/cp ../libhb/ports.h libhb/ports.h
: /bin/cp ../libhb/bits.h libhb/bits.h
: /bin/cp ../libhb/decssasub.h libhb/decssasub.h
: /bin/cp ../libhb/colormap.h libhb/colormap.h
: /bin/cp ../libhb/qsv_libav.h libhb/qsv_libav.h
: /bin/cp ../libhb/taskset.h libhb/taskset.h
: /bin/cp ../libhb/nal_units.h libhb/nal_units.h
: /bin/cp ../libhb/dvd.h libhb/dvd.h
: /bin/cp ../libhb/compat.h libhb/compat.h
: /bin/cp ../libhb/decomb.h libhb/decomb.h
: /bin/cp ../libhb/lang.h libhb/lang.h
: /bin/cp ../libhb/hb.h libhb/hb.h
: /bin/cp ../libhb/preset_builtin.h libhb/preset_builtin.h
: /bin/cp ../libhb/internal.h libhb/internal.h
: /bin/cp ../libhb/nlmeans.h libhb/nlmeans.h
: /bin/cp ../libhb/audio_remap.h libhb/audio_remap.h
: /bin/cp ../libhb/param.h libhb/param.h
: /bin/cp ../libhb/plist.h libhb/plist.h
: /bin/cp ../libhb/deccc608sub.h libhb/deccc608sub.h
: /bin/cp ../libhb/qsv_common.h libhb/qsv_common.h
: /bin/cp ../libhb/qsv_filter_pp.h libhb/qsv_filter_pp.h
: /bin/cp ../libhb/hb_json.h libhb/hb_json.h
: /bin/cp ../libhb/common.h libhb/common.h
: /bin/cp ../libhb/encx264.h libhb/encx264.h
: /bin/cp ../libhb/opencl.h libhb/opencl.h
: /bin/cp ../libhb/audio_resample.h libhb/audio_resample.h
: /bin/cp ../libhb/preset.h libhb/preset.h
: /bin/cp ../libhb/qsv_memory.h libhb/qsv_memory.h
: /bin/cp ../libhb/hbtypes.h libhb/hbtypes.h
: /bin/cp ../libhb/openclwrapper.h libhb/openclwrapper.h
: /bin/cp ../libhb/qsv_filter.h libhb/qsv_filter.h
: /bin/cp ../libhb/extras/cl_platform.h libhb/extras/cl_platform.h
: /bin/cp ../libhb/extras/cl.h libhb/extras/cl.h
: sha256 (../download/m4-1.4.17.tar.bz2) = 8e4e1f963932136ed45dcd5afb0c6e237e96a6fcdcd2a2fa6755040859500d70 (pass)
: sha256 (../download/libvpx-1.5.0.tar.bz2) = 306d67908625675f8e188d37a81fbfafdf5068b09d9aa52702b6fbe601c76797 (pass)
: sha256 (../download/autoconf-2.69.tar.gz) = 954bd69b391edc12d6a4a51a2dd1476543da5c6bbf05a95b59dc0dd6fd4c2969 (pass)
: sha256 (../download/automake-1.15.tar.gz) = 7946e945a96e28152ba5a6beb0625ca715c6e32ac55f2e353ef54def0c8ed924 (pass)
: sha256 (../download/libdvdread-5.0.0-6-gcb1ae87.tar.gz) = d2e4200c3c5d5f812892f9c14851c94e2f707d54e7328946c6397ac999f15f17 (pass)
: sha256 (../download/libtool-2.4.2.tar.gz) = b38de44862a987293cd3d8dfae1c409d514b6c4e794ebc93648febf9afc38918 (pass)
: sha256 (../download/pkg-config-0.28.tar.gz) = 6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845 (pass)
: sha256 (../download/libdvdnav-5.0.1.tar.bz2) = 72b1cb8266f163d4a1481b92c7b6c53e6dc9274d2a6befb08ffc351fe7a4a2a9 (pass)
: set -e; cd ../gtk/; NOCONFIGURE=1 ./autogen.sh
: sha256 (../download/libav-12.tar.gz) = ca5cb22ba660f0bdc47817fdb9d99059a71f9eb0776c68cf8bef769a5ccc7534 (pass)
: /bin/rm -fr ./contrib/libvpx/libvpx-1.5.0/
: /bin/tar xfC ../download/libvpx-1.5.0.tar.bz2 ./contrib/libvpx/
: sha256 (../download/x265_2.1-1.tar.gz) = 88fcb9af4ba52c0757ac9c0d8cd5ec79951a22905ae886897e06954353d6a643 (pass)
: /bin/rm -fr ./contrib/autoconf/autoconf-2.69/
: /bin/tar xfC ../download/autoconf-2.69.tar.gz ./contrib/autoconf/
: sha256 (../download/libbluray-0.9.3.tar.bz2) = a6366614ec45484b51fe94fcd1975b3b8716f90f038a33b24d59978de3863ce0 (pass)
: /bin/rm -fr ./contrib/m4/m4-1.4.17/
: /bin/tar xfC ../download/m4-1.4.17.tar.bz2 ./contrib/m4/
:
: **Error**: You must have `intltool' installed.
: You can get it from:
: ftp://ftp.gnome.org/pub/GNOME/
: touch contrib/autoconf/.stamp.extract
: /bin/rm -fr ./contrib/automake/automake-1.15/
: /bin/tar xfC ../download/automake-1.15.tar.gz ./contrib/automake/
:
: **Error**: You must have `glib' installed.
: You can get it from: ftp://ftp.gtk.org/pub/gtk
: touch contrib/automake/.stamp.extract
: /bin/rm -fr ./contrib/libtool/libtool-2.4.2/
: /bin/tar xfC ../download/libtool-2.4.2.tar.gz ./contrib/libtool/
: touch contrib/libtool/.stamp.extract
: /bin/rm -fr ./contrib/pkgconfig/pkg-config-0.28/
: /bin/tar xfC ../download/pkg-config-0.28.tar.gz ./contrib/pkgconfig/
: touch contrib/m4/.stamp.extract
: /bin/rm -fr ./contrib/ffmpeg/libav-12/
: /bin/tar xfC ../download/libav-12.tar.gz ./contrib/ffmpeg/
: touch contrib/pkgconfig/.stamp.extract
: /bin/rm -fr ./contrib/libdvdread/libdvdread-5.0.0-6-gcb1ae87/
: /bin/tar xfC ../download/libdvdread-5.0.0-6-gcb1ae87.tar.gz ./contrib/libdvdread/
: touch contrib/libdvdread/.stamp.extract
: /bin/rm -fr ./contrib/libdvdnav/libdvdnav-5.0.1/
: /bin/tar xfC ../download/libdvdnav-5.0.1.tar.bz2 ./contrib/libdvdnav/
: touch contrib/libvpx/.stamp.extract
: ../gtk/module.rules:15: recipe for target 'gtk/.stamp.configure' failed
: make: *** [gtk/.stamp.configure] Error 1
: make: *** Waiting for unfinished jobs....
: touch contrib/libdvdnav/.stamp.extract
: touch contrib/ffmpeg/.stamp.extract
-------------------------------------------------------------------------------
time end: Fri Dec 30 12:43:45 2016
duration: 20 seconds (20.75s)
result: FAILURE (code 2)
-------------------------------------------------------------------------------
Build is finished!
You may now cd into ./build and examine the output.
pi@raspberrypi:~/Downloads/HandBrake $ cd build/
pi@raspberrypi:~/Downloads/HandBrake/build $ ls
total 44
drwxr-xr-x 8 pi pi 4096 Dec 30 12:43 .
drwxr-xr-x 17 pi pi 4096 Dec 30 12:43 ..
drwxr-xr-x 15 pi pi 4096 Dec 30 12:43 contrib
-rw-r--r-- 1 pi pi 111 Dec 30 12:43 distfile.cfg
-rw-r--r-- 1 pi pi 4354 Dec 30 12:43 GNUmakefile
drwxr-xr-x 2 pi pi 4096 Dec 30 12:43 gtk
drwxr-xr-x 3 pi pi 4096 Dec 30 12:43 libhb
drwxr-xr-x 2 pi pi 4096 Dec 30 12:43 log
drwxr-xr-x 2 pi pi 4096 Dec 30 12:43 project
drwxr-xr-x 2 pi pi 4096 Dec 30 12:43 test
Deleted User 11865

Re: Build Handbrake 1.0.0 on Raspbian Jessie

Post by Deleted User 11865 »

The log does seem very cryptic about what you're missing, indeed:
rmorgenstern wrote:

Code: Select all

 : **Error**: You must have `intltool' installed.
  : You can get it from:
  :   ftp://ftp.gnome.org/pub/GNOME/
:P

I'd try to get it from your distro's repository, it should be available there.
rmorgenstern
Posts: 7
Joined: Mon Oct 10, 2016 7:25 am

Re: Build Handbrake 1.0.0 on Raspbian Jessie

Post by rmorgenstern »

It is not available for Raspbian. Tried to add the nightly build's PPAs, but it says there is not one available for Raspbian.
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 167, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 105, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 595, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/jessie

Installed all the missing dependencies in the mean time, but it does not want to build successfully with gtk nor without gtk.

ERROR: opus not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
libav-tools@libav.org mailing list or IRC #libav on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
../contrib/ffmpeg/module.rules:2: recipe for target 'contrib/ffmpeg/.stamp.configure' failed
make: *** [contrib/ffmpeg/.stamp.configure] Error 1
rmorgenstern
Posts: 7
Joined: Mon Oct 10, 2016 7:25 am

Re: Build Handbrake 1.0.0 on Raspbian Jessie

Post by rmorgenstern »

After trying again to build Handbrake on Raspbian, I still get the message 'opus not found'.
I would like to disable opus in the build, but where can I do it? Please advise.
Thanks
Renate
rmorgenstern
Posts: 7
Joined: Mon Oct 10, 2016 7:25 am

Re: Build Handbrake 1.0.0 on Raspbian Jessie

Post by rmorgenstern »

I also installed opus-tools and libtool-bin, and this time I could build HandbrakeCLI successfully.
Post Reply