使用libx264在cygwin上编译ffmpeg时构建错误

时间:2011-01-24 20:27:49

标签: ffmpeg x264

使用以下命令配置ffmpeg(0.6.1)(使用x264-snapshot-20101228-2245快照) 与Gcc版本:gcc(GCC)4.3.4 20090804(发布)

./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?

1 个答案:

答案 0 :(得分:1)

对于av_宏,使用bswap前缀在FFmpeg GIT中为fixed。您应该更新到最新的git HEAD