[MPlayer-cygwin] While compile TOOLS/netstream in MINGW32 (WinXP), some error

Diego Biurrun diego at biurrun.de
Sun Sep 26 11:57:27 CEST 2004


On Fri, Sep 24, 2004 at 11:26:49AM +0800, qiangdy wrote:
> While compile TOOLS/netstream in MINGW32 (Under WinXP OS),  for I want to
> get a WIN32 netstream executable file, but some error here:
> 
> $ make
> gcc -I../libvo -I../../libvo  -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I../.. -I../../loader  netstream.o -o netstream ../../libmpdemux/libmpdemux.a ../../libmpdvdkit2/libmpdvdkit.a ../../libmpcodecs/native/minilzo.o ../../libvo/aclib.o ../../libmpcodecs/img_format.o ../../liba52/liba52.a ../../libao2/afmt.o ../../m_option.o ../../m_struct.o ../../subreader.o ../../mp_msg.o ../../osdep/shmem.o ../../osdep/timer-*.o ../../osdep/strl.o       -lpthread  -lm
> g:\MinGW\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpthread
> make: *** [netstream] Error 1
> 
> Then I remove "-lpthread" from Makefile

I replaced -lpthread by $(ARCH_LIB), this should fix this particular
error.

I wonder how you got it to compile, though, I had to add

#ifdef __MINGW32__
#define SIGHUP  1
#define SIGQUIT 3
#define SIGKILL 9
#include <ws2tcpip.h>
#endif

to netstream.c to get it to compile.

Linking does not even work under Linux:

cc -I../libvo -I../../libvo -I/usr/X11R6/include -g -O4 -march=k6-3 -mcpu=k6-3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT  -I../.. -I../../loader  netstream.o -o netstream ../../libmpdemux/libmpdemux.a ../../libmpdvdkit2/libmpdvdkit.a ../../libmpcodecs/native/minilzo.o ../../libvo/aclib.o ../../libmpcodecs/img_format.o ../../liba52/liba52.a ../../libao2/afmt.o ../../m_option.o ../../m_struct.o ../../subreader.o ../../mp_msg.o ../../osdep/shmem.o ../../osdep/timer-*.o ../../osdep/strl.o  -lcdda_interface -lcdda_paranoia -lz    -lpthread  -lm
../../libmpdemux/libmpdemux.a(demuxer.o)(.text+0x27ba): In function `demux_open':
/usr/src/mplayer/dev/libmpdemux/demuxer.c:1413: undefined reference to `stream_cache_prefill_percent'
../../libmpdemux/libmpdemux.a(demuxer.o)(.text+0x27c2):/usr/src/mplayer/dev/libmpdemux/demuxer.c:1413: undefined reference to `stream_cache_min_percent'
collect2: ld returned 1 exit status
make: *** [netstream] Error 1

Does anybody have a clue how to fix this?

Diego




More information about the MPlayer-cygwin mailing list