3
    # configure for i386 build
./configure \
--cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc \
--as='gas-preprocessor.pl /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' \
--sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk \
--extra-ldflags=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system \
--target-os=darwin \
--arch=i386 \
--cpu=i386 \
--extra-cflags='-arch i386' \
--extra-ldflags='-arch i386' \
--prefix=compiled/i386 \
--enable-cross-compile \
--disable-armv5te \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffserver \
--disable-ffprobe \
--disable-doc

以下は、i386 用の ffmpeg 静的ライブラリをビルドします。しかし、「--extra-cflags」、「--extra-ldflags」、「--sysroot="、"--as="」などのオプションの意味がわかりません。

who can tell me about those options とはどういう意味ですか? 詳細な説明はどこにありますか?</p>

ありがとう 。私はあなたの助けを待っています。

4

2 に答える 2

8

configureスクリプトはいつでも次のように実行できますconfigure --help。使用法ステートメントと、受け入れられたパラメーターの多くに関する情報を出力します。通常は、パッケージ固有の重要なパラメーターについても出力します。

つまり--extra-cflags、C コンパイラに追加のコマンド ライン スイッチを提供--asし、アセンブラーへのパスを--sysroot提供し、別のインストール ディレクトリ--extra-ldflagsを提供し、リンカーに追加のフラグを提供します。これらはすべてかなり高度なものであり、それらを使用する必要はほとんどありません。

于 2012-05-07T02:14:00.967 に答える
0

configure通常の Autoconf スクリプトは、C フラグ ( CFLAGS) や C コンパイラの場所 ( ) などに環境変数を使用するため、これは面白いスクリプトCCです。例えば:

CC=/path/to/my/specific/gcc/version CFLAGS="-I/additional/include/dir -L/additional/library/dir" \
./configure --prefix=/installation/dir --host=cross-compiler-triplet-if-any \
--enable-something --with-some-feature --disable-something-else
于 2012-05-07T04:53:32.717 に答える