Illegal text transition to non_lazy_ptr error when building in xcode 4 with libav * libraries

I am trying to create a simple application that uses the ffmpeg libav * libraries in xcode 4 and get the following error:

ld: illegal text reloc for non_lazy_ptr from / ffmpeg / temp / ffmpeg -0.8 / builduni / lib / libavcodec.a (ac3.o) in _ff_ac3_bit_alloc_calc_psd for i386 architecture

I already tried to run runlib -c libavcodec.a to fix this problem, but nothing happened. One more thing: libav * libraries are complete binary files (i386 + x86_64).

Any ideas what this could be?

+3
source share
1 answer

. , http://lists.apple.com/archives/unix-porting/2008/Jan/msg00027.html

:

-read_only_relocs suppress

* * _trail R15. , _trail . _trail libmodule.dylib. , (dyld) . dyld . libdyalog (, libdyalog.a) pere.s. , . (dyld) ( ) i386, -read_only_relocs .

+4

All Articles