windows编译ffmpeg出现gcc is unable to create an executable file.
如题,按照网上的方法搭建了mingw+msys环境,编译ffmpeg
mingw装在 c:/msys/1.0
ffmpeg代码位置:C:\msys\1.0\home\hainei\ffmpeg-2009
执行./configure --enable-memalign-hack
后现错误:
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.err最后一段
check_ld
check_cc
BEGIN C:/msys/1.0/ffmpeg-conf-16260-1104-28727.c
1 int main(void){ return 0; }
END C:/msys/1.0/ffmpeg-conf-16260-1104-28727.c
gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -c -o C:/msys/1.0/ffmpeg-conf-25539-1104-4445.o C:/msys/1.0/ffmpeg-conf-16260-1104-28727.c
gcc -o C:/msys/1.0/ffmpeg-conf-29303-1104-14861.exe C:/msys/1.0/ffmpeg-conf-25539-1104-4445.o
./configure: line 645: C:/msys/1.0/ffmpeg-conf-29303-1104-14861.exe: Bad file number
C compiler test failed.
求大哥帮我看看啊。