kewlbear/FFmpeg-iOS-build-script

"does not contain the arm64 architecture" form static x264 lib

Eafy opened this issue · 0 comments

Eafy commented

Environment:

  • Mac:MacOS Catalina 10.15.5
  • Xcode: 10.1 and 11.5
  • FFmpeg: 4.2
  • x264: x264-snapshot-20180426-2245

Problem:

  • ffbuild/config.log:

ld: warning: ignoring file /Users/test/Desktop/FFmpegiOS/4.2/x264-iOS/lib/libx264.a, file is universal (5 slices) but does not contain the arm64 architecture: /Users/test/Desktop/FFmpegiOS/4.2/x264-iOS/lib/libx264.a
Undefined symbols for architecture arm64:
"_x264_encoder_encode", referenced from:
_check_x264_encoder_encode in test.o
(maybe you meant: _check_x264_encoder_encode)
ld: symbol(s) not found for architecture arm64

  • x264 libs:

/Users/test/Desktop/FFmpegiOS/4.2/x264-iOS/lib/libx264.a (for architecture i386)current ar archive
/Users/test/Desktop/FFmpegiOS/4.2/x264-iOS/lib/libx264.a (for architecture armv7): current ar archive
/Users/test/Desktop/FFmpegiOS/4.2/x264-iOS/lib/libx264.a (for architecture armv7s): current ar archive
/Users/test/Desktop/FFmpegiOS/4.2/x264-iOS/lib/libx264.a (for architecture x86_64): current ar archive
/Users/test/Desktop/FFmpegiOS/4.2/x264-iOS/lib/libx264.a (for architecture arm64): current ar archive

  • My idea:
  1. No problem in macOS 10.4 builed;
  2. Only builed of ffmpeg is also shows 'current ar archive', is no 'current ar archive random library';

Is there any parameter that needs to be added on the macOS 10.15.* build?