[MPlayer-users] Build error Mingw/FFmpeg 6053875

Josh joshf87 at live.com
Sat Aug 10 10:37:41 CEST 2013


On 8/8/2013 04:21, Josh wrote:
> FFmpeg added something which isn't supported in mingw:
> http://git.videolan.org/?p=ffmpeg.git;a=commit;h=605387582bd35920b83a26dabbe1c0601f425621
>
>
> MPlayer configure sets '#define CONFIG_UNIX_PROTOCOL 1' /
> 'CONFIG_UNIX_PROTOCOL = yes', but FFmpeg itself disables this feature so
> FFmpeg by itself compiles. I can't figure out how to stop it from
> compiling that feature in MPlayer.
>
>
> CC      libavformat/tedcaptionsdec.o
> CC      libavformat/tee.o
> CC      libavformat/thp.o
> CC      libavformat/tiertexseq.o
> CC      libavformat/tmv.o
> CC      libavformat/tta.o
> CC      libavformat/tty.o
> CC      libavformat/txd.o
> CC      libavformat/udp.o
> libavformat/udp.c: In function 'udp_read':
> libavformat/udp.c:759:16: warning: unused variable 'nonblock'
> [-Wunused-variable]
> libavformat/udp.c:759:9: warning: unused variable 'avail'
> [-Wunused-variable]
> libavformat/udp.c: In function 'udp_close':
> libavformat/udp.c:838:9: warning: unused variable 'ret' [-Wunused-variable]
> CC      libavformat/unix.o
> libavformat/unix.c:29:20: fatal error: sys/un.h: No such file or directory
> compilation terminated.
> make[1]: *** [libavformat/unix.o] Error 1
> make[1]: Leaving directory `/mingw/src/x-mp/mplayer/ffmpeg'
> make: *** [ffmpeg/libavformat/libavformat.a] Error 2
>
> Also recently it is taking me literally days to receive anything on the
> MPlayer lists I have to go to the archive to see new posts, so maybe
> someone already mentioned it but I don't see it in the archive, sorry if
> it has been.
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
>

Well, since I use a bash script to automate compiling mplayer I use this 
workaround:

sed -i 's/CONFIG_UNIX_PROTOCOL = yes/CONFIG_UNIX_PROTOCOL = no/g' config.mak
sed -i 's/#define CONFIG_UNIX_PROTOCOL 1/#define CONFIG_UNIX_PROTOCOL 
0/g' config.h




More information about the MPlayer-users mailing list