[MPlayer-users] How to cross-compile mplayer.exe

bat guano batguano999 at hotmail.com
Fri Nov 30 02:11:55 CET 2012





> What system and binutils version are you running?

Hi
I'm using Xubuntu-12.04.

Not sure which version of binutils, maybe 2.23.
It's not a 'system' program, was compiled into 'toolchain' using this Zeranoe build script ---> $ wget http://zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-3.1.0

This is the method I've used now...

$ cd MPlayer-mingw
$ export PATH="$PATH:$HOME/mingw-w64-i686/bin"
$ ./configure \
--enable-cross-compile \
--cc=i686-w64-mingw32-gcc \
--ar=i686-w64-mingw32-ar \
--as=i686-w64-mingw32-as \
--nm=i686-w64-mingw32-nm \
--ranlib=i686-w64-mingw32-ranlib \
--windres=i686-w64-mingw32-windres && make

ALL those config options might not necessary, but it's done the job OK.
:-)

Next I will look into building some extra libraries.
;-)

@xubuntu:~/Desktop$ wine ./mplayer foo.wav
fixme:msvcrt:MSVCRT__sopen_s : pmode 0x01b6 ignored
Creating config file: Z:/home/user/Desktop/mplayer/config
MPlayer SVN-r35518-4.7.2 (C) 2000-2012 MPlayer Team
fixme:process:SetProcessDEPPolicy (3): stub

Playing foo.wav.
libavformat version 54.40.100 (internal)
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  59.4 (59.4) of 60.0 (01:00.0)  0.9%                                        
Exiting... (End of file)
 		 	   		  


More information about the MPlayer-users mailing list