[Ffmpeg-devel] [PATCH] Win32 compile + amr_wb support

Michel Bardiaux mbardiaux
Thu Sep 22 17:33:09 CEST 2005


Federico Rossi wrote:
> Hi all.
> I'd like to compile ffmpeg with amr-wb support in Windows environment.
> I used MinGW ans MSYS.
> In the console I lunched 
> 
> ./configure --enable-amr_wb --enable-memalign-hack --enable-shared
> 
> So I followed the "configure" instructions:
> 
> "Make sure you have downloaded TS26.204
> V5.1.0 from
> http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
> and extracted the source to libavcodec/amrwb_float"
> 
> I obtained the following error messages:
> 
> amr.o(.text+0x1c): In function `amr_nb_decode_init':
> C:/MinGW/MSYS/1.0/home/Freddy/ffmpeg/libavcodec/amr.c:342: undefined reference to `Decoder_Interface_init'
> amr.o(.text+0xa4): In function `amr_nb_encode_init':
> C:/MinGW/MSYS/1.0/home/Freddy/ffmpeg/libavcodec/amr.c:377: undefined reference to `Encoder_Interface_init'
> amr.o(.text+0x186): In function `amr_nb_decode_close':
> C:/MinGW/MSYS/1.0/home/Freddy/ffmpeg/libavcodec/amr.c:395: undefined reference to `Decoder_Interface_exit'
> amr.o(.text+0x1ad): In function `amr_nb_encode_close':
> C:/MinGW/MSYS/1.0/home/Freddy/ffmpeg/libavcodec/amr.c:402: undefined reference to `Encoder_Interface_exit'
> amr.o(.text+0x216): In function `amr_nb_decode_frame':
> C:/MinGW/MSYS/1.0/home/Freddy/ffmpeg/libavcodec/amr.c:436: undefined reference to `Decoder_Interface_Decode'
> amr.o(.text+0x291): In function `amr_nb_encode_frame':
> C:/MinGW/MSYS/1.0/home/Freddy/ffmpeg/libavcodec/amr.c:448: undefined reference to `Encoder_Interface_Encode'
> collect2: ld returned 1 exit status
> make[1]: *** [avcodec.dll] Error 1
> make[1]: Leaving directory `/home/Freddy/ffmpeg/libavcodec'
> make: *** [lib] Error 2
> 
> Can you help me please?
> Best Regards
> 
> Federico
> 
Empirically:

amr_nb and amr_wb together: build OK. You could use this as a workaround.

amr_nb alone: OK.

amr_wb alone: what you show. Seems to be due to bad #ifs in amr.c. Patch 
attached.

-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: amr.pat
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050922/1d0d1122/attachment.asc>



More information about the ffmpeg-devel mailing list