Cannot install from SVN [solved]

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
orangecakez
Posts: 15
Joined: Sat Apr 26, 2008 12:13 am

Cannot install from SVN [solved]

Post by orangecakez »

I did

Code: Select all

svn checkout svn://svn.handbrake.fr/HandBrake/trunk
and it started working fine, but then I keep getting this same error when I try to 'jam':

Code: Select all

jam
...found 325 target(s)...
...using 37 temp target(s)...
...updating 4 target(s)...
LibX264 contrib/lib/libx264.a 
patching file encoder/slicetype.c
Hunk #1 succeeded at 370 (offset -9 lines).
No suitable assembler found.  Install 'yasm' to get MMX/SSE optimized code.
If you really want to compile without asm, configure with --disable-asm.

    cd `dirname contrib/x264.tar.gz` && CONTRIB=`pwd` &&
    rm -rf x264 && (gzip -dc x264.tar.gz | tar xf - ) && 
    cd x264 &&  patch -p0 < ../patch-x264-idr.patch && 
    bash ./configure --prefix=$CONTRIB --enable-pthread &&
    make libx264.a && cp libx264.a $CONTRIB/lib/ && cp x264.h $CONTRIB/include/ && strip -S $CONTRIB/lib/libx264.a

...failed LibX264 contrib/lib/libx264.a ...
Cc libhb/encx264.o 
libhb/encx264.c:11:18: error: x264.h: No such file or directory
libhb/encx264.c:49: error: expected specifier-qualifier-list before ‘x264_t’
libhb/encx264.c: In function ‘encx264Init’:
libhb/encx264.c:72: error: ‘x264_param_t’ undeclared (first use in this function)
libhb/encx264.c:72: error: (Each undeclared identifier is reported only once
libhb/encx264.c:72: error: for each function it appears in.)
libhb/encx264.c:72: error: expected ‘;’ before ‘param’
libhb/encx264.c:73: error: ‘x264_nal_t’ undeclared (first use in this function)
libhb/encx264.c:73: error: ‘nal’ undeclared (first use in this function)
libhb/encx264.c:82: error: ‘hb_work_private_t’ has no member named ‘filename’
libhb/encx264.c:83: error: ‘hb_work_private_t’ has no member named ‘filename’
libhb/encx264.c:85: warning: implicit declaration of function ‘x264_param_default’
libhb/encx264.c:85: error: ‘param’ undeclared (first use in this function)
libhb/encx264.c:102: error: ‘X264_LOG_INFO’ undeclared (first use in this function)
libhb/encx264.c:188: warning: implicit declaration of function ‘x264_param_parse’
libhb/encx264.c:191: error: ‘X264_PARAM_BAD_NAME’ undeclared (first use in this function)
libhb/encx264.c:193: error: ‘X264_PARAM_BAD_VALUE’ undeclared (first use in this function)
libhb/encx264.c:233: error: ‘X264_RC_CRF’ undeclared (first use in this function)
libhb/encx264.c:241: error: ‘X264_RC_CQP’ undeclared (first use in this function)
libhb/encx264.c:274: error: ‘X264_RC_ABR’ undeclared (first use in this function)
libhb/encx264.c:280: error: ‘hb_work_private_t’ has no member named ‘filename’
libhb/encx264.c:284: error: ‘hb_work_private_t’ has no member named ‘filename’
libhb/encx264.c:290: error: ‘hb_work_private_t’ has no member named ‘x264’
libhb/encx264.c:290: warning: implicit declaration of function ‘x264_encoder_open’
libhb/encx264.c:292: warning: implicit declaration of function ‘x264_encoder_headers’
libhb/encx264.c:292: error: ‘hb_work_private_t’ has no member named ‘x264’
libhb/encx264.c:295: warning: implicit declaration of function ‘x264_nal_encode’
libhb/encx264.c:302: warning: implicit declaration of function ‘x264_picture_alloc’
libhb/encx264.c:302: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:302: error: ‘X264_CSP_I420’ undeclared (first use in this function)
libhb/encx264.c:305: error: ‘hb_work_private_t’ has no member named ‘x264_allocated_pic’
libhb/encx264.c:305: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:311: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c:318: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c:319: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c:327: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c:333: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c:337: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c:339: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c: In function ‘encx264Close’:
libhb/encx264.c:351: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:351: error: ‘hb_work_private_t’ has no member named ‘x264_allocated_pic’
libhb/encx264.c:352: warning: implicit declaration of function ‘x264_picture_clean’
libhb/encx264.c:352: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:353: warning: implicit declaration of function ‘x264_encoder_close’
libhb/encx264.c:353: error: ‘hb_work_private_t’ has no member named ‘x264’
libhb/encx264.c: In function ‘save_frame_info’:
libhb/encx264.c:367: error: ‘hb_work_private_t’ has no member named ‘frame_info’
libhb/encx264.c: In function ‘get_frame_duration’:
libhb/encx264.c:373: error: ‘hb_work_private_t’ has no member named ‘frame_info’
libhb/encx264.c: At top level:
libhb/encx264.c:376: error: expected declaration specifiers or ‘...’ before ‘x264_picture_t’
libhb/encx264.c:377: error: expected declaration specifiers or ‘...’ before ‘x264_nal_t’
libhb/encx264.c: In function ‘nal_encode’:
libhb/encx264.c:389: error: ‘pic_out’ undeclared (first use in this function)
libhb/encx264.c:402: error: ‘nal’ undeclared (first use in this function)
libhb/encx264.c:410: error: ‘NAL_PRIORITY_HIGHEST’ undeclared (first use in this function)
libhb/encx264.c:436: error: ‘X264_TYPE_IDR’ undeclared (first use in this function)
libhb/encx264.c:442: error: ‘hb_work_private_t’ has no member named ‘next_chap’
libhb/encx264.c:442: error: ‘hb_work_private_t’ has no member named ‘next_chap’
libhb/encx264.c:444: error: ‘hb_work_private_t’ has no member named ‘next_chap’
libhb/encx264.c:445: error: ‘hb_work_private_t’ has no member named ‘chap_mark’
libhb/encx264.c:449: error: ‘X264_TYPE_I’ undeclared (first use in this function)
libhb/encx264.c:453: error: ‘X264_TYPE_P’ undeclared (first use in this function)
libhb/encx264.c:457: error: ‘X264_TYPE_B’ undeclared (first use in this function)
libhb/encx264.c:463: error: ‘X264_TYPE_BREF’ undeclared (first use in this function)
libhb/encx264.c:476: error: ‘NAL_PRIORITY_DISPOSABLE’ undeclared (first use in this function)
libhb/encx264.c: In function ‘x264_encode’:
libhb/encx264.c:496: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:501: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:502: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:507: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:508: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:517: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:517: error: ‘X264_TYPE_IDR’ undeclared (first use in this function)
libhb/encx264.c:518: error: ‘hb_work_private_t’ has no member named ‘next_chap’
libhb/encx264.c:520: error: ‘hb_work_private_t’ has no member named ‘next_chap’
libhb/encx264.c:521: error: ‘hb_work_private_t’ has no member named ‘chap_mark’
libhb/encx264.c:528: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:528: error: ‘X264_TYPE_AUTO’ undeclared (first use in this function)
libhb/encx264.c:530: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:537: error: ‘hb_work_private_t’ has no member named ‘last_stop’
libhb/encx264.c:540: error: ‘hb_work_private_t’ has no member named ‘last_stop’
libhb/encx264.c:542: error: ‘hb_work_private_t’ has no member named ‘last_stop’
libhb/encx264.c:549: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:551: error: ‘x264_picture_t’ undeclared (first use in this function)
libhb/encx264.c:551: error: expected ‘;’ before ‘pic_out’
libhb/encx264.c:553: error: ‘x264_nal_t’ undeclared (first use in this function)
libhb/encx264.c:553: error: ‘nal’ undeclared (first use in this function)
libhb/encx264.c:555: warning: implicit declaration of function ‘x264_encoder_encode’
libhb/encx264.c:555: error: ‘hb_work_private_t’ has no member named ‘x264’
libhb/encx264.c:555: error: ‘hb_work_private_t’ has no member named ‘pic_in’
libhb/encx264.c:555: error: ‘pic_out’ undeclared (first use in this function)
libhb/encx264.c:558: error: too many arguments to function ‘nal_encode’
libhb/encx264.c: In function ‘encx264Work’:
libhb/encx264.c:575: error: ‘x264_picture_t’ undeclared (first use in this function)
libhb/encx264.c:575: error: expected ‘;’ before ‘pic_out’
libhb/encx264.c:577: error: ‘x264_nal_t’ undeclared (first use in this function)
libhb/encx264.c:577: error: ‘nal’ undeclared (first use in this function)
libhb/encx264.c:582: error: ‘hb_work_private_t’ has no member named ‘x264’
libhb/encx264.c:582: error: ‘pic_out’ undeclared (first use in this function)
libhb/encx264.c:586: error: too many arguments to function ‘nal_encode’
libhb/encx264.c:609: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c:609: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c:635: error: ‘hb_work_private_t’ has no member named ‘init_delay’
libhb/encx264.c:635: error: ‘hb_work_private_t’ has no member named ‘init_delay’

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

...failed Cc libhb/encx264.o ...
...skipped libhb.a for lack of libhb.a(encx264.o)...
...skipped HandBrakeCLI for lack of libhb.a...
...failed updating 2 target(s)...
...skipped 2 target(s)...
Last edited by orangecakez on Fri Aug 15, 2008 9:44 pm, edited 1 time in total.
User avatar
Ritsuka
HandBrake Team
Posts: 1655
Joined: Fri Jan 12, 2007 11:29 am

Re: Cannot install from SVN

Post by Ritsuka »

The solution is written in your message.
orangecakez
Posts: 15
Joined: Sat Apr 26, 2008 12:13 am

Re: Cannot install from SVN

Post by orangecakez »

If it has something to do with yasm, I already have the latest version installed (Ubuntu Hardy Heron) so I don't know why it's asking to install it when I already have the latest.

Otherwise I don't know what else to do
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Cannot install from SVN

Post by s55 »

ubuntu doesn't have an up to date yasm in it's repo. you need to compile it from source.
orangecakez
Posts: 15
Joined: Sat Apr 26, 2008 12:13 am

Re: Cannot install from SVN

Post by orangecakez »

Thank you! It worked flawlessly and it's very functional now!
Post Reply