[MPlayer-users] compilation error
Abu Abdullah
falcon.sheep at gmail.com
Sat Feb 14 05:01:11 CET 2015
Hi,
I'm trying to compile the latest code in Fedora using the toolchain
for windows executable. I'm using fedora 21. i have set the
environment using:
yum install mingw32-*
I'm using the below script:
*******************
make distclean;
./configure \
--enable-runtime-cpudetection \
--charset=UTF-8 \
--enable-cross-compile \
--windres=i686-w64-mingw32-windres \
--cc=i686-w64-mingw32-gcc \
--ranlib=i686-w64-mingw32-ranlib \
--ar=i686-w64-mingw32-ar \
--as=i686-w64-mingw32-as \
--nm=i686-w64-mingw32-nm \
--enable-static \
--disable-mencoder;
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;
make;
strip mplayer.exe;
*********************
it was working long time ago with older environment. now it is
throwing errors about conflicting types ...... :
i686-w64-mingw32-gcc -MMD -MP -Wundef -Wall -Wno-switch
-Wno-parentheses -Wpointer-arith -Wredundant-decls
-Werror=format-security -Wstrict-prototypes -Wmissing-prototypes
-Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99
-Werror-implicit-function-declaration -D_ISOC99_SOURCE -I. -Iffmpeg
-O4 -march=i486 -mtune=generic -pipe -ffast-math -fomit-frame-pointer
-fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -fno-common -DZLIB_CONST -c -o
libmpcodecs/ad_spdif.o libmpcodecs/ad_spdif.c
In file included from libmpcodecs/ad_internal.h:25:0,
from libmpcodecs/ad_spdif.c:23:
./stream/stream.h: In function 'stream_seek':
./stream/stream.h:321:3: warning: unknown conversion type character
'l' in format [-Wformat=]
mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%"PRIX64"\n", pos);
^
./stream/stream.h:321:3: warning: too many arguments for format
[-Wformat-extra-args]
./stream/stream.h:325:12: warning: unknown conversion type character
'l' in format [-Wformat=]
"Invalid seek to negative position %"PRIx64"!\n", pos);
^
./stream/stream.h:325:12: warning: too many arguments for format
[-Wformat-extra-args]
In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
from
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
from ffmpeg/libavformat/os_support.h:112,
from ffmpeg/libavformat/internal.h:26,
from libmpcodecs/ad_spdif.c:26:
/usr/i686-w64-mingw32/sys-root/mingw/include/wingdi.h: At top level:
/usr/i686-w64-mingw32/sys-root/mingw/include/wingdi.h:603:5: error:
conflicting types for 'BITMAPINFOHEADER'
} BITMAPINFOHEADER,*LPBITMAPINFOHEADER,*PBITMAPINFOHEADER;
^
In file included from ./libmpdemux/stheader.h:24:0,
from libmpcodecs/ad_internal.h:27,
from libmpcodecs/ad_spdif.c:23:
./libmpdemux/ms_hdr.h:76:3: note: previous declaration of
'BITMAPINFOHEADER' was here
} BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER;
^
In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
from
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
from ffmpeg/libavformat/os_support.h:112,
from ffmpeg/libavformat/internal.h:26,
from libmpcodecs/ad_spdif.c:26:
/usr/i686-w64-mingw32/sys-root/mingw/include/wingdi.h:603:23: error:
conflicting types for 'LPBITMAPINFOHEADER'
} BITMAPINFOHEADER,*LPBITMAPINFOHEADER,*PBITMAPINFOHEADER;
^
In file included from ./libmpdemux/stheader.h:24:0,
from libmpcodecs/ad_internal.h:27,
from libmpcodecs/ad_spdif.c:23:
./libmpdemux/ms_hdr.h:76:42: note: previous declaration of
'LPBITMAPINFOHEADER' was here
} BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER;
^
In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
from
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
from ffmpeg/libavformat/os_support.h:112,
from ffmpeg/libavformat/internal.h:26,
from libmpcodecs/ad_spdif.c:26:
/usr/i686-w64-mingw32/sys-root/mingw/include/wingdi.h:603:43: error:
conflicting types for 'PBITMAPINFOHEADER'
} BITMAPINFOHEADER,*LPBITMAPINFOHEADER,*PBITMAPINFOHEADER;
^
In file included from ./libmpdemux/stheader.h:24:0,
from libmpcodecs/ad_internal.h:27,
from libmpcodecs/ad_spdif.c:23:
./libmpdemux/ms_hdr.h:76:22: note: previous declaration of
'PBITMAPINFOHEADER' was here
} BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER;
^
In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
from
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
from ffmpeg/libavformat/os_support.h:112,
from ffmpeg/libavformat/internal.h:26,
from libmpcodecs/ad_spdif.c:26:
/usr/i686-w64-mingw32/sys-root/mingw/include/wingdi.h:672:5: error:
conflicting types for 'BITMAPINFO'
} BITMAPINFO,*LPBITMAPINFO,*PBITMAPINFO;
^
In file included from ./libmpdemux/stheader.h:24:0,
from libmpcodecs/ad_internal.h:27,
from libmpcodecs/ad_spdif.c:23:
./libmpdemux/ms_hdr.h:80:3: note: previous declaration of 'BITMAPINFO' was here
} BITMAPINFO, *LPBITMAPINFO;
^
In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
from
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
from ffmpeg/libavformat/os_support.h:112,
from ffmpeg/libavformat/internal.h:26,
from libmpcodecs/ad_spdif.c:26:
/usr/i686-w64-mingw32/sys-root/mingw/include/wingdi.h:672:17: error:
conflicting types for 'LPBITMAPINFO'
} BITMAPINFO,*LPBITMAPINFO,*PBITMAPINFO;
^
In file included from ./libmpdemux/stheader.h:24:0,
from libmpcodecs/ad_internal.h:27,
from libmpcodecs/ad_spdif.c:23:
./libmpdemux/ms_hdr.h:80:16: note: previous declaration of
'LPBITMAPINFO' was here
} BITMAPINFO, *LPBITMAPINFO;
^
Makefile:731: recipe for target 'libmpcodecs/ad_spdif.o' failed
make: *** [libmpcodecs/ad_spdif.o] Error 1
[oracle at localhost mplayer]$ strip mplayer.exe;
strip: 'mplayer.exe': No such file
***************
Any help is really appreciated.
More information about the MPlayer-users
mailing list