kewlbear / FFmpeg-iOS-build-script

Shell scripts to build FFmpeg for iOS and tvOS
3.03k stars 897 forks source link

arm64 Absolute addressing not allowed #107

Closed frixos25 closed 7 years ago

frixos25 commented 7 years ago

Hello, i have successfull linked ffmpeg in my ios xamarin app with the armv7 cpu. Now i try the same with the arm64 cpu and i get the error: Error Native linking error: Absolute addressing not allowed in arm64 code but used in '_ff_fft_permute_neon' referencing '_ff_cos_256' for architecture arm64 Any ideas?

frixos25 commented 7 years ago

i found the solution: In the ffmpeg build-ffmpeg.sh add under CFLAGS -fPIC and under CONFIGURE_FLAGS -enable-pic