[MPlayer-users] how to compile mplayer for cygwin
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Fri Jul 8 22:47:32 CEST 2011
On Fri, Jul 08, 2011 at 12:22:39AM +0000, Stephen Sheldon wrote:
> 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" \
target and cc are necessary,
--enable-cross-compile probably hurts more than it does good
(cross compiling for MPlayer means that you want to build something
you can't run on the build machine) and the rest is just unnecessary,
the standard windres/ar/ranlib should work just as well as the mingw
ones.
More information about the MPlayer-users
mailing list