[FFmpeg-devel] Undefined symbols for architecture i386

krishnaks at iwavesystems.com krishnaks at iwavesystems.com
Thu Apr 19 09:48:45 CEST 2012


I added libz.dylib and all errors got solved.

> Hi,
> I am getting following errors when i try to link ffmpeg
> library(libavcodec.a)with IOS application.
> ffmpeg libraries are generated for i386 architecture.
> Where I am going wrong?
> Undefined symbols for architecture i386:
>   "_uncompress", referenced from:
>       _decode_frame in libavcodec.a(cscd.o)
>       _decode_frame in libavcodec.a(dxa.o)
>       _svq3_decode_init in libavcodec.a(svq3.o)
>       _mov_read_cmov in libavformat.a(mov.o)
>       _ff_id3v2_read in libavformat.a(id3v2.o)
>   "_inflateEnd", referenced from:
>       _flashsv_decode_end in libavcodec.a(flashsv.o)
>       _flashsv2_decode_end in libavcodec.a(flashsv.o)
>       _decode_end in libavcodec.a(lcldec.o)
>       _decode_frame in libavcodec.a(pngdec.o)
>       _decode_frame in libavcodec.a(tiff.o)
>       _decode_end in libavcodec.a(tscc.o)
>       _zerocodec_decode_close in libavcodec.a(zerocodec.o)
>       ...
>   "_deflateInit_", referenced from:
>       _flashsv_decode_frame in libavcodec.a(flashsv.o)
>       _encode_block in libavcodec.a(flashsv2enc.o)
>       _encode_init in libavcodec.a(lclenc.o)
>       _encode_init in libavcodec.a(zmbvenc.o)
>   "_deflateBound", referenced from:
>       _flashsv_decode_frame in libavcodec.a(flashsv.o)
>       _encode_frame in libavcodec.a(pngenc.o)
>       _encode_frame in libavcodec.a(lclenc.o)
>   "_deflateEnd", referenced from:
>       _flashsv_decode_frame in libavcodec.a(flashsv.o)
>       _encode_block in libavcodec.a(flashsv2enc.o)
>       _flashsv_encode_end in libavcodec.a(flashsvenc.o)
>       _encode_frame in libavcodec.a(pngenc.o)
>       _encode_end in libavcodec.a(lclenc.o)
>       _encode_end in libavcodec.a(zmbvenc.o)
>   "_inflateReset", referenced from:
>       _flashsv_decode_frame in libavcodec.a(flashsv.o)
>       _zlib_decomp in libavcodec.a(lcldec.o)
>       _decode_frame in libavcodec.a(tscc.o)
>       _zerocodec_decode_frame in libavcodec.a(zerocodec.o)
>       _decode_frame in libavcodec.a(zmbv.o)
>   "_inflate", referenced from:
>       _flashsv_decode_frame in libavcodec.a(flashsv.o)
>       _zlib_decomp in libavcodec.a(lcldec.o)
>       _decode_frame in libavcodec.a(pngdec.o)
>       _decode_frame in libavcodec.a(tiff.o)
>       _decode_frame in libavcodec.a(tscc.o)
>       _zerocodec_decode_frame in libavcodec.a(zerocodec.o)
>       _decode_frame in libavcodec.a(zmbv.o)
>       ...
>   "_deflate", referenced from:
>       _flashsv_decode_frame in libavcodec.a(flashsv.o)
>       _encode_block in libavcodec.a(flashsv2enc.o)
>       _encode_frame in libavcodec.a(pngenc.o)
>       _encode_frame in libavcodec.a(lclenc.o)
>       _encode_frame in libavcodec.a(zmbvenc.o)
>   "_inflateSync", referenced from:
>       _flashsv_decode_frame in libavcodec.a(flashsv.o)
>   "_inflateInit_", referenced from:
>       _flashsv_decode_init in libavcodec.a(flashsv.o)
>       _flashsv2_decode_init in libavcodec.a(flashsv.o)
>       _decode_init in libavcodec.a(lcldec.o)
>       _decode_frame in libavcodec.a(pngdec.o)
>       _decode_frame in libavcodec.a(tiff.o)
>       _decode_init in libavcodec.a(tscc.o)
>       _zerocodec_decode_init in libavcodec.a(zerocodec.o)
>       ...
>   "_compress2", referenced from:
>       _encode_block in libavcodec.a(flashsv2enc.o)
>       _flashsv_encode_frame in libavcodec.a(flashsvenc.o)
>   "_deflateReset", referenced from:
>       _encode_frame in libavcodec.a(lclenc.o)
>       _encode_frame in libavcodec.a(zmbvenc.o)
>   "_crc32", referenced from:
>       _png_write_chunk in libavcodec.a(pngenc.o)
>       _encode_frame in libavcodec.a(pngenc.o)
>   "_deflateInit2_", referenced from:
>       _encode_frame in libavcodec.a(pngenc.o)
>   "_compress", referenced from:
>       _encode_strip in libavcodec.a(tiffenc.o)
>      (maybe you meant: _ff_mp3_header_compress_bsf)
> ld: symbol(s) not found for architecture i386
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
>
> Regards,
> KP
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>



More information about the ffmpeg-devel mailing list