nanogui: compile nano-x cvs for ecos in standalone


Previous by date: 27 Oct 2008 12:22:37 -0000 Re: nano-X-0.91 for eCos, Greg Haerr
Next by date: 27 Oct 2008 12:22:37 -0000 Problems running GTK apps on NanoX/nxlib, ffileppo
Previous in thread:
Next in thread:

Subject: compile nano-x cvs for ecos in standalone
From: "Lecordier, Guy" ####@####.####
Date: 27 Oct 2008 12:22:37 -0000
Message-Id: <427FC27C2ABCC042A7FB4E17D3F893B7FB0B6A@lauescmx01.ROPERIND.NET>

Hello all,

 

The compilation of the nano-x cvs library for eCos is not possible in
standalone,

Due to the #include <ecosmwconfig.h>, located in mwtypes.h, which is
specific to the ecos config tool build

 

I propose to modify mwtypes.h to add another condition (#ifdef
CYGPKG_MICROWINDOWS) before including the ecosmwconfig.h

This will disable the #include in a standalone mode and will use the
standard config file.

 

mwtypes.h

/*include the eCos configuration "translation" header */

#if __ECOS

#ifdef CYGPKG_MICROWINDOWS

#include <ecosmwconfig.h>   // to include this config file only if the
ecos config tool is used

#endif

#endif

 

 

 

[Patch]

Index: src/include/mwtypes.h

===================================================================

RCS file: /usr/cvs/microwin/src/include/mwtypes.h,v

retrieving revision 1.31

diff -u -r1.31 mwtypes.h

--- src/include/mwtypes.h    7 Jan 2008 00:01:31 -0000    1.31

+++ src/include/mwtypes.h    16 Oct 2008 12:28:42 -0000

@@ -10,7 +10,9 @@

 

 /*include the eCos configuration "translation" header */

 #if __ECOS

-#include <ecosmwconfig.h>

+#ifdef CYGPKG_MICROWINDOWS

+#include <ecosmwconfig.h>   // to include this config file only if the
ecos config tool is used

+#endif

 #endif

 

Any comments?

Regards,

Guy

 


Previous by date: 27 Oct 2008 12:22:37 -0000 Re: nano-X-0.91 for eCos, Greg Haerr
Next by date: 27 Oct 2008 12:22:37 -0000 Problems running GTK apps on NanoX/nxlib, ffileppo
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.