[MPlayer-users] how to compile mplayer for cygwin
Stephen Sheldon
sfsheldo at gmail.com
Mon Jul 11 01:42:05 CEST 2011
Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:
> > 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.
>
I tried configuring without "enable-cross-compile" on both x86_64-w64-mingw32-*
and i686-w64-mingw32-* builds and it worked.
However when I use the x86_64-w64-mingw32-* tool chain to produce a 64-bit
mplayer, it is necessary to specify windres, ar, and ranlib. Without ar and
ranlib, I got this error:
o-seh -Wl,--dynamicbase -lwinmm -ffast-math -lws2_32 -liconv -lpng -lz -ljpeg
-L/mingw64/lib -lfreetype -L/mingw64/lib -lfontconfig -lxml2 -lz -lws2_32
-lfreetype -liconv -lz -lole32 -luuid -L/mingw64/lib -static -lm -mwindows
-lopengl32 -lgdi32 -lwinmm -lgdi32 -lcomdlg32 -lcomctl32 -lshell32 -lkernel32
ffmpeg/libpostproc/libpostproc.a: could not read symbols: Archive has no index;
run ranlib to add one
collect2: ld returned 1 exit status
make: *** [mplayer.exe] Error 1
I did create my 64-bit configure script first, and I edited it to create
the 32-bit script.
More information about the MPlayer-users
mailing list