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

bat guano batguano999 at hotmail.com
Sat Dec 15 00:46:54 CET 2012




Hello again.
In the crosscompile.txt file it suggests that MPlayer can be compiled using wine.
This is what it says:-
********
Wine
====
First, you need to install the "Wine" package and get a MPlayer SVN
checkout.
You don't need any dependencies other than those you already have for
your Linux build, because the Wine and Linux build will use them together.
Configure with

  ./configure --target=i686-wine --cc="winegcc -m32" --windres=wrc --enable-gui

and add any options you normally use for your Linux build, then run make.
********

When I ran this command:-
svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer && \
cd mplayer && \
git clone --depth 1 git://source.ffmpeg.org/ffmpeg && \
./configure --target=i686-wine --cc="winegcc -m32" --windres=wrc --enable-gui

It gave an error message:-
********
Resolving deltas: 100% (12197/12197), done.
Checking for gcc version ... 4.5.2 
Checking for working compiler ... 
Error: Compiler is not functioning correctly. Check your installation and custom CFLAGS  .
Check "config.log" if you do not understand why it failed.
********

This is the config log:-
********
configuration: --target=i686-wine --cc=winegcc -m32 --windres=wrc --enable-gui

============ Checking for gcc version ============
Result is: 4.5.2 
##########################################
============ Checking for working compiler ============
int main(void) { return 0; }

gcc    /tmp/mplayer-configure--1872/tmp.c -fno-pic -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -DWINE_NOWINSOCK -Dstricmp=strcasecmp -I. -Iffmpeg  -fno-common   -lwinmm   -o /tmp/mplayer-configure--1872/tmp.exe  -lm
/usr/bin/ld: cannot find -lwinmm
collect2: ld returned 1 exit status
********

Any idea why it's giving this message?
My compiler works OK when compiling Linux MPlayer with Ubuntu.
 		 	   		  


More information about the MPlayer-users mailing list