我一直試圖建立ffmpeg在我能想到的每一種可能的方式。我正在嘗試從他們的git倉庫中獲得最新的修訂版本,並且使用了一個構建腳本,我已經確認它可以正常工作,它來自這個問題:iPhone SDK 4.3 libav compiling problem。劇本昨天更新了,顯然對問題中的人有用。失敗的建設ffmpeg爲armv6-7
我的問題是它不會爲armv6和armv7生成.a文件(或者實際上是任何文件)。並且因此命令將其連接到通用庫中失敗。我一直在使用構建腳本也試圖從iFrameExtractor沒有它也失敗,到底脂命令的任何成功,我得到如下:
lipo: can't open input file: ./compiled/armv6/lib/libavcodec.a (No such file or directory)
lipo: can't open input file: ./compiled/armv6/lib/libavdevice.a (No such file or directory)
lipo: can't open input file: ./compiled/armv6/lib/libavfilter.a (No such file or directory)
lipo: can't open input file: ./compiled/armv6/lib/libavformat.a (No such file or directory)
lipo: can't open input file: ./compiled/armv6/lib/libavutil.a (No such file or directory)
lipo: can't open input file: ./compiled/armv6/lib/libpostproc.a (No such file or directory)
lipo: can't open input file: ./compiled/armv6/lib/libswscale.a (No such file or directory)
,我也貼在整個輸出here如果任何人有任何想法要尋找什麼,在那裏(因爲我不知道從哪裏開始輸出,它幾乎5000行)。 我還要提到的,我是編譯它ARMv6的,的ARMv7和I386。我想在XCode中導入它以從視頻源獲取H.264幀。
當我嘗試建立的ARMv6我用下面的配置:
./configure \
--enable-cross-compile \
--arch=arm \
--extra-cflags='-arch armv6' \
--extra-ldflags='-arch armv6' \
--target-os=darwin \
--cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk \
--cpu=arm1176jzf-s \
--extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system \
--prefix=compiled/armv6
,並得到下面的輸出:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC#ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
這樣的問題,我應該用什麼C編譯器?我已經嘗試過不同的: 臂蘋果darwin10-GCC-4.2.1 臂蘋果darwin10-LLVM-GCC-4.2 GCC
但具有相同的結果。 gcc適用於i386和armv7,所以我想它應該適用於armv6以及
由於FFMPEG獲得LGPL/GPL許可,您知道您無法將FFMPEG用於要提交至App Store的應用程序嗎? – DarkDust
@DarkDust是的,我知道。但我想要編譯它。我還有什麼建議可以用來實時檢索h.264幀? –
[iFrameExtractor問題編譯ffmpeg問題]的可能重複(http://stackoverflow.com/questions/6994151/problem-compiling-ffmpeg-for-iframeextractor) –