2011-01-24 67 views
1

配置的ffmpeg(0.6.1)具有低於命令(X264-快照20101228-2245快照) 用gcc版本:GCC(GCC)4.3.4 20090804(釋放)生成錯誤在編譯在Cygwin FFMPEG與libx264

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

這是在FFmpeg GIT中使用av_前綴爲bswap宏的fixed宏。你應該更新到最新的git HEAD

+0

謝謝伊斯梅爾,這個錯誤與最新版本的ffmpeg一起消失了。 – 2011-01-26 17:49:52