3

私は多くのチュートリアルを読んでみました。私はグーグルに何時間も費やし、スタックオーバーフローは答えを試みました。これまでに私は読んだ: iPhone/iPad プロジェクトとhttps://github.com/lajos/iFrameExtractorでの armv6 および arv7 アーキテクチャFFMPEG 統合を使用して、iPhoneOS プラットフォーム用の FFMPEG ライブラリをコンパイルしようとしています

iOS 7/Xcode 5 との互換性のためにこのライブラリを構築しようとしていますが、機能していません。私が得る一般的なエラーは次のとおりです。

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
yasm/nasm not found or too old. Use --disable-yasm for a crippled build.

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
ffmpeg-user@ffmpeg.org 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.

それが終わったら、もっとたくさん手に入れたいと思います。そのような:

rm: illegal option -- .
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
make: *** [clean] Error 64

私は主にこのコマンドを使用して開始しようとしましたが、「make clean」で常にクラッシュします。

./configure \
--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
--as='/usr/local/bin/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk \
--target-os=darwin \
--arch=arm \
--cpu=cortex-a8 \
--extra-cflags='-arch armv7' \
--extra-ldflags='-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk' \
--prefix=compiled/armv7 \
--enable-cross-compile \
--enable-nonfree \
--enable-gpl \
--disable-armv5te \
--disable-swscale-alpha \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-asm \
--disable-debug
4

2 に答える 2

5

mooncatventures (私たちの) ffmpegdecoderFramework を使用するには、ビルド設定に入り、arch をクリックして armv7s を削除します。

また、ビルド アクティブ アーキテクチャのみを no に変更する必要があります。ここに画像の説明を入力

于 2013-10-17T16:22:59.743 に答える
3

mientus からのこの回答は私のために働いた: https://stackoverflow.com/a/19370679/661720

iOS7 および XCode5 のユニバーサル ffmpeg ライブラリをサポート:

ガス前処理装置を取り付ける

ZIP アイコンをクリックして https://github.com/mansr/gas-preprocessorをダウンロードします。/usr/bin ディレクトリに Gas-preprocessor.pl をコピーします。すべての権限を読み取りと書き込みに設定して、gas-preprocessor.pl の権限を変更します。

https://gist.github.com/m1entus/6983547からシェル スクリプトをダウンロードします。

sh build-ffmpeg.sh を実行します。

于 2013-11-19T06:12:42.527 に答える