[MPlayer-cygwin] Distributable binaries for windows

Joey Parrish joey at nicewarrior.org
Mon Aug 15 17:23:11 CEST 2005


On Mon, Aug 15, 2005 at 04:55:57PM +0200, Thomas Plank wrote:
> Joey Parrish (joey at nicewarrior.org) wrote:
> > If you install cygwin, get mplayer, libavcodec, libavformat, libavutils,
> > then just ./configure --enable-static && make.  What you will get will
> > still depend on cygwin1.dll, which can be a pain sometimes.  You could
> > also try ./configure --cc="gcc -mno-cygwin" --enable-static.  This will
> > compile using the mingw runtime, so you will have no dependance on
> > cygwin1.dll.  Some areas of MPlayer may behave differently between
> > cygwin and mingw, but you may not notice the difference.
> 
> I tried this, but when using this option, configure doesn't work.
> 
> When I left out --cc="gcc -mno-cygwin" everything seems okay:
> 
> Do you know, why -mno-cygwin seems not to work?
> If you need some additional information, please let me know.

Yes.  It's because configure checks for many things based on uname
output, which still says cygwin.  So accept my apologies and forget all
that.  Instead, try this patch and the --disable-cygwin option it adds.
No need to set --cc with this patch.  Also, this is totally untested,
but is straightforward and should work.

--Joey

-- 
"The greatest thing you'll ever learn
is just to love and be loved in return." -- Darth Vader
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1036
diff -u -r1.1036 configure
--- configure	6 Aug 2005 13:37:59 -0000	1.1036
+++ configure	15 Aug 2005 15:15:32 -0000
@@ -292,6 +292,9 @@
 
 Miscellaneous options:
   --enable-runtime-cpudetection    Enable runtime CPU detection [disable]
+  --disable-cygwin       ask cygwin system to build using MinGW runtime.
+                         also appends -mno-cygwin to the compiler options.
+                         has no effect on non-cygwin systems.
   --cc=COMPILER          use this C compiler to build MPlayer [gcc]
   --host-cc=COMPILER     use this C compiler to build apps needed for the build process [gcc]
   --as=ASSEMBLER         use this assembler to build MPlayer [as]
@@ -436,6 +439,8 @@
     ;;
   --with-install=*)
     _install=`echo $ac_option | cut -d '=' -f 2 `
+  --disable-cygwin)
+    no_cygwin="yes"
     ;;
   esac
 done
@@ -454,7 +459,12 @@
     system_name=HP-UX
     ;;
   [cC][yY][gG][wW][iI][nN]*)
-    system_name=CYGWIN
+    if [ "$no_cygwin" == "yes" ]; then
+      system_name=MINGW32
+      _cc="$_cc -mno-cygwin"
+    else
+      system_name=CYGWIN
+    fi
     ;;
   MINGW32*)
     system_name=MINGW32


More information about the MPlayer-cygwin mailing list