[FFmpeg-user] build error (latest and 1.0.1)

Andrew RT andrew2012 at flight.us
Thu Mar 28 12:02:37 CET 2013


> On March 27, 2013 at 2:28 PM Andrew RT <andrew2012 at flight.us> wrote:
>
>
>
>
> > On December 17, 2012 at 1:15 AM Jseb Tarot <tarotcrcustrasbgfr at gmail.com> wrote:
> >
> >
> > Install new version of git x264. But befor recompile x264  remove old
> > version of ffmpeg install new version git of x264 and recompile ffmpeg and
> > install
>
> I removed old versions of ffmpeg, recompiled and installed latest x264, (yesterday's snapshot, March 26, 2013).
>
> Downloaded latest ffmpeg git, today
>
> Still getting compile error:
>
> LD      ffmpeg_g
> libavcodec/libavcodec.so: undefined reference to `x264_param_apply_profile'
> libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_130'
> libavcodec/libavcodec.so: undefined reference to `x264_param_apply_fastfirstpass'
> libavcodec/libavcodec.so: undefined reference to `x264_bit_depth'
> libavcodec/libavcodec.so: undefined reference to `x264_picture_init'
> libavcodec/libavcodec.so: undefined reference to `x264_param_default_preset'
> collect2: ld returned 1 exit status
> make: *** [ffmpeg_g] Error 1
>
> 
> What am I doing wrong!?
>

The correct advice appears to be here:   http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideLucid

I followed these steps exactly, and, lo and behold, got it to build.

With one glitch, which I appear to have surmounted:  for some reason it, the package install command failed to install all the lib*.so files in my /usr/local/lib directory.  But I copied them over manually, and ffmpeg stopped complaining it couldn't find them (the complaints were one at a time, on ffmpeg execution)

libavdevice.so.55
libavdevice.so
libavcodec.so.55
libswscale.so.2
libswresample.so.0
libpostproc.so.52
libavutil.so.52
libavformat.so.55
libavfilter.so.3

I haven't had time to check for run-time problems yet.  If I see any, i'll post here.  Otherwise, assume the build succeeded.


>
> > Le 17 déc. 2012 03:46, "Andreas S." <andrew2012 at flight.us> a écrit :
> >
> > > Hi
> > >
> > > the latest git fails to compile for me, so I tried getting something older
> > > (and stable?) but same breakage, included below.
> > >
> > > I'm on Ubuntu 10.10 (Maverick).  Updated everything I was alerted about
> > > (compiled and installed x264-snapshot-20121215-2245-stable, with "
> > > --enable-shared --enable-pic "... What am I missing.
> > >
> > > ---------------------- build error quote: ----------------------
> > > .....
> > > LD      ffmpeg_g
> > > libavcodec/libavcodec.a(libx264.o): In function `X264_frame':
> > > /opt/builds/snapshots/ffmpeg-1.0.1/libavcodec/libx264.c:159: undefined
> > > reference to `x264_picture_init'
> > > /opt/builds/snapshots/ffmpeg-1.0.1/libavcodec/libx264.c:161: undefined
> > > reference to `x264_bit_depth'
> > > libavcodec/libavcodec.a(libx264.o): In function `X264_init_static':
> > > /opt/builds/snapshots/ffmpeg-1.0.1/libavcodec/libx264.c:593: undefined
> > > reference to `x264_bit_depth'
> > > libavcodec/libavcodec.a(libx264.o): In function `X264_init':
> > > /opt/builds/snapshots/ffmpeg-1.0.1/libavcodec/libx264.c:292: undefined
> > > reference to `x264_param_default_preset'
> > > /opt/builds/snapshots/ffmpeg-1.0.1/libavcodec/libx264.c:459: undefined
> > > reference to `x264_param_apply_fastfirstpass'
> > > /opt/builds/snapshots/ffmpeg-1.0.1/libavcodec/libx264.c:490: undefined
> > > reference to `x264_param_apply_profile'
> > > /opt/builds/snapshots/ffmpeg-1.0.1/libavcodec/libx264.c:533: undefined
> > > reference to `x264_encoder_open_128'
> > > collect2: ld returned 1 exit status
> > > make: *** [ffmpeg_g] Error 1
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list