[FFmpeg-user] Question about compile ffmpeg for windows application on Ubuntu via cross-tools i686-w64-mingw32
宪国 刘
liuxianguo1982 at hotmail.com
Sun Mar 18 04:07:24 CET 2012
Hi,
I have a question about compile ffmpeg for windows application on Ubuntu via cross-tools i686-w64-mingw32.
../ffmpeg-0.8.7/configure --enable-cross-compile --cross-prefix=i686-w64-mingw32- --target-os=mingw32 --arch=x86 --prefix=/home/liuxianguo/opensdk/ffmpeg --disable-static --enable-shared --enable-version3 --enable-gpl --enable-nonfree --enable-w32threads --enable-runtime-cpudetect --enable-memalign-hack --enable-ffplay --extra-cflags="-I/home/liuxianguo/opensdk/include -I/home/liuxianguo/mingw/include" --extra-ldflags="-L/home/liuxianguo/opensdk/lib -L/home/liuxianguo/mingw/lib" --enable-libfaac --enable-libvo-aacenc --enable-libmp3lame --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --extra-libs='-lx264 -lpthread'
when I add --extra-libs='-lx264 -lpthread'
root at ubuntu:/home/liuxianguo/studio/opensource/build-ffmpeg# ../ffmpeg-0.8.7/configure --enable-cross-compile --cross-prefix=i686-w64-mingw32-
--pkg-config=pkg-config --target-os=mingw32 --arch=x86 --prefix=/home/liuxianguo/opensdk/ffmpeg --disable-static --enable-shared --enable-version3
--enable-gpl --enable-nonfree --enable-w32threads --enable-runtime-cpudetect --enable-memalign-hack --enable-ffplay
--extra-cflags="-I/home/liuxianguo/opensdk/include -I/home/liuxianguo/studio/mingw-w64-v2.0.1/mingw-w64-headers/include"
--extra-ldflags=-L/home/liuxianguo/opensdk/lib --enable-libfaac --enable-libvo-aacenc --enable-libmp3lame --enable-libopenjpeg --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-libxvid --enable-zlib
i686-w64-mingw32-gcc is unable to create an executable file.
C compiler test failed.
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 at 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.
More information about the ffmpeg-user
mailing list