[MPlayer-cygwin] which confdir to use when compiling on cygwin?
compn
tempn at twmi.rr.com
Sun Jan 15 03:13:48 CET 2006
On Thu, 12 Jan 2006 15:46:40 +0000
Chris Taylor <chris at equate.dyndns.org> wrote:
> compn wrote:
>
> > On Fri, 06 Jan 2006 02:38:44 +0100
> > Diego Biurrun <diego at biurrun.de> wrote:
> >
> >
> >>The Cygwin port uses Unix-style paths. Just run MPlayer from the Cygwin
> >>command line.
> >>
> >>Diego
> >
> >
> >
> > i only have cygwin installed on one pc, but i want to my mplayer binaries
> > on multiple pc's
> >
> > -compn
> >
>
> You have two options then (possibly only one)
>
> 1) Use a mingw-compiled version on the non-cygwin boxen
> 2) Copy cygwin1.dll to the other boxes and specify the path to
> codecs.conf on the commandline - be aware that the path to all dll files
> will be incorrect.
>
even on the cygwin box, i dont use the cygwin console to run mplayer, mostly
because i have mplayer set to open all video files and windows does not call
mplayer in the cygwin console... (also i dont like the way copy/paste works in
rxvt console, cygwin console is like cmd.exe (or other way around) so i'm used
to it more.)
the cygwin binaries work on my pcs, i think i copied cygwin1.dll long ago,
the only problem was confdir and codecsdir, but yeah, after i posted
i remembered -input and other switches, i could make an alias/shortcut/batch
file to call mplayer -input c:\mplayer\mplayer\input.conf -config c:\mplayer
\mplayer\config "$1" . but iirc, there is still no -codecsdir option.
like i said in an earlier mail, the patch to add codecs dirs works and is
on the 'MPlayer on Win32' page http://oss.netfarm.it/mplayer-win32.php
i believe this could also be added to the confdir part of the source...
diff -NubBr -xCVS -xhelp_mp.h -x'*.a' -x'*.exe' -x'*.o' -xconfigure.log -xconfig.mak -x.cvsignore -xconfig.h -xcodecs.conf.h -xversion.h -x.depend main/get_path.c sherpya/get_path.c
--- main/get_path.c2005-10-31 10:19:03.749950400 +0100
+++ sherpya/get_path.c2005-10-31 10:50:21.540080000 +0100
@@ -139,6 +139,11 @@
sprintf(tmppath,"%s;%s",win32path,realpath);
#endif /*USE_REALCODECS*/
#endif /*__CYGWIN__*/
+#if defined(WIN32)
+strncat(tmppath, ";", sizeof(tmppath));
+strncat(tmppath, win32path, sizeof(tmppath));
+strncat(tmppath, "codecs", sizeof(tmppath));
+#endif
mp_msg(MSGT_WIN32, MSGL_V,"Setting PATH to %s\n",tmppath);
if (!SetEnvironmentVariableA("PATH", tmppath))
mp_msg(MSGT_WIN32, MSGL_WARN, "Cannot set PATH!");
anyways, thanks for the reccomendations :)
-compn
> There is of course the 3rd option of installing a minimal cygwin on the
> other boxes, done by merely running setup and not changing any of the
> default options.. Though I would always strongly recommend installing
> rxvt and using it over the default cmd.exe - it's far more responsive.
>
> Chris
> --
>
> Spinning complacently in the darkness, covered and blinded by a blanket
> of little lives, false security has lulled the madness of this world
> into a slumber. Wake up! An eye is upon you, staring straight down and
> keenly through, seeing all that you are and everything that you will
> never be. Yes, an eye is upon you, an eye ready to blink. So face
> forward, with arms wide open and mind reeling. Your future has
> arrived... Are you ready to go?
>
> _______________________________________________
> MPlayer-cygwin mailing list
> MPlayer-cygwin at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cygwin
More information about the MPlayer-cygwin
mailing list