[MPlayer-users] how to compile mplayer for cygwin

Stephen Sheldon sfsheldo at gmail.com
Fri Jul 8 02:22:39 CEST 2011


Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:

> 
> On Thu, Jul 07, 2011 at 12:51:37PM -0700, robert rowntree wrote:
> > i installed into cygwin the mingw64-x86 packages
> 
> > $ ./configure --cc=i686-w64-mingw32-gcc --target=athlon64-mingw32 --yasm=nasm
> > Current branch master is up to date.
> > Checking for gcc version ... 3.4.4
> > Checking for working compiler ... yes
> > Detected operating system: MINGW32
> > Detected host architecture: athlon64
> > Checking for cross compilation ... no
> > Checking for host cc ... gcc
> 
> That obviously didn't work though since it still falls
> back to using gcc instead of i686-w64-mingw32-gcc.
> 

The first part of the triplet in the compiler name specifies the
target architecture, so the i686-w64-mingw32-gcc compiler will produce
32-bit code.

When compiling with that compiler in Cygwin, I use all these options:

    --cc=i686-w64-mingw32-gcc \
    --windres=i686-w64-mingw32-windres \
    --ar=i686-w64-mingw32-ar \
    --ranlib=i686-w64-mingw32-ranlib \
    --enable-cross-compile \
    --target="i686-mingw32" \






More information about the MPlayer-users mailing list