This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: enlightenment & Eterm


Alan,

I implemented your patches, but compilation fails when UseCygIPC is NO or
undefined, as HasShmDefines is not defined in those cases, so
StandardDefines gets the string 'HasShmDefines' rather than the value of
HasShmDefines.

I added a define for HasShmDefines to /**/ when UseCygIPC is NO.

Harold

> -----Original Message-----
> From: cygwin-xfree-owner@sources.redhat.com
> [mailto:cygwin-xfree-owner@sources.redhat.com]On Behalf Of Alan
> Hourihane
> Sent: Monday, April 30, 2001 5:12 AM
> To: cygwin-xfree@sources.redhat.com
> Subject: enlightenment & Eterm
>
>
> Just thought I'd let people know - that with the help of the add-on to
> cygwin - cygipc. I've been able to build a shared memory
> version of libXext
> and therefore also I've now been able to compile the
> enlightenment window
> manager and Eterm. Very nice!
>
> I got CygIPC from
> http://www.neuro.gatech.edu/users/cwilson/cygutils/v1.1/cygipc
>
> You have to do a little hacking on enlightenment & Eterm to
> build properly too.
>
> There's also a small patch to the cygwin.cf and one to
> X11/Font.c (looks like it
> was older cygipc.h support). Attached below.
>
> So when building X, all you need to put in your
> xc/config/cf/host.def is
>
> #define UseCygIPC	YES
>
> and you'll get a shared memory version of X.
>
> Alan.
>
> Index: cygwin.cf
> ===================================================================
> RCS file: /X11R6/x-cvs/xc/config/cf/cygwin.cf,v
> retrieving revision 3.9
> diff -u -r3.9 cygwin.cf
> --- cygwin.cf	2001/04/27 12:32:42	3.9
> +++ cygwin.cf	2001/04/30 08:45:42
> @@ -34,7 +34,12 @@
>  #define HasLibCrypt             YES
>  #define HasPutenv               YES
>  #define HasPoll			NO
> -#define HasShm                  NO
> +#if UseCygIPC
> +# define HasShm			YES
> +# define HasShmDefines		-DHAS_SHM
> +#else
> +# define HasShm                  NO
> +#endif
>  #define HasSnprintf		YES
>  #define HasZlib			YES
>
> @@ -103,7 +108,7 @@
>
>  #define OptimizedCDebugFlags	-O2 -fno-strength-reduce
> -fpcc-struct-return -m486
>
> -#define StandardDefines         -D__i386__
> -DWIN32_LEAN_AND_MEAN -DX_LOCALE -D_X86_ -D__STDC__
> -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE
> -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE
> -D_GNU_SOURCE -DX_SOURCE
> +#define StandardDefines         -D__i386__
> -DWIN32_LEAN_AND_MEAN -DX_LOCALE -D_X86_ -D__STDC__
> -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE
> -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE
> -D_GNU_SOURCE -DX_SOURCE HasShmDefines
>
>  #define XawI18nDefines          -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
>  #define HasWChar32              YES
> Index: Font.c
> ===================================================================
> RCS file: /X11R6/x-cvs/xc/lib/X11/Font.c,v
> retrieving revision 1.12
> diff -u -r1.12 Font.c
> --- Font.c	2001/01/17 19:41:35	1.12
> +++ Font.c	2001/04/30 08:11:07
> @@ -39,11 +39,7 @@
>  #ifdef USE_XF86BIGFONT
>  #include <sys/types.h>
>  #ifdef HAS_SHM
> -#ifndef __CYGWIN__
>  #include <sys/ipc.h>
> -#else
> -#include <sys/cygipc.h>
> -#endif
>  #include <sys/shm.h>
>  #endif
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]