Failed to compile i386 ffmpeg dylib on Mac OS X

I am running a 64-bit Lion, but I need to compile a 32-bit version of ffmpeg, because the other library that I use is only available as 32-bit. I tried several different configurations, but they all give me errors. Here is what I tried:

./configure --disable-static --enable-shared --disable-outdev = sdl --disable-bzlib --disable-libfreetype --disable-libopenjpeg --enable-zlib --enable-runtime-cpudetect --arch = i386 --extra-cflags = "- arch i386" --extra-ldflags = "- arch i386" --target-os = darwin --enable-cross-compile

./configure --disable-static --enable-shared --disable-outdev = sdl --disable-bzlib --disable-libfreetype --disable-libopenjpeg --enable-zlib --enable-runtime-cpudetect --arch = i386 --extra-cflags = "- arch i386" --extra-ldflags = "- arch i386"

./configure --disable-static --enable-shared --disable-outdev = sdl --disable-bzlib --disable-libfreetype --disable-libopenjpeg --enable-zlib --enable-runtime-cpudetect --arch = x86_32

I either get a "finished registers when registering registers" error during make, or gcc complains that cross-compilation is inactive.

+5
source share
4 answers

ffmpeg build 08d2cee4, clang gcc. , :

./configure --disable-static --enable-shared --disable-outdev=sdl --enable-runtime-cpudetect --disable-bzlib --disable-libfreetype --disable-libopenjpeg --enable-zlib --cc="clang -m32"

Carl libav-user!

, - : http://ffmpeg.org/pipermail/libav-user/2011-December/001013.html

+11

-m32, gcc 32- .

+1

- : libavcodec/h264_cabac.o?

-fomit-frame-pointer. IIRC, gcc, . %ebp .

0

i " " --disable-asm

, .

0
source

All Articles