thinks,  I succeeded in removing "—sysroot,—ld” and set cc to gcc compiler. (in 
xcode, cc and gcc are linked to clang, so, runtime is still clang),there may be 
some unknown handing when check type of compiler in configure file
在 2017年10月31日,11:14,Shu Wang 
<[email protected]<mailto:[email protected]>> 写道:

I guess many success this per day, since `brew install ffmpeg` will build it 
with native toolchains.
I tested it too just now. If your configuration not working, check brew formula 
https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb

On Thu, Oct 26, 2017 at 6:00 PM, He Lei 
<[email protected]<mailto:[email protected]>> wrote:
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
[email protected]<mailto:[email protected]>
http://ffmpeg.org/mailman/listinfo/libav-user




--
Shu. Wang @ Bestminr
http://halfelf.me<http://halfelf.me/>
_______________________________________________
Libav-user mailing list
[email protected]<mailto:[email protected]>
http://ffmpeg.org/mailman/listinfo/libav-user

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to