[Libav-user] Build of ffmpeg library with libx264 support for QNX

Pavel Vazharov pvazharov at abaltatech.com
Wed Jul 3 20:19:22 CEST 2013


I'm trying to build the ffmpege library with libx264 support for QNX.

I'm using the following configure script:

./configure \
        --arch=x86 \
        --disable-debug \
    --enable-static \
    --disable-shared \
    --target-os=qnx \
    --disable-programs \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-yasm \
    --disable-altivec \
    --disable-mmxext \
    --disable-inline-asm \
    --disable-doc \
    --disable-postproc \
    --prefix=./target/QNX/x86 \
    --enable-gpl \
    --disable-everything \
    --enable-encoder=libx264 \
    --enable-decoder=h264 \
    --enable-muxer=h264 \
    --enable-demuxer=h264 \
    --enable-parser=h264 \
    --disable-dxva2 \
        --disable-vda  \
        --disable-vdpau \
        --disable-protocols \
    --disable-mipsfpu \
    --enable-libx264 \
    --extra-cflags="-I../x264 -Wno-deprecated -Wno-deprecated-declarations"

The library builds fine but the problem is that when I try to link again
libavcodec.a in my application I get undefined references for symbols such

libavcodec.a(h264.o): In function `ff_h264_decode_init':
h264.c:(.text.unlikely+0xc6): undefined reference to `ff_h264dsp_init'
h264.c:(.text.unlikely+0x109): undefined reference to `ff_h264chroma_init'
h264.c:(.text.unlikely+0x119): undefined reference to `ff_h264qpel_init'
h264.c:(.text.unlikely+0x12e): undefined reference to `ff_h264_pred_init'
h264.c:(.text.unlikely+0x150): undefined reference to `ff_videodsp_init'
In function `get_ue_golomb_31':
h264_cavlc.c:(.text+0x151c): undefined reference to `ff_golomb_vlc_len'
h264_cavlc.c:(.text+0x152a): undefined reference to `ff_ue_golomb_vlc_code'

I don't know how to force the .c files with these functions to be build and
to be added in the final library. I mean I don't know the configure options
that breaks this.

Can anyone help me with this. Thanks in advance.

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130703/adf31507/attachment.html>

More information about the Libav-user mailing list