windows编译ffmpeg出现gcc is unable to create an executable file
如题,按照网上的方法搭建了mingw+msys环境,编译ffmpeg
mingw装在 c:/MinGW
ffmpeg代码位置:d:/ffmpeg/ffmpeg-0.10.1
执行./configure --enable-shared --disable-static --enable-nonfree --enable-memalign-hack --enable-libmp3lame --enable-gpl --enable-libx264 --enable-libxvid --enable-libfaac --enable-libvo-aacenc --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --extra-cflags='-ld:/ffmpeg/ffmpeg-0.10.1/include' --extra-ldflags='-ld:/ffmpeg/ffmpeg-0.10.1/lib'
后现错误:
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from SVN. If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
这里贴上config.log最后一段
check_ld cc
check_cc
BEGIN /tmp/ffconf.iMtsJTOB.c
1 int main(void){ return 0; }
END /tmp/ffconf.iMtsJTOB.c
gcc -ld:/ffmpeg/ffmpeg-0.10.1/include -c -o /tmp/ffconf.rsMbqSSB.o /tmp/ffconf.iMtsJTOB.c
gcc -ld:/ffmpeg/ffmpeg-0.10.1/lib -o /tmp/ffconf.ioBipJlK.exe /tmp/ffconf.rsMbqSSB.o
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -ld:/ffmpeg/ffmpeg-0.10.1/lib
collect2.exe: error: ld returned 1 exit status
C compiler test failed.
请教各位大牛该如何解决啊