# 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=”。
谁能告诉我那些选项是什么意思?哪里可以找到详细解释?
谢谢。我在等你的帮助。
最佳答案
您始终可以将configure
脚本运行为configure --help
;它将打印有关许多已接受参数的使用说明和信息——通常,希望是感兴趣的特定于包的参数。
也就是说,--extra-cflags
将为 C 编译器提供额外的命令行开关,--as
将为汇编器提供路径,--sysroot
将提供备用安装目录,而 --extra-ldflags
将为链接器提供额外的标志。这些都是相当先进的,您不太可能需要使用它们。
关于iphone - 配置的选项,例如 "--extra-cflags"--- 我很困惑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10475903/