Cygwin 1.1 mods (main branch)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-07-22 14:03:36 +00:00
parent 494a19d6d9
commit 74afbadc17
5 changed files with 29 additions and 30 deletions

View File

@@ -474,14 +474,14 @@ the debugging version of the library is 90MB, with samples coming in
at 40MB :-) However, wxWindows at least makes a good test suite for at 40MB :-) However, wxWindows at least makes a good test suite for
improving the compiler. improving the compiler.
Cygwin b19/b20/Mingw32 compilation Cygwin/Mingw32 compilation
---------------------------------- ----------------------------------
wxWindows 2 supports Cygwin (formerly GnuWin32) b19, b20, Mingw32, wxWindows 2 supports Cygwin (formerly GnuWin32) betas and
and Mingw32/EGCS. Cygwin 1.1.0 and 1.1.1 are not yet supported. releases, and Mingw32.
Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making Thanks are due to Keith Garry Boyce (garp@opustel.com), Cygnus
it all possible. and others for making it all possible.
Both Cygwin and Mingw32 (the minimal distribution of Cygwin) can be used Both Cygwin and Mingw32 (the minimal distribution of Cygwin) can be used
with the same makefiles. with the same makefiles.
@@ -491,11 +491,10 @@ Here are the steps required:
- Retrieve and install the latest beta of Cygwin, or Mingw32, as per the - Retrieve and install the latest beta of Cygwin, or Mingw32, as per the
instructions with either of these packages. instructions with either of these packages.
- If using Mingw32 (including the EGCS variant), you need some - If using Mingw32, you need some extra files to use the wxWindows
extra files to use the wxWindows makefiles. You can find these makefiles. You can find these files in ports/mingw32 on the ftp
files in ports/mingw32 on the ftp site or CD-ROM, as extra.zip. site or CD-ROM, as extra.zip. These should be extracted to the Mingw32
These should be extracted to the Mingw32 directory. directory. If you have alread downloaded bison, flex, make, rm, cp, mv
If you have alread downloaded bison, flex, make, rm, cp, mv
from elsewhere, you won't need this. from elsewhere, you won't need this.
If using Mingw32 2.95 and below with wxWindows 2.1 or above, you If using Mingw32 2.95 and below with wxWindows 2.1 or above, you
@@ -513,10 +512,9 @@ Here are the steps required:
supplied). supplied).
- Edit wx/src/makeg95.env and set the MINGW32 variable at the top of - Edit wx/src/makeg95.env and set the MINGW32 variable at the top of
the file to either 1 (you have Mingw32) or 0 (you have Cygwin32). the file to either 1 (you have Mingw32 or Cygwin 1.x releases) or 0
If using MINGW32, also set the MINGW32VERSION variable (if you have Cygwin betas). If using Mingw32, also set the
appropriately. Note: Cygwin 1.1.0 and above may MINGW32VERSION variable appropriately.
need MINGW32 set to 1 to compile properly.
- Set your WXWIN variable to where wxWindows is installed. - Set your WXWIN variable to where wxWindows is installed.
*** IMPORTANT: For Cygwin/Mingw32, use forward slashes in the path, not *** IMPORTANT: For Cygwin/Mingw32, use forward slashes in the path, not
@@ -533,7 +531,7 @@ Here are the steps required:
- Use the 'strip' command to reduce executable size. - Use the 'strip' command to reduce executable size.
- With Cygnus Cygwin, you can invoke gdb --nw myfile.exe to - With Cygwin, you can invoke gdb --nw myfile.exe to
debug an executable. If there are memory leaks, they will be debug an executable. If there are memory leaks, they will be
flagged when the program quits. flagged when the program quits.
@@ -585,11 +583,10 @@ Notes:
References: References:
- The GNU-WIN32 site is at - The Cygwin site is at
http://www.cygnus.com/gnu-win32/ http://sourceware.cygnus.com
- Mingw32 is available at: - Mingw32 is available at:
ftp://www,mingw.org ftp://www.mingw.org
- See also http://web.ukonline.co.uk/julian.smart/wxwin/gnuwin32.htm
TWIN32 and gcc on Linux TWIN32 and gcc on Linux
----------------------- -----------------------

View File

@@ -142,7 +142,7 @@
// Mingw32 gcc-2.95 uses new windows headers which are more ms-like // Mingw32 gcc-2.95 uses new windows headers which are more ms-like
// we are setting this define because of the complex check // we are setting this define because of the complex check
// using NORLANDER as Cygwin may follow. (header author is Anders Norlander) // using NORLANDER as Cygwin may follow. (header author is Anders Norlander)
#if defined(__MINGW32__) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))) #if (defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
#ifndef wxUSE_NORLANDER_HEADERS #ifndef wxUSE_NORLANDER_HEADERS
#define wxUSE_NORLANDER_HEADERS 1 #define wxUSE_NORLANDER_HEADERS 1
#endif #endif

View File

@@ -626,7 +626,7 @@
#define wxUSE_OWNER_DRAWN 1 #define wxUSE_OWNER_DRAWN 1
// Owner-drawn menus and listboxes // Owner-drawn menus and listboxes
#if defined(__MINGW32__) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))) #if (defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
#ifndef wxUSE_NORLANDER_HEADERS #ifndef wxUSE_NORLANDER_HEADERS
# define wxUSE_NORLANDER_HEADERS 1 # define wxUSE_NORLANDER_HEADERS 1
#endif #endif
@@ -650,13 +650,15 @@
#undef wxUSE_MS_HTML_HELP #undef wxUSE_MS_HTML_HELP
#define wxUSE_MS_HTML_HELP 0 #define wxUSE_MS_HTML_HELP 0
#endif // __GNUWIN32__ // Cygwin betas don't have wcslen
#if defined(__CYGWIN__) || defined(__CYGWIN32__)
// Cygwin b20 doesn't have wcslen # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
#if defined(__GNUWIN32__) && !defined(__MINGW32__)
# undef wxUSE_WCHAR_T # undef wxUSE_WCHAR_T
# define wxUSE_WCHAR_T 0 # define wxUSE_WCHAR_T 0
# endif # endif
#endif
#endif // __GNUWIN32__
// MFC duplicates these operators // MFC duplicates these operators
#if wxUSE_MFC #if wxUSE_MFC

View File

@@ -113,7 +113,7 @@ extern const wxChar WXDLLEXPORT *wxEmptyString = &g_strEmpty.dummy;
// function wxVsnprintfA (A for ANSI), should also find one for Unicode // function wxVsnprintfA (A for ANSI), should also find one for Unicode
// strings in Unicode build // strings in Unicode build
#ifdef __WXMSW__ #ifdef __WXMSW__
#if defined(__VISUALC__) || wxUSE_NORLANDER_HEADERS #if defined(__VISUALC__) || defined(__MINGW32__)
#define wxVsnprintfA _vsnprintf #define wxVsnprintfA _vsnprintf
#endif #endif
#else // !Windows #else // !Windows

View File

@@ -10,8 +10,8 @@
# CVS_ID: $Id$ # CVS_ID: $Id$
# #
# If using Cygwin, set this to 0. # If using Cygwin beta, set this to 0.
# If using Mingw32, set this to 1. # If using Mingw32 or Cygwin 1.0 or later, set this to 1.
MINGW32=1 MINGW32=1
# Set to the version you have # Set to the version you have