FORUMS: list search recent posts

make fails when building with libx264 - osX

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
stephen dixon
make fails when building with libx264 - osX
on Dec 28, 2011 at 12:16:18 pm

I'm building the 0.9 version of ffmpeg, on os X 10.6.8, and I can't get it to compile with libx264. During the configure I get an error
ERROR: libx264 version must be >= 0.118

but I have libx264 0.120 installed, pulled off the x264 git repository today.
$ x264 -V
x264 0.120.x
(libswscale 2.0.0)
(libavformat 53.6.0)
built on Dec 28 2011, gcc: 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --bit-depth=8 --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat license: GPL version 2

I tried commenting out the line in the configure script that checks the version, and it compiled without any further errors, but when I ran make it died when it started doing x264 stuff:

libavcodec/libx264.c: In function ‘convert_pix_fmt’:
libavcodec/libx264.c:258: error: ‘X264_CSP_I422’ undeclared (first use in this function)
libavcodec/libx264.c:258: error: (Each undeclared identifier is reported only once
libavcodec/libx264.c:258: error: for each function it appears in.)
libavcodec/libx264.c:261: error: ‘X264_CSP_I444’ undeclared (first use in this function)
libavcodec/libx264.c: In function ‘X264_init’:
libavcodec/libx264.c:318: warning: ‘crf’ is deprecated (declared at libavcodec/avcodec.h:2667)
libavcodec/libx264.c:320: warning: ‘crf’ is deprecated (declared at libavcodec/avcodec.h:2667)
libavcodec/libx264.c:321: warning: ‘crf_max’ is deprecated (declared at libavcodec/avcodec.h:3059)
libavcodec/libx264.c:322: warning: ‘cqp’ is deprecated (declared at libavcodec/avcodec.h:2675)
libavcodec/libx264.c:324: warning: ‘cqp’ is deprecated (declared at libavcodec/avcodec.h:2675)
libavcodec/libx264.c:357: warning: the address of ‘val’ will always evaluate as ‘true’
libavcodec/libx264.c:364: warning: ‘aq_mode’ is deprecated (declared at libavcodec/avcodec.h:3018)
libavcodec/libx264.c:365: warning: ‘aq_mode’ is deprecated (declared at libavcodec/avcodec.h:3018)
libavcodec/libx264.c:366: warning: ‘aq_strength’ is deprecated (declared at libavcodec/avcodec.h:3026)
libavcodec/libx264.c:367: warning: ‘aq_strength’ is deprecated (declared at libavcodec/avcodec.h:3026)
libavcodec/libx264.c:368: warning: ‘psy_rd’ is deprecated (declared at libavcodec/avcodec.h:3034)
libavcodec/libx264.c:369: warning: ‘psy_rd’ is deprecated (declared at libavcodec/avcodec.h:3034)
libavcodec/libx264.c:370: warning: ‘psy_trellis’ is deprecated (declared at libavcodec/avcodec.h:3042)
libavcodec/libx264.c:371: warning: ‘psy_trellis’ is deprecated (declared at libavcodec/avcodec.h:3042)
libavcodec/libx264.c:372: warning: ‘rc_lookahead’ is deprecated (declared at libavcodec/avcodec.h:3050)
libavcodec/libx264.c:373: warning: ‘rc_lookahead’ is deprecated (declared at libavcodec/avcodec.h:3050)
libavcodec/libx264.c:374: warning: ‘weighted_p_pred’ is deprecated (declared at libavcodec/avcodec.h:3008)
libavcodec/libx264.c:375: warning: ‘weighted_p_pred’ is deprecated (declared at libavcodec/avcodec.h:3008)
libavcodec/libx264.c:376: warning: ‘bframebias’ is deprecated (declared at libavcodec/avcodec.h:2705)
libavcodec/libx264.c:377: warning: ‘bframebias’ is deprecated (declared at libavcodec/avcodec.h:2705)
libavcodec/libx264.c:378: warning: ‘deblockalpha’ is deprecated (declared at libavcodec/avcodec.h:2729)
libavcodec/libx264.c:379: warning: ‘deblockalpha’ is deprecated (declared at libavcodec/avcodec.h:2729)
libavcodec/libx264.c:380: warning: ‘deblockbeta’ is deprecated (declared at libavcodec/avcodec.h:2737)
libavcodec/libx264.c:381: warning: ‘deblockbeta’ is deprecated (declared at libavcodec/avcodec.h:2737)
libavcodec/libx264.c:382: warning: ‘complexityblur’ is deprecated (declared at libavcodec/avcodec.h:2721)
libavcodec/libx264.c:383: warning: ‘complexityblur’ is deprecated (declared at libavcodec/avcodec.h:2721)
libavcodec/libx264.c:384: warning: ‘directpred’ is deprecated (declared at libavcodec/avcodec.h:2756)
libavcodec/libx264.c:385: warning: ‘directpred’ is deprecated (declared at libavcodec/avcodec.h:2756)
libavcodec/libx264.c:386: warning: ‘partitions’ is deprecated (declared at libavcodec/avcodec.h:2744)
libavcodec/libx264.c:387: warning: ‘partitions’ is deprecated (declared at libavcodec/avcodec.h:2744)
libavcodec/libx264.c:389: warning: ‘partitions’ is deprecated (declared at libavcodec/avcodec.h:2744)
libavcodec/libx264.c:391: warning: ‘partitions’ is deprecated (declared at libavcodec/avcodec.h:2744)
libavcodec/libx264.c:393: warning: ‘partitions’ is deprecated (declared at libavcodec/avcodec.h:2744)
libavcodec/libx264.c:395: warning: ‘partitions’ is deprecated (declared at libavcodec/avcodec.h:2744)
libavcodec/libx264.c:537: warning: ‘crf’ is deprecated (declared at libavcodec/avcodec.h:2667)
make: *** [libavcodec/libx264.o] Error 1


I can compile without -enable-libx264, my configure line looks like:
/configure --enable-gpl --enable-nonfree --enable-frei0r
--enable-libaacplus --enable-libfaac --enable-libmp3lame
--enable-libtheora --enable-libnut --enable-libaacplus
--enable-libx264
.

Anyone have nay ideas about what is going on? Thanks.


Return to posts index

Reuben Martin
Re: make fails when building with libx264 - osX
on Dec 28, 2011 at 8:37:44 pm

x264 != libx264

You may have built a static x264 binary that didn't result in libx264 being installed. Check the library that ffmpeg is trying to link to and make sure that it is the correct version.

It's also possible to have multiple versions of the library installed and the linker may be grabbing the earlier version. The file libx264.so is generally a softlink to the version of the library. It may still point to an older library. Make sure it points to libx264.so.120

Make sure the older libraries and include files are removed, and that any softlinks resolve to the current versions.


Return to posts index

stephen dixon
Re: make fails when building with libx264 - osX
on Dec 28, 2011 at 10:59:13 pm

Thanks. I'm guessing they'll be in /usr/local/lib?


Return to posts index


stephen dixon
Re: make fails when building with libx264 - osX
on Dec 29, 2011 at 1:14:26 am

Removed all traces of x264 and it seemed to work. Interestingly I had to specifically enable shared libraries when I built x264 again, because it's off by default.

Thanks


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]