【发布时间】:2015-08-13 20:00:15
【问题描述】:
我尝试使用 MSYS2 和 MIngW 从源代码编译 FFmpeg 我使用的是 win7 64 位。 使用。
$ ./configure --enable-shared
我收到此错误:
Unknown OS 'msys_nt-6.1'.
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
solve the problem.
查看 config.log 我看到了(日志的结尾):
gcc -std=c99 -Wall -O3 -c -o /tmp/ffconf.fnJeLuIu.o /tmp/ffconf.e8DJYGJM.c
check_code cc int test[2*(sizeof(void *) > 4) - 1]
check_cc
BEGIN /tmp/ffconf.e8DJYGJM.c
1 int main(void) { int test[2*(sizeof(void *) > 4) - 1]; return 0; }
END /tmp/ffconf.e8DJYGJM.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -c -o /tmp/ffconf.fnJeLuIu.o /tmp/ffconf.e8DJYGJM.c
G:/msys64/tmp/ffconf.e8DJYGJM.c: In function 'main':
G:/msys64/tmp/ffconf.e8DJYGJM.c:1:22: error: size of array 'test' is negative
int main(void) { int test[2*(sizeof(void *) > 4) - 1]; return 0; }
^
check_cpp_condition stddef.h defined(__x86_64__)
check_cpp
BEGIN /tmp/ffconf.e8DJYGJM.c
1 #include <stddef.h>
2 #if !(defined(__x86_64__))
3 #error "unsatisfied condition: defined(__x86_64__)"
4 #endif
END /tmp/ffconf.e8DJYGJM.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -E -o /tmp/ffconf.fnJeLuIu.o /tmp/ffconf.e8DJYGJM.c
G:/msys64/tmp/ffconf.e8DJYGJM.c:3:2: error: #error "unsatisfied condition: defined(__x86_64__)"
#error "unsatisfied condition: defined(__x86_64__)"
^
Unknown OS 'msys_nt-6.1'.
我错过了什么?我做错了什么 ? 谢谢
【问题讨论】:
-
暂时解决:使用 msys 或 cygwin 交叉编译:|