[FFmpeg-devel] Cross Compiling.

Marcus Johnson bumblebritches57 at gmail.com
Sun Mar 2 02:17:34 CET 2014


I'm on OS X 10.9.2 with clang from Xcode 5.0.2, and trying to cross compile
ffmpeg for Windows, everything works fine so long as it's built statically,
when I try building it with --disable-static --enable-shared I get the
following error message:

CC ffmpeg_filter.o

./compat/windows/makedef libavutil/libavutil.ver libavutil/adler32.o
libavutil/aes.o libavutil/atomic.o libavutil/audio_fifo.o
libavutil/avstring.o libavutil/base64.o libavutil/blowfish.o
libavutil/bprint.o libavutil/buffer.o libavutil/channel_layout.o
libavutil/cpu.o libavutil/crc.o libavutil/des.o libavutil/dict.o
libavutil/downmix_info.o libavutil/error.o libavutil/eval.o
libavutil/fifo.o libavutil/file.o libavutil/file_open.o
libavutil/float_dsp.o libavutil/frame.o libavutil/hash.o libavutil/hmac.o
libavutil/imgutils.o libavutil/intfloat_readwrite.o libavutil/intmath.o
libavutil/lfg.o libavutil/lls1.o libavutil/lls2.o libavutil/log.o
libavutil/log2_tab.o libavutil/lzo.o libavutil/mathematics.o
libavutil/md5.o libavutil/mem.o libavutil/murmur3.o libavutil/opt.o
libavutil/parseutils.o libavutil/pixdesc.o libavutil/random_seed.o
libavutil/rational.o libavutil/rc4.o libavutil/ripemd.o
libavutil/samplefmt.o libavutil/sha.o libavutil/sha512.o
libavutil/stereo3d.o libavutil/time.o libavutil/timecode.o libavutil/tree.o
libavutil/utils.o libavutil/x86/cpu.o libavutil/x86/float_dsp_init.o
libavutil/x86/lls_init.o libavutil/xga_font_data.o libavutil/xtea.o >
libavutil/avutil-52.def

./compat/windows/makedef: line 48: lib: command not found

Could not create temporary library.

make: *** [libavutil/avutil-52.dll] Error 1

make: *** Waiting for unfinished jobs....

2 warnings generated.

2 warnings generated.




My configure options are: ./configure --disable-yasm --enable-cross-compile
--target-os=win32 --arch=x86_64 --disable-static --enable-shared
--enable-opencl

At first I thought the error was due to opencl being enabled, so I ran it
again without enabling opencl and it gave the exact same error message,
also I disabled yasm because I was to lazy to download and install it, but
I really doubt that is the problem.


More information about the ffmpeg-devel mailing list