Trouble Running Make on CentOS 6

403 views
Skip to first unread message

Jeremy

unread,
Jan 10, 2012, 11:05:24 AM1/10/12
to ffmbc-discuss
First of all, thank you for this amazing software! I can't tell you
how wonderful it is, I'm very appreciative for all of your hard work!

I was able to build this on an Ubuntu box a while back, but I'm having
trouble getting make to work on my CentOS 6 box.
Here is the error I receive:

libavcodec/libavcodec.a(libx264.o): In function `X264_init':
/root/Downloads/FFmbc-0.7-rc4/libavcodec/libx264.c:387: undefined
reference to `x264_encoder_open_119'
libavformat/libavformat.so: undefined reference to
`ff_mpa_bitrate_tab@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_mpa_decode_header@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_ac3_parse_header@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_flac_parse_streaminfo@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_mpa_freq_tab@LIBAVCODEC_53'
/usr/lib64/libavcodec.so.53: undefined reference to
`av_opt_set@LIBAVUTIL_51'
libavformat/libavformat.so: undefined reference to
`ff_toupper4@LIBAVCODEC_53'
/usr/lib64/libavcodec.so.53: undefined reference to
`av_samples_get_buffer_size@LIBAVUTIL_51'
libavformat/libavformat.so: undefined reference to
`ff_frame_rate_tab@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_split_xiph_headers@LIBAVCODEC_53'
/usr/lib64/libavcodec.so.53: undefined reference to
`av_sample_fmt_is_planar@LIBAVUTIL_51'
libavformat/libavformat.so: undefined reference to
`ff_timecode_to_framenum@LIBAVCODEC_53'
/usr/lib64/libavcodec.so.53: undefined reference to
`av_get_media_type_string@LIBAVUTIL_51'
libavformat/libavformat.so: undefined reference to
`ff_flac_is_extradata_valid@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_aac_parse_header@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_mpeg4audio_get_config@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_mpegaudio_decode_header@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_copy_pce_data@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_mpeg4audio_sample_rates@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_dirac_parse_sequence_header@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_flac_parse_block_header@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_dv_frame_profile@LIBAVCODEC_53'
libavformat/libavformat.so: undefined reference to
`ff_dv_codec_profile@LIBAVCODEC_53'
/usr/lib64/libavcodec.so.53: undefined reference to
`av_tempfile@LIBAVUTIL_51'
libavformat/libavformat.so: undefined reference to
`ff_find_start_code@LIBAVCODEC_53'
/usr/lib64/libavcodec.so.53: undefined reference to
`av_realloc_f@LIBAVUTIL_51'
libavformat/libavformat.so: undefined reference to
`ff_framenum_to_timecode@LIBAVCODEC_53'
collect2: ld returned 1 exit status
make: *** [ffmbc_g] Error 1


Here is my configure option set:
./configure --prefix=/usr/local --enable-gpl --enable-nonfree --
disable-shared --enable-postproc --enable-runtime-cpudetect --enable-
frei0r --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-
libgsm --enable-libmp3lame --enable-libopenjpeg --enable-
libschroedinger --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-pthreads --enable-libxvid --enable-zlib --
disable-crystalhd


I have tried to enable and disable shared libraries, which gives me a
different set of errors. So I'm assuming that my version of libraries
is causing the trouble. This may be a noob question, but I don't know
where else to look. Any help would be appreciated.

Thanks!

Denis Becker

unread,
Jan 11, 2012, 7:04:15 AM1/11/12
to ffmbc-...@googlegroups.com
Hi... i think u have to deinstall the libav packages first and The x264 as well

Jeremy <jeremy.do...@gmail.com> schrieb:

Jeremy

unread,
Jan 14, 2012, 10:57:16 AM1/14/12
to ffmbc-discuss
Thanks so much for the reponse. I was able to get it compiled
properly, but when I go to convert an h.264 file it says:
ffmbc: error while loading shared libraries: libx264.so.119: cannot
open shared object file: No such file or directory

I tried to install x264 via yum after I was able to get make to work
(although I had to configure it with --disable-shared in order for it
to work).

I can't seem to get it installed no matter what I try.

Would someone be willing to install it on my box? I would happily pay
them for their time. I just need to get it working, and I'm obviously
in over my head.

Thanks

On Jan 11, 7:04 am, Denis Becker <den1s.bec...@googlemail.com> wrote:
> Hi... i think u have to deinstall the libav packages first and The x264 as well
>
> Jeremy <jeremy.doublest...@gmail.com> schrieb:

Baptiste Coudurier

unread,
Jan 14, 2012, 3:53:05 PM1/14/12
to ffmbc-...@googlegroups.com, Jeremy
Hi Jeremy,

You should verify that you have /usr/local/lib (if libx264.so.119 is there)
in a file in /etc/ld.so.conf.d directory.
Then you should execute sudo ldconfig

--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org

Lou

unread,
Jan 16, 2012, 1:29:07 AM1/16/12
to ffmbc-...@googlegroups.com
You might find these instructions useful:

Compile FFmpeg on CentOS 6.0
https://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide

It's for FFmpeg, but you can easily substitute FFmbc.

Also, I recommend a simpler set of ./configure options. Ask yourself
if really need all of those (gsm, openjpeg, etc). For example,
--enable-runtime-cpudetect is generally used when compiling for other
machines or for a binary made for a distribution, I believe.

Next time make sure you don't have multiple versions of x264 installed
(including any (lib)x264-devel packages if those exist), and if you
install x264 as shared then you should do the same with ffmbc.

Jeremy

unread,
Jan 17, 2012, 9:29:48 AM1/17/12
to ffmbc-discuss
Thank you SOOO much for you help. That article really clarified a few
things.

For others who might be struggling, I did the following:

1. Removed ffmpeg and x264 via yum, and then followed the instructions
in the compilation guide.
2. I used the following to configure ffmbc:

./configure --enable-gpl --enable-libmp3lame --enable-libtheora --
enable-libvorbis --enable-libvpx --enable-libx264 --disable-crystalhd
--enable-nonfree --enable-libfaac --enable-libxvid --enable-static --
enable-pic --disable-shared --enable-postproc


3. I added a symbolic link in /usr/lib64 to /usr/local/lib/libx264.so.
120


Thanks again for your help. This project is amazing! Keep up the good
work!

On Jan 16, 1:29 am, Lou <hungryhungryho...@gmail.com> wrote:
> You might find these instructions useful:
>
> Compile FFmpeg on CentOS 6.0https://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide

Baptiste Coudurier

unread,
Jan 17, 2012, 2:57:01 PM1/17/12
to ffmbc-...@googlegroups.com
Hi Jeremy,

The problem with 3 is that you will have to do that for many other libraries.
See my mail below to fix all the libraries you have in /usr/local

- Create /etc/ld.so.conf.d/local.conf file
- Write /usr/local/lib in it
- execute ldconfig

You won't have to link in /usr/lib anymore

--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org

Reply all
Reply to author
Forward
0 new messages