[MPlayer-cygwin] [PATCH] mingw support for TOOLS/netstream

Diego Biurrun diego at biurrun.de
Wed May 4 22:54:32 CEST 2005


On Mon, May 02, 2005 at 06:37:44PM -0400, Erik Lunchpail wrote:
> 
> Decided to play around with netstream since a few
> people had been asking about a windows version of it,
> and managed to get it working. Surprisingly the socket
> transition wasn't nearly as bad as I thought. The
> attached patch is what I managed to compile it with
> after --disabling quite a lot, and resolving those
> straggling references picked up by libmpdemux.

How did you do that?  I cannot get it to compile currently.

> +	$(CC) $(CFLAGS) netstream.o -o netstream $(MPROOT)/libmpdemux/libmpdemux.a $(MPROOT)/libmpdvdkit2/libmpdvdkit.a $(MPROOT)/libmpcodecs/native/minilzo.o $(MPROOT)/libvo/aclib.o $(MPROOT)/libmpcodecs/img_format.o $(MPROOT)/liba52/liba52.a $(MPROOT)/m_option.o $(MPROOT)/m_struct.o $(MPROOT)/subreader.o $(MPROOT)/mp_msg.o $(MPROOT)/osdep/glob-win.o $(MPROOT)/osdep/shmem.o $(MPROOT)/osdep/timer-*.o $(MPROOT)/osdep/strl.o $(VORBIS_LIB) $(CDPARANOIA_LIB) $(Z_LIB) $(GIF_LIB) $(SMBSUPPORT_LIB) $(LIVE_LIBS) $(ARCH_LIB) $(COMMON_LIBS) $(WIN32_LIBS) -lwsock32 -lwinmm -lm
 
This is broken and fails on Linux since -lwsock32, -lwinmm and
$(MPROOT)/osdep/glob-win.o cannot be resolved.  You have a typo in
there, $(WIN32_LIBS) should be $(WIN32_LIB) and contain -lwsock32 and
-lwinmm.  This will bring us closer to a portable version.

Anyway, I'm going to be bold and break that line, reviewing changes in
such a beast is pure horror.
 
> -int verbose=0;
> +int verbose=1;
 
Why?

Diego




More information about the MPlayer-cygwin mailing list