[FFmpeg-devel] Fwd: [Libav-user] Anyone build ffmpeg for ios With xcode9?

He Lei helei0908 at hotmail.com
Thu Oct 26 13:15:49 EEST 2017



下面是被转发的邮件:

发件人: He Lei <helei0908 at hotmail.com<mailto:helei0908 at hotmail.com>>
主题: [Libav-user] Anyone build ffmpeg for ios With xcode9?
日期: 2017年10月26日 GMT+8 18:00:54
收件人: "libavdevice and libavfilter. This list is about using libavcodec libavformat libavutil" <libav-user at ffmpeg.org<mailto:libav-user at ffmpeg.org>>
回复-收件人: "This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter." <libav-user at ffmpeg.org<mailto:libav-user at ffmpeg.org>>

This is my cmd and ‘ffbuild/config.log’ before modify ‘configure' file:
 I tryied to modified configure file, removed "add_ldflags -sysroot" and add “-syslibroot”, there are other problems.
so, Has anyone been successful?

  1 mDEVELOPER=`xcode-select -print-path`
  2 mARCH=armv7s
  3 mTARGETOS=darwin
  4 mCC="${mDEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"
  5 mLD="${mDEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
  6 mSYSROOT="${mDEVELOPER}/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk"
  7 mSYSINC="-I${mSYSROOT}/usr/include"
  8 mSYSLIB="-L${mSYSROOT}/usr/lib"
  9 mCFLAGS=" -v ${mSYSINC}"
 10 mLDFLAGS=" -v ${mSYSLIB}"
 11 ./configure \
 12         --disable-asm \
 13         --enable-neon \
 14         --disable-shared \
 15         --enable-static \
 16         --enable-cross-compile \
 17         --target-os=${mTARGETOS} \
 18         --arch=${mARCH} \
 19         --sysroot=${mSYSROOT} \
 20         --cc=${mCC} \
 21         —-ld=${mLD} \
 22         --extra-cflags="${mCFLAGS}" \
 23         --extra-ldflags="${mLDFLAGS}”


ffbuild/config.log:
12983 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -v -L/Applications/Xcode.app/Conte      nts/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib --sysroot=/Applications/Xcode.app/Contents/Dev      eloper/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platform      s/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -mcpu= -o /var/folders/n8/nxrpvwpx6gnghblc492d_61w0000gn/T//ffconf.JMa9ed09/      test /var/folders/n8/nxrpvwpx6gnghblc492d_61w0000gn/T//ffconf.JMa9ed09/test.o
12984 @(#)PROGRAM:ld  PROJECT:ld64-302.3
12985 configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS)
12986 Library search paths:
12987         /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
12988         /usr/lib
12989         /usr/local/lib
12990 Framework search paths:
12991         /Library/Frameworks/
12992         /System/Library/Frameworks/
12993 ld: unknown option: --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS      .sdk
12994 C compiler test failed.
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org<mailto:Libav-user at ffmpeg.org>
http://ffmpeg.org/mailman/listinfo/libav-user



More information about the ffmpeg-devel mailing list