[MPlayer-cygwin] Compiling mplayer with MinGw

christophe.perinaud@free.fr free at prozaque.mine.nu
Wed Aug 20 15:28:43 CEST 2003


Sorry Diego.
I will take care of that. 

My pb is that i get errors when i compile mplayer with the make command of MinGw.
The fd_set is declared in winsock.h wich is not included in mplayer.c The other errors are from includes that can not exist as ioctl.h and wait.h are for POSIX systems and MinGW is using ANSI one.

Just i did not find any tips to get that working.
I have the last versions of Msys, MinGW, the types.h file has been replaced and i'm using the 0.91 sources of mplayer (not cvs for now)

Thanks

----------------------

gcc -c -O4 -march=i586 -mcpu=i586 -pipe -ffast-math -fomit-frame-pointer -Ilibmpdemux -Iloader -Ilibvo       -o mplayer.o mplayer.c
mplayer.c:6:23: sys/ioctl.h: No such file or directory
mplayer.c:9:22: sys/wait.h: No such file or directory
In file included from loader/wine/avifmt.h:14,
                 from libmpdemux/stheader.h:5,
                 from mplayer.c:144:
loader/wine/windef.h:131:1: warning: "_stdcall" redefined
mplayer.c:1:1: warning: this is the location of the previous definition
loader/wine/windef.h:132:1: warning: "_fastcall" redefined
mplayer.c:1:1: warning: this is the location of the previous definition
loader/wine/windef.h:133:1: warning: "__fastcall" redefined
mplayer.c:1:1: warning: this is the location of the previous definition
loader/wine/windef.h:140:1: warning: "_cdecl" redefined
mplayer.c:1:1: warning: this is the location of the previous definition
loader/wine/windef.h:146:1: warning: "__declspec" redefined
mplayer.c:1:1: warning: this is the location of the previous definition
loader/wine/windef.h:573:1: warning: "_MAX_PATH" redefined
In file included from mplayer.c:2:
f:/mingw/include/stdlib.h:65:1: warning: this is the location of the previous definition
In file included from loader/wine/avifmt.h:14,
                 from libmpdemux/stheader.h:5,
                 from mplayer.c:144:
loader/wine/windef.h:574:1: warning: "MAX_PATH" redefined
In file included from mplayer.c:2:
f:/mingw/include/stdlib.h:62:1: warning: this is the location of the previous definition
In file included from loader/wine/avifmt.h:14,
                 from libmpdemux/stheader.h:5,
                 from mplayer.c:144:
loader/wine/windef.h:575:1: warning: "_MAX_DRIVE" redefined
In file included from mplayer.c:2:
f:/mingw/include/stdlib.h:66:1: warning: this is the location of the previous definition
In file included from loader/wine/avifmt.h:14,
                 from libmpdemux/stheader.h:5,
                 from mplayer.c:144:
loader/wine/windef.h:577:1: warning: "_MAX_FNAME" redefined
In file included from mplayer.c:2:
f:/mingw/include/stdlib.h:68:1: warning: this is the location of the previous definition
In file included from mplayer.c:158:
fifo.c: In function `mplayer_put_key':
fifo.c:14: `fd_set' undeclared (first use in this function)
fifo.c:14: (Each undeclared identifier is reported only once
fifo.c:14: for each function it appears in.)
fifo.c:14: parse error before "rfds"
fifo.c:18: `rfds' undeclared (first use in this function)
mplayer.c: In function `exit_sighandler':
mplayer.c:463: `SIGKILL' undeclared (first use in this function)
mplayer.c:471: `SIGQUIT' undeclared (first use in this function)
mplayer.c: In function `parse_cfgfiles':
mplayer.c:506: too many arguments to function `mkdir'
mplayer.c: In function `main':
mplayer.c:720: warning: passing arg 2 of `m_config_register_options' from incompatible pointer type
mplayer.c:1055: `SIGHUP' undeclared (first use in this function)
mplayer.c:1059: `SIGQUIT' undeclared (first use in this function)
mplayer.c:1062: `SIGBUS' undeclared (first use in this function)
make: *** [mplayer.o] Error 1






More information about the MPlayer-cygwin mailing list