ffmpeg在win8下面要怎么编译,需要安装什么

cut 发布于 2013/10/24 11:32
阅读 1K+
收藏 0

我现在下的ffmpeg是github最新版的

使用mingw-get-setup.exe默认的配置的mingw和msys

vc是vs2010版的

在msys.bat已经加入

call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"

但在最后编译的时候,老出什么配置了交叉编译之类的

$ ./configure --enable-shared --disable-static --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 Git.  If the latest version fails, report the problem to the
ffmpeg-user@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.


config.log的错误:

WARNING: pkg-config not found, library detection may fail.
mktemp -u XXXXXX
ulxoZo
WARNING: Unknown C compiler gcc, unable to select optimal CFLAGS
check_ld cc
check_cc
BEGIN /tmp/ffconf.pMhBGaHK.c
    1 int main(void){ return 0; }
END /tmp/ffconf.pMhBGaHK.c
gcc -c -o /tmp/ffconf.oaHPvrKk.o /tmp/ffconf.pMhBGaHK.c
./configure: line 754: gcc: command not found
C compiler test failed.



加载中
0
cut
cut
尼玛,写错了个环境变量。
cut
cut
回复 @melee7 : C:\MinGW\msys\1.0\etc\fstab 里面有个.sample文件,照那个写
melee7
melee7
我也是遇到和你同样的问题 环境也是一样的 但是我是新手 你能不能告诉我 到底环境变量哪里设置错误了? 谢谢了。
返回顶部
顶部