[FFmpeg-devel] LC undeclared (with faad.h)

Rene Storm rene.storm
Fri May 11 16:03:30 CEST 2007


Hi Folks,

 

I've got some trouble compiling ffmpeg with faad on SLES 10 and/or
RedHat 5.

LC undeclared...

 

I've seen errors from other people which forgot to include faad.h, but
imho my LD_FLAGS and CFLAGS are correct.

Maybe there are some missing devel packages?

 

 

Any help would be appreciated....

 

 

      ./configure --enable-libfaac --enable-liba52 --enable-libmp3lame \

        --enable-xvid --enable-libvorbis --enable-libdts --enable-x264
--enable-libfaad \

        --enable-libogg --enable-gpl --enable-pp --enable-pthreads \

        --prefix=$DST

 

make[1]: Entering directory
`/x/sources/ffmpeg/ffmpeg-export-2007-05-02/libavcodec'

gcc -I"/x/sources/ffmpeg/ffmpeg"/libswscale  -DHAVE_AV_CONFIG_H
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
-I"/x/sources/ffmpeg/ffmpeg" -I"/x/sources/ffmpeg/ffmpeg"
-I"/x/sources/ffmpeg/ffmpeg"/libavutil -g
-I/x/ffmpeg_test/faad/include -I/x/ffmpeg_test/faac/include
-I/x/ffmpeg_test/a52dec/include -I/x/ffmpeg_test/flac/include
-I/x/ffmpeg_test/lame/include -I/x/ffmpeg_test/libogg/include
-I/x/ffmpeg_test/libvorbis/include -I/x/ffmpeg_test/x264/include
-I/x/ffmpeg_test/xvidcore/include -I/x/ffmpeg_test/ffmpeg/include
-I/x/ffmpeg_test/libdts/include -I/x/ffmpeg_test/libdts/include
-fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -O3  -c -o faad.o faad.c

 

In file included from faad.c:30:

avcodec.h:2482: warning: 'ImgReSampleContext' is deprecated

avcodec.h:2485: warning: 'ImgReSampleContext' is deprecated

faad.c: In function 'faac_decode_frame':

faad.c:140: warning: unused variable 'sample_buffer'

faad.c: In function 'faac_decode_init':

faad.c:304: error: 'LC' undeclared (first use in this function)

faad.c:304: error: (Each undeclared identifier is reported only once

faad.c:304: error: for each function it appears in.)

make[1]: *** [faad.o] Error 1

make: *** [lib] Error 2

 

# head -n 304 ./libavcodec/faad.c | tail -1

faac_cfg->defObjectType = LC;

 

Regards

 

Rene Storm

 





More information about the ffmpeg-devel mailing list