Install on Kubuntu Linux amd64

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
giacombum
Posts: 1
Joined: Wed Feb 13, 2008 11:02 pm

Install on Kubuntu Linux amd64

Post by giacombum »

I try to install HandBrake on Kubuntu by sources... if I type jam on HandBrake folder I receive this error message:

giacomo@giacomo-desktop:~/Desktop/HandBrake$ jam
...found 347 target(s)...
...using 34 temp target(s)...
...updating 5 target(s)...
LibMp4v2 contrib/lib/libmp4v2.a
patching file lib/mp4v2/Makefile.am
patching file lib/mp4v2/Makefile.in
patching file lib/mp4v2/atom_gmin.cpp
patching file lib/mp4v2/atom_standard.cpp
patching file lib/mp4v2/atom_stsd.cpp
patching file lib/mp4v2/atom_text.cpp
patching file lib/mp4v2/atom_tkhd.cpp
patching file lib/mp4v2/atoms.h
patching file lib/mp4v2/libmp4v260.dsp
patching file lib/mp4v2/libmp4v2_st60.dsp
patching file lib/mp4v2/mp4.cpp
patching file lib/mp4v2/mp4.h
patching file lib/mp4v2/mp4atom.cpp
patching file lib/mp4v2/mp4file.cpp
patching file lib/mp4v2/mp4file.h
patching file lib/mp4v2/atom_mp4a.cpp
patching file lib/mp4v2/atom_avc1.cpp
Hunk #1 succeeded at 41 with fuzz 1.
patching file lib/mp4v2/mp4property.cpp
SDL appears to be installed
./bootstrap: 73: Syntax error: Bad fd number

