LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help compiling HandBrake 0.9.3 on Debian Sid ? (https://www.linuxquestions.org/questions/linux-software-2/help-compiling-handbrake-0-9-3-on-debian-sid-855646/)

lefty.crupps 01-11-2011 12:36 PM

Help compiling HandBrake 0.9.3 on Debian Sid ?
 
Current HandBrake is 0.9.5 but doesn't do XviD encoding, so I want to compile 0.9.3 for Debian Sid.

I've added the Debian Multimedia repos for Lenny, which has 0.9.3:
Code:

deb http://www.debian-multimedia.org/ lenny main
deb-src http://www.debian-multimedia.org/ lenny main

I've got the build dependencies:
Code:

mkdir handbrake
cd handbrake/
apt-cache policy handbrake-gtk
handbrake-gtk:
  Installed: 0.9.4+svn20100902-0.0
  Candidate: 0.9.4+svn20100902-0.0
  Version table:
 *** 0.9.4+svn20100902-0.0 0
        991 http://www.debian-multimedia.org/ sid/main i386 Packages
        500 http://www.debian-multimedia.org/ testing/main i386 Packages
    0.9.3-0.1 0
        500 http://www.debian-multimedia.org/ lenny/main i386 Packages

sudo aptitude build-dep handbrake-gtk=0.9.3-0.1

But when I try to get and build the source it fails:
Code:

sudo apt-get -b source handbrake-gtk=0.9.3-0.1
...
...
echo cc -g -O2 -I/usr/include -I../contrib/include -D__LIBHB__ -DUSE_PTHREAD -DSYS_LINUX  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O3 -funroll-loops
cc -g -O2 -I/usr/include -I../contrib/include -D__LIBHB__ -DUSE_PTHREAD -DSYS_LINUX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O3 -funroll-loops
muxmkv.c: In function ‘MKVMux’:
muxmkv.c:295: error: too few arguments to function ‘mk_setFrameFlags’
muxmkv.c:314: error: too few arguments to function ‘mk_setFrameFlags’
muxmkv.c:326: error: too few arguments to function ‘mk_setFrameFlags’
Compile line for muxmkv.o was:
cc -g -O2 -I/usr/include -I../contrib/include -D__LIBHB__ -DUSE_PTHREAD -DSYS_LINUX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O3 -funroll-loops -o muxmkv.o -c muxmkv.c
make[2]: *** [muxmkv.o] Error 1
make[1]: *** [libhb/libhb.a] Error 2
make[1]: Leaving directory `/home/jthomas/handbrake/handbrake-0.9.3'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Build command 'cd handbrake-0.9.3 && dpkg-buildpackage -b -uc' failed.
E: Child process failed

Can anyone tell me what I am missing or explain to me how to further troubleshoot this compile?

vorbote 01-11-2011 01:10 PM

I'd suggest you try with something that handles dependencies better for you while keeping everything tidy, such as pbuilder. It is easier to spot anything you miss that way.

lefty.crupps 01-11-2011 03:58 PM

> I'd suggest you try with something that handles dependencies
> better for you while keeping everything tidy, such as pbuilder.

Wow, pbuilder looks far too complex for what I wanted. Might anyone else have suggestions for what I'd like to do?

knudfl 01-12-2011 03:17 AM

1 Attachment(s)
Debian Sid, Handbrake 0.9.3.

May be the patch handbrake_0.9.3-0.1.diff.gz adds some flags or options
not being usable by the compilers ?
Or may be handbrake 0.9.3 prefers the older Lenny dependencies / libraries ?

Using "the other compiler" : 1) # export CC=gcc-4.3 CXX=g++-4.3
2) # apt-get -b source handbrake-gtk=0.9.3-0.1
... and it will just spit out some other errors.


However : tar xvf handbrake_0.9.3.orig.tar.gz && cd handbrake-0.9.3/
&& make && cd gtk/ && sh autogen.sh && make : No errors.
# make install : OK too.

But $ ghb : Not working. Please see the attached image.
.


All times are GMT -5. The time now is 03:38 PM.