libx264を使用してCygwinでFFMPEGをコンパイルしながらエラーを構築します

StackOverflow https://stackoverflow.com/questions/4786801

  •  24-10-2019
  •  | 
  •  

質問

以下のコマンド(x264-snapshot-20101228-2245スナップショット)を備えた構成ffmpeg(0.6.1)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を構築している手がかりを持っている人はいますか?

役に立ちましたか?

解決

これは 修繕 ffmpeg gitを使用して av_ のプレフィックス bswap マクロ。最新のgitに更新する必要があります HEAD.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top