make fails when building with libx264 - osX
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
but I have libx264 0.120 installed, pulled off the x264 git repository today.
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:
I can compile without -enable-libx264, my configure line looks like:
Anyone have nay ideas about what is going on? Thanks.
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.
Thanks. I'm guessing they'll be in /usr/local/lib?
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.