Construire une erreur lors de la compilation ffmpeg sur Cygwin avec libx264

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

  •  24-10-2019
  •  | 
  •  

Question

ffmpeg configuré (0.6.1) avec commande ci-dessous (avec cliché x264-snapshot-20101228-2245) avec la version gcc: gcc (GCC) 4.3.4 20.090.804 (version)

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

et après cela, la commande "make" donne ci-dessous erreur.

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

J'ai vérifié beaucoup de liens qui portent la même erreur, mais aucune solution n'a été fournie. Tout le monde a une idée qui construisent déjà ffmpeg sur Cygwin?

Était-ce utile?

La solution

Ceci est fixe dans FFmpeg GIT par en utilisant le préfixe de av_ pour les macros bswap. Vous devez mettre à jour la dernière HEAD git.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top