具有以下命令(带有X264-SNAPSHOT-20101228-2245快照)的FFMPEG(0.6.1),带有GCC版本:GCC(GCC)4.3.4 20090804(Release)

./configure --enable-shared --disable-static --enable-pthreads --enable-libx264 
--enable-gpl --disable-doc --enable-memalign-hack 
--extra-ldflags="-L/usr/local/lib"

之后,“ make”命令给出以下错误。

CC      libavdevice/alldevices.o
CC      libavdevice/avdevice.o
CC      libavdevice/oss_audio.o
CC      libavdevice/vfwcap.o
CC      libavformat/4xm.o
In file included from /usr/include/endian.h:42,
                 from /usr/include/cygwin/types.h:22,
                 from /usr/include/sys/types.h:440,
                 from /usr/include/stdio.h:46,
                 from ./libavutil/common.h:34,
                 from ./libavutil/intreadwrite.h:25,
                 from libavformat/4xm.c:30:
/usr/include/byteswap.h:19: error: redefinition of `bswap_16'
./libavutil/x86/bswap.h:33: error: previous definition of `bswap_16' was here
/usr/include/byteswap.h:25: error: redefinition of `bswap_32'
./libavutil/x86/bswap.h:40: error: previous definition of `bswap_32' was here
/usr/include/byteswap.h:31: error: redefinition of `bswap_64'
./libavutil/bswap.h:70: error: previous definition of `bswap_64' was here
make: *** [libavformat/4xm.o] Error 1
bash: sudo: command not found

我检查了很多显示相同错误的链接,但没有提供解决方案。有人有任何线索已经在Cygwin上建立了FFMPEG吗?

有帮助吗?

解决方案

这是 固定的 在ffmpeg git中使用 av_ 前缀 bswap 宏。您应该更新到最新的git HEAD.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top