[x264-devel] Latest git version fail to compile on openSUSE 11.2 Factory with --enable-mp4-output

Rodney Baker rodney.baker at iinet.net.au
Thu Sep 24 03:18:24 CEST 2009


On Thu, 24 Sep 2009 09:57:25 Jason Garrett-Glaser wrote:
> On Wed, Sep 23, 2009 at 5:19 PM, Rodney Baker <rodney.baker at iinet.net.au> 
wrote:
> > On Thu, 24 Sep 2009 09:33:42 Jason Garrett-Glaser wrote:
> >> On Wed, Sep 23, 2009 at 4:46 PM, Rodney Baker
> >> <rodney.baker at iinet.net.au>
> >
> > wrote:
> >> > Hi all.
> >> >
> >> > I just tried to update x264 to the latest git release (ffmpeg now
> >> > requires
> >> >
> >> >>=libx264-76) and ran the following;
> >> >
> >> > git pull
> >> > make distclean
> >> > ./configure --enable-shared --enable-mp4-output
> >> > make
> >> >
> >> > The build failed with the following error:
> >> >
> >> > gcc -shared -o libx264.so.76 common/mc.o common/predict.o
> >> > common/pixel.o common/macroblock.o common/frame.o common/dct.o
> >> > common/cpu.o
> >> > common/cabac.o common/common.o common/mdate.o common/set.o
> >> > common/quant.o common/vlc.o encoder/analyse.o encoder/me.o
> >> > encoder/ratecontrol.o encoder/set.o encoder/macroblock.o
> >> > encoder/cabac.o encoder/cavlc.o encoder/encoder.o encoder/lookahead.o
> >> > common/x86/mc-c.o
> >> > common/x86/predict-c.o common/x86/cabac- a.o common/x86/dct-a.o
> >> > common/x86/deblock-a.o common/x86/mc-a.o common/x86/mc- a2.o
> >> > common/x86/pixel-a.o common/x86/predict-a.o common/x86/quant-a.o
> >> > common/x86/sad-a.o common/x86/cpu-a.o common/x86/dct-32.o
> >> > common/x86/pixel-32.o -Wl,-soname,libx264.so.76 -lm -lpthread
> >> > -lgpac_static -s
> >> > /usr/lib/gcc/i586-suse-linux/4.4/../../../../i586-suse-linux/bin/ld:
> >> > cannot find -lgpac_static
> >> > collect2: ld returned 1 exit status
> >> > make: *** [libx264.so.76] Error 1
> >> >
> >> > Without --enable-mp4-output it compiled correctly. On previous
> >> > revisions I have used --enable-mp4-output without any problems. Is
> >> > there another package I need to update, downgrade or install to
> >> > support this in the latest git version?
> >>
> >> As has always been true, you need gpac if you want to compile with mp4
> >> output.  This hasn't changed.
> >>
> >> However, you don't need mp4 output if you're trying to use x264 with
> >> ffmpeg, as ffmpeg has its own mp4 muxer.
> >>
> >> Dark Shikari
> >> _______________________________________________
> >> x264-devel mailing list
> >> x264-devel at videolan.org
> >> http://mailman.videolan.org/listinfo/x264-devel
> >
> > Ah, OK. Thanks. Unfortunately even with libx264.so.76 correctly complied
> > and installed, ffmpeg failed to compile with an undefined reference to
> > x264_encoder_open_76 in libavcodec.so (during the linking phase) but I've
> > posted a query about that on the ffmpeg-user mailing list. It may need a
> > bug report against the latest ffmpeg svn.
> 
> Works fine here.  Most likely you have an old x264 on your system that
> ld is picking up instead of the new version.
> 

Bingo!
/usr/lib/libx264.so.75
/usr/local/lib/libx264.so.76

Found it, fixed it, works fine now :-). 

Thanks!

Rodney.

-- 
===================================================
Rodney Baker VK5ZTV
rodney.baker at iinet.net.au
=================================================== 



More information about the x264-devel mailing list