[FFmpeg-devel] Build problem (on Os X)

Kvikant, Christian Scilla kvide
Wed Feb 4 10:20:59 CET 2009

> I was wondering if people already knew why this occurs (a perusal of 
> the archives suggested not).

The reason why it occurs is that code in dylibs are suppose to be
relocateable (re-addressable) during loading.

Now, the error is most likely due to the use of const variables defined in
the assembly code. This "feature" of not being able to reference data
segment variables from the assembly is present on all Os X platforms: x86,
ppc and arm.

The workaround is to define the variables in your c code and reference them
from your assembly.

And yes, this also solves the dylib build issue on the iPhone.


More information about the ffmpeg-devel mailing list