cd `dirname contrib/mpeg4ip.tar.gz` && CONTRIB=`pwd` &&
rm -rf mpeg4ip && tar xzf mpeg4ip.tar.gz && cd mpeg4ip &&
patch -p1 < ../patch-mpeg4ip.patch && patch -p0 < ../patch-mpeg4ip-pascal-str.patch &&
./bootstrap --cache-file=$CONTRIB/config.cache --disable-mp3lame --disable-faac --disable-x264 --disable-server --disable-player &&
make -C lib/mp4v2 libmp4v2.la && cp lib/mp4v2/.libs/libmp4v2.a $CONTRIB/lib &&
cp mpeg4ip_config.h include/mpeg4ip.h include/mpeg4ip_version.h \
include/mpeg4ip_win32.h lib/mp4v2/*.h $CONTRIB/include &&
strip -S $CONTRIB/lib/libmp4v2.a

...failed LibMp4v2 contrib/lib/libmp4v2.a ...
C++ libhb/ipodutil.o
libhb/ipodutil.cpp:9:23: error: mp4common.h: Nessun file o directory
libhb/ipodutil.cpp:11: error: ‘u_int8_t’ does not name a type
libhb/ipodutil.cpp:16: error: expected class-name before ‘{’ token
libhb/ipodutil.cpp: In constructor ‘IPodUUIDAtom::IPodUUIDAtom()’:
libhb/ipodutil.cpp:18: error: class ‘IPodUUIDAtom’ does not have any field named ‘MP4Atom’
libhb/ipodutil.cpp:20: error: ‘ipod_magic’ was not declared in this scope
libhb/ipodutil.cpp:20: error: ‘SetExtendedType’ was not declared in this scope
libhb/ipodutil.cpp:22: error: ‘MP4Integer32Property’ was not declared in this scope
libhb/ipodutil.cpp:22: error: ‘value’ was not declared in this scope
libhb/ipodutil.cpp:22: error: expected type-specifier before ‘MP4Integer32Property’
libhb/ipodutil.cpp:22: error: expected `;' before ‘MP4Integer32Property’
libhb/ipodutil.cpp:24: error: ‘AddProperty’ was not declared in this scope
libhb/ipodutil.cpp: At global scope:
libhb/ipodutil.cpp:28: warning: ‘AddIPodUUID’ initialized and declared ‘extern’
libhb/ipodutil.cpp:28: error: variable or field ‘AddIPodUUID’ declared void
libhb/ipodutil.cpp:28: error: ‘MP4FileHandle’ was not declared in this scope
libhb/ipodutil.cpp:28: error: ‘MP4TrackId’ was not declared in this scope
libhb/ipodutil.cpp:28: error: initializer expression list treated as compound expression
libhb/ipodutil.cpp:29: error: expected ‘,’ or ‘;’ before ‘{’ token

g++ -c -o libhb/ipodutil.o -Wall -g -O3 -funroll-loops -I./contrib/include -DSYS_LINUX -DUSE_PTHREAD -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHB_VERSION=\"0.9.1\" -DHB_BUILD=2007100800 -D__LIBHB__ -Ilibhb libhb/ipodutil.cpp

...failed C++ libhb/ipodutil.o ...
Cc libhb/muxmp4.o
libhb/muxmp4.c: In function ‘MP4Init’:
libhb/muxmp4.c:149: error: ‘MP4_CREATE_64BIT_DATA’ undeclared (first use in this function)
libhb/muxmp4.c:149: error: (Each undeclared identifier is reported only once
libhb/muxmp4.c:149: error: for each function it appears in.)
libhb/muxmp4.c:149: error: too few arguments to function ‘MP4Create’
libhb/muxmp4.c:155: error: too few arguments to function ‘MP4Create’
libhb/muxmp4.c:190: warning: implicit declaration of function ‘MP4AddH264VideoTrack’
libhb/muxmp4.c:198: warning: implicit declaration of function ‘MP4AddH264SequenceParameterSet’
libhb/muxmp4.c:200: warning: implicit declaration of function ‘MP4AddH264PictureParameterSet’
libhb/muxmp4.c:212: error: ‘MPEG4_SP_L3’ undeclared (first use in this function)
libhb/muxmp4.c:337: warning: implicit declaration of function ‘MP4AddChapterTextTrack’
libhb/muxmp4.c: In function ‘MP4Mux’:
libhb/muxmp4.c:369: error: ‘true’ undeclared (first use in this function)
libhb/muxmp4.c: In function ‘MP4End’:
libhb/muxmp4.c:439: error: ‘true’ undeclared (first use in this function)

gcc -c -o libhb/muxmp4.o -Wall -g -O3 -funroll-loops -I./contrib/include -DSYS_LINUX -DUSE_PTHREAD -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHB_VERSION=\"0.9.1\" -DHB_BUILD=2007100800 -D__LIBHB__ -Ilibhb libhb/muxmp4.c

...failed Cc libhb/muxmp4.o ...
...skipped libhb.a for lack of libhb.a(ipodutil.o)...
...skipped HandBrakeCLI for lack of libhb.a...
...failed updating 3 target(s)...
...skipped 2 target(s)...

What ca I do? I don't understand what is the problem!!! Thanks!
User avatar
JohnAStebbins
HandBrake Team
Posts: 5724
Joined: Sat Feb 09, 2008 7:21 pm

Re: Install on Kubuntu Linux amd64

Post by JohnAStebbins »

I just started installing from source on Ubuntu yesterday. If your experience in this turns out to be anything like mine, your in for a long haul. So far I've spent a couple of hours working through issues, and I'm not done yet. Your particular problem may be in contrib/mpeg4ip. The bootstrap script uses "#!/bin/sh", but then uses more advanced features not part of standard sh. It seems Ubuntu's sh is more strict than others. Change the first line to "#!/bin/bash" and you should be able to continue. I also found that I needed to install a bunch of additional packages.
redraiderbum
Enlightened
Posts: 132
Joined: Thu Jun 21, 2007 3:53 am

Re: Install on Kubuntu Linux amd64

Post by redraiderbum »

It's really not that hard... I have built handbrake on about 10 different distros including Kubuntu and Ubuntu. There is not a comprehensive list of dependencies, perhaps I should put one together considering how many times I have posted on this. Start with these packages or the new update to them:

Installed (relevant) packages includes:
ii autoconf 2.61-4
ii automake 1.10+nogfdl-1
ii devscripts 2.9.26
ii g++ 4.1.1-15
ii g++-4.1 4.1.1-21
ii gcc 4.1.1-15
ii gcc-4.1 4.1.1-21
ii gcc-4.1-base 4.1.1-21
ii jam 2.5rel-1
ii libgcc1 4.1.1-21
ii libtool 1.5.22-4
ii make 3.81-2
ii makedev 2.3.1-83
ii yasm 0.5.0-2
ii zlib1g-dev 1.2.3-13

Make sure you do ./configure first, then do jam or make. Jam is the preferred and supported compile type. If you end up having a 'latex' problem then there are solutions posted in the *nix forum, but I have only had those problems on opensuse. If you continue to have problems then you do not have all of the required packages installed. Other than the latex problem I've never had to alter any files to get handbrake compiled in debian based distros.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5724
Joined: Sat Feb 09, 2008 7:21 pm

Re: Install on Kubuntu Linux amd64

Post by JohnAStebbins »

I've had the unicode latex problem on both fedora 8 and ubuntu. My hack-around was to delete contrib/libdvdcss directory. Untar contrib/libdvdcss.tar.gz to get a clean copy. Edit contrib/libdvdcss/src/dvdcss/dvdcss.h and remove the unicode character from the author Stephane Borel's name. Make a backup of the original tar to another name. Create a new libdvdcss.tar.gz with the modified version.
stmiller
Novice
Posts: 59
Joined: Thu Apr 12, 2007 8:16 pm

Re: Install on Kubuntu Linux amd64

Post by stmiller »

Hey John thanks for the fix. Hard to believe one non-standard text character would cause so many problems. And a character that is in commented-out code at that.
Post Reply