[MPlayer-dev-eng] mplayer stopped compiling for windows
Stephen Sheldon
sfsheldo at gmail.com
Mon Mar 2 22:58:59 EET 2020
I tried to compile a GUI version of mplayer for Windows after a long
hiatus. I ran into 2 problems.
I found a compilation error in libvo/gl* because XVisualInfo was not
defined. Attached is a patch to fix it.
I also had a problem with ffmpeg/libavformat/udp.c. I found a report on
the ffmpeg mailing and a solution. _WIN32_WINNT has to be at least
0600. Windows XP is not supported by ffmpeg. I added a definition to my
config script in "extra-cflags". Maybe the configure script should be
enhanced.
With these two changes I successfully compiled mplayer on Windows.
-------------- next part --------------
Index: libvo/gl_common.h
===================================================================
--- libvo/gl_common.h (revision 38175)
+++ libvo/gl_common.h (working copy)
@@ -316,6 +316,7 @@
extern void* (GLAPIENTRY *mpglAllocateMemoryMESA)(void *, int, size_t, float, float, float);
extern void (GLAPIENTRY *mpglFreeMemoryMESA)(void *, int, void *);
+#ifdef CONFIG_GL_X11
extern XVisualInfo *gl_vinfo;
-
+#endif
#endif /* MPLAYER_GL_COMMON_H */
More information about the MPlayer-dev-eng
mailing list