suggested changes for mplayer and cygwin
Hi, I needed mencoder under win32 so I tried compiling under cygwin. I've noticed a little problem with inttypes.h: It is not available under cygwin, but a working replacement version is available in the TOOLS directory. The configure errors are: cpuinfo fails (nonfatal) and then the check for inttypes.h fails. The version was a current (Jul 27 2002) checkout. Suggested workarounds: - copy TOOLS/cygwin_inttypes.h to /usr/include/inttypes.h (that might be something for the docs) or - turn things in configure script around. Check for hostsystem first, THEN for cpu. If hostsytem is cgywin, use TOOLS/cygwin_inttypes.h instead of inttypes.h, also for cpuinfo.c! If you want to (and if its possible :) ), I could write a patch for the latter one. Comments? mfG Max Berger ICQ: 44986764 e-mail: max.berger@xslt.de -- PGP/GnuPG ID: E81592BC Print: F489F8759D4132923EC4 BC7E072AB73AE81592BC SysAdmin: http://www7.in.tum.de/ SyncML: http://libsyncml.sourceforge.net XSLT: http://www.xslt.de Mail written on Linux: http://www.kerneli.org
On Sunday 28 July 2002 00:18, Max Berger wrote:
Hi,
I needed mencoder under win32 so I tried compiling under cygwin. I've noticed a little problem with inttypes.h: It is not available under cygwin, but a working replacement version is available in the TOOLS directory.
The configure errors are: cpuinfo fails (nonfatal) and then the check for inttypes.h fails.
The version was a current (Jul 27 2002) checkout.
Suggested workarounds:
- copy TOOLS/cygwin_inttypes.h to /usr/include/inttypes.h (that might be something for the docs) This is how it's supposed to be done, there where some cygwin docs by sycotic, but they weren't accepted for some reason (I think because it wasn't clear to decide wether it was tech or user doc, maybe we should put it to cvs anyways).
or
- turn things in configure script around. Check for hostsystem first, THEN for cpu. If hostsytem is cgywin, use TOOLS/cygwin_inttypes.h instead of inttypes.h, also for cpuinfo.c!
If you want to (and if its possible :) ), I could write a patch for the latter one.
Comments?
mfG
Max Berger
-- Best Regards, Atmos ____________________________________________ - MPlayer Developer - http://mplayerhq.hu/ - ____________________________________________
On Sun, Jul 28, 2002 at 01:15:02AM +0200, Felix Buenemann wrote:
On Sunday 28 July 2002 00:18, Max Berger wrote:
Suggested workarounds:
- copy TOOLS/cygwin_inttypes.h to /usr/include/inttypes.h (that might be something for the docs) This is how it's supposed to be done, there where some cygwin docs by sycotic, but they weren't accepted for some reason (I think because it wasn't clear to decide wether it was tech or user doc, maybe we should put it to cvs anyways).
They weren't accepted because he said that he was going to send a patch instead of describing a workaround. Diego
Max Berger writes:
Suggested workarounds:
- copy TOOLS/cygwin_inttypes.h to /usr/include/inttypes.h (that might be something for the docs)
or
- turn things in configure script around. Check for hostsystem first, THEN for cpu. If hostsytem is cgywin, use TOOLS/cygwin_inttypes.h instead of inttypes.h, also for cpuinfo.c!
If you want to (and if its possible :) ), I could write a patch for the latter one.
Comments?
Let's see the patch. If it works, it will be much better than describing a workaround in the docs. Diego
participants (3)
-
Diego Biurrun -
Felix Buenemann -
Max Berger