ios - Trying to compile the FFMPEG libraries for iPhoneOS platform with armv6 and arv7 architecture -
i'm trying compile ffmpeg libraries ios platform arm7 architecture. downloaded ffmpeg libraries http://www.ffmpeg.org.
i'm able build static libraries i386 architecture iphonesimulator. need libraries iphoneos. using configure command i'm getting error. below command details.
for i386(which error free):
./configure --enable-cross-compile --disable-debug --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --disable-network --disable-everything --enable-protocol=file --enable-demuxer=mov --enable-muxer=mpegts --enable-bsf=h264_mp4toannexb --arch=i386 --target-os=darwin --cc=/applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/usr/bin/gcc --as='./gas-preprocessor/gas-preprocessor.pl /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin/gcc' --sysroot=/developer/platforms/iphonesimulator.platform/developer/sdks/iphoneos6.1.sdk --cpu=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator6.1.sdk' --prefix="/users/amit/desktop/livulib-master/livulib/ffmpeg/bin/newlib"
for armv7:
./configure --enable-cross-compile --disable-debug --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --disable-network --disable-everything --enable-protocol=file --enable-demuxer=mov --enable-muxer=mpegts --enable-bsf=h264_mp4toannexb --arch=armv7 --target-os=darwin --cc=/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin/gcc --as='./gas-preprocessor/gas-preprocessor.pl /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin/gcc' --sysroot=/developer/platforms/iphoneos.platform/developer/sdks/iphoneos6.1.sdk --cpu=cortex-a9 --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7 -isysroot /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos6.1.sdk' --prefix="/users/amit/desktop/livulib-master/livulib/ffmpeg/bin/newlib"
for above command arm7 i'm getting error:
/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin/gcc unable create executable file. c compiler test failed. if think configure made mistake, make sure using latest version svn.
so please suggest me possible solution. why not working? or need update anything. thanks.
i realize question asked ~2.5 months ago, asker may have moved on, came across while searching answer same issue. so, hopefully, of out there!
all had verify paths using pointing existed.
specifically, trying run:
./configure \ --prefix=armv7 \ --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver \ --enable-avresample --enable-cross-compile \ --sysroot="/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos6.0.sdk" \ --target-os=darwin \ --cc="/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin/gcc" \ --extra-cflags="-arch armv7 -mfpu=neon -miphoneos-version-min=6.0" \ --extra-ldflags="-arch armv7 -isysroot /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos6.0.sdk -miphoneos-version-min=6.0" \ --arch=arm --cpu=cortex-a9 --enable-pic
when couldn't work, decided stop being lazy , checked directories listed in paths: starts "/applications/...". found didn't have "iphoneos6.0.sdk" (it's referenced above in paths) installed.
changing script worked:
./configure \ --prefix=armv7 \ --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver \ --enable-avresample --enable-cross-compile \ --sysroot="/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos6.1.sdk" \ --target-os=darwin --cc="/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin/gcc" \ --extra-cflags="-arch armv7 -mfpu=neon -miphoneos-version-min=6.0" \ --extra-ldflags="-arch armv7 -isysroot /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos6.1.sdk -miphoneos-version-min=6.0" \ --arch=arm --cpu=cortex-a9 --enable-pic
in short, double-check paths. hope helps!
Comments
Post a Comment