2003-02-03 19:56:28 -05:00
|
|
|
wxBase README
|
|
|
|
=============
|
2000-01-31 13:26:16 -05:00
|
|
|
|
2001-12-11 12:52:51 -05:00
|
|
|
NB: this file applies to wxBase library only. If you are using a GUI version
|
2004-05-04 04:27:20 -04:00
|
|
|
of wxWidgets, please refer to the documentation in the appropriate
|
2001-12-11 12:52:51 -05:00
|
|
|
subdirectory (msw, gtk, motif &c).
|
2000-01-31 13:26:16 -05:00
|
|
|
|
|
|
|
|
2001-12-11 12:52:51 -05:00
|
|
|
Welcome to wxBase!
|
|
|
|
|
|
|
|
0. Introduction
|
|
|
|
---------------
|
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
wxBase is the library providing most of the non-GUI classes of the wxWidgets
|
2001-12-11 12:52:51 -05:00
|
|
|
cross-platform C++ framework. wxBase has some generic classes such as yet
|
|
|
|
another C++ string class, typesafe dynamic arrays, hashes and lists and, more
|
2003-02-03 19:56:28 -05:00
|
|
|
excitingly, wxDateTime -- a very flexible and powerful class for manipulating
|
2001-12-11 12:52:51 -05:00
|
|
|
the dates in the range of 580 million years with up to millisecond precision.
|
|
|
|
Another useful class not present in the standard C++ library is wxRegEx which
|
|
|
|
allows you to use regular expressions for string matching and replacing.
|
|
|
|
|
|
|
|
There are also classes for writing portable programs in C++ painlessly which
|
|
|
|
encapsulate things like files (and their names), directories, processes,
|
|
|
|
threads, sockets and much more. Some of the other utility classes allow you to
|
|
|
|
parse the command line, limit the number of instances of your program
|
|
|
|
executing simultaneously (portably!) and so on.
|
|
|
|
|
2003-02-03 19:56:28 -05:00
|
|
|
|
2002-06-07 16:15:28 -04:00
|
|
|
1. Requirements and supported platforms
|
2001-12-11 12:52:51 -05:00
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
wxBase can be compiled and used under Win32, mostly any modern Unix system
|
2003-02-03 19:56:28 -05:00
|
|
|
(including Mac OS X), VMS and BeOS (this release couldn't be tested under
|
|
|
|
these platforms so you might encounter some problems but they should be easy
|
|
|
|
to solve -- please contact us in this case!)
|
2001-12-11 12:52:51 -05:00
|
|
|
|
|
|
|
It is written without using any modern C++ features (such as templates,
|
|
|
|
exceptions, namespaces) for maximal portability and so you shouldn't have
|
|
|
|
problems compiling it with any C++ compiler at all. However, we only provide
|
2003-02-03 19:56:28 -05:00
|
|
|
the project files for Microsoft Visual C++ 6.0 and make files for Borland C++
|
|
|
|
for Win32 (any contributions are welcome!) -- but our Unix makefiles should
|
|
|
|
work with any compiler.
|
|
|
|
|
2001-12-11 12:52:51 -05:00
|
|
|
|
|
|
|
2. Installing under Win32
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
Please note that wxBase can be compiled in different configurations under
|
|
|
|
Win32: as a static or shared library, in debug or release mode and in ANSI
|
|
|
|
or Unicode mode for a total of 8 possibilities.
|
|
|
|
|
|
|
|
a) Using Visual C++ 6.0
|
|
|
|
|
2005-04-11 10:51:14 -04:00
|
|
|
Simply open the build/msw/wx_base.dsp file in MSDEV and build it. When it is
|
2001-12-11 12:52:51 -05:00
|
|
|
done you can also open samples/console/console.dsp project and build it as
|
|
|
|
well.
|
|
|
|
|
|
|
|
b) Cygwin
|
|
|
|
|
2003-02-03 19:56:28 -05:00
|
|
|
Please refer to the Unix section below.
|
2001-12-11 12:52:51 -05:00
|
|
|
|
2002-09-04 07:16:46 -04:00
|
|
|
c) Borland
|
|
|
|
|
2003-02-03 19:56:28 -05:00
|
|
|
Please refer to the docs/msw/install.txt. The console sample compiles and
|
2005-04-11 10:51:14 -04:00
|
|
|
runs but does not pass all tests.
|
2003-02-03 19:56:28 -05:00
|
|
|
|
|
|
|
d) Watcom
|
|
|
|
|
|
|
|
The compilation has been tested only with OpenWatcom but should also work
|
|
|
|
with Watcom 11.0 but probably not the earlier versions.
|
|
|
|
|
|
|
|
To build wxBase itself (only static library build is supported), enter the
|
|
|
|
directory src\msw and type "wmake -f makebase.wat". See also Watcom notes in
|
|
|
|
docs/msw/install.txt.
|
|
|
|
|
|
|
|
There is makefile.wat in samples\console which can be used to build the
|
|
|
|
console sample with Watcom and also shows how can you write your own
|
|
|
|
makefiles for wxBase and Watcom compiler.
|
|
|
|
|
|
|
|
e) Other compilers
|
2001-12-11 12:52:51 -05:00
|
|
|
|
|
|
|
Unfortunately we don't have the makefiles for any other compilers yet.
|
|
|
|
Please contact us if you would like to help us with creating one for the
|
|
|
|
compiler you use.
|
|
|
|
|
2003-02-03 19:56:28 -05:00
|
|
|
|
2001-12-11 12:52:51 -05:00
|
|
|
3. Installing under Unix/BeOS
|
|
|
|
-----------------------------
|
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
NB: If you're building wxBase from the wxWidgets distribution and not from a
|
2001-12-11 12:52:51 -05:00
|
|
|
separate wxBase one you will need to add "--disable-gui" to configure
|
|
|
|
arguments below!
|
|
|
|
|
2003-02-03 19:56:28 -05:00
|
|
|
Please note that GNU make may be required to build wxBase, please use it if
|
|
|
|
you get any errors from the native Unix make.
|
2001-12-11 12:52:51 -05:00
|
|
|
|
|
|
|
The recommended way to build wxBase is:
|
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
% cd ..../wxWidgets
|
2003-02-03 19:56:28 -05:00
|
|
|
% mkdir base-release # or any other directory of your liking
|
|
|
|
% cd base-release
|
|
|
|
% ../configure
|
|
|
|
# ignore the error messages about missing samples
|
|
|
|
% make
|
|
|
|
% make install
|
2001-12-11 12:52:51 -05:00
|
|
|
|
|
|
|
You can also do:
|
|
|
|
|
2003-02-03 19:56:28 -05:00
|
|
|
% mkdir base-debug
|
|
|
|
% cd base-debug
|
|
|
|
% ../configure --enable-debug
|
|
|
|
% make
|
2001-12-11 12:52:51 -05:00
|
|
|
|
|
|
|
To build the sample then cd to samples/console and make there.
|
|
|
|
|
2003-02-03 19:56:28 -05:00
|
|
|
|
2001-12-11 12:52:51 -05:00
|
|
|
4. Documentation and support
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
The console sample provided with this distribution tests most (but not all)
|
|
|
|
wxBase classes. It doesn't do anything useful per itself but you may want to
|
|
|
|
look at its code to see examples of usage of the class you are interested in.
|
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
There is no separate documentation for wxBase, please refer to wxWidgets
|
2001-12-11 12:52:51 -05:00
|
|
|
documentation instead.
|
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
Support for wxBase is available from the same places as for wxWidgets itself,
|
2001-12-11 12:52:51 -05:00
|
|
|
namely:
|
|
|
|
|
|
|
|
* Usenet newsgroup comp.soft-sys.wxwindows
|
|
|
|
|
|
|
|
* Mailing lists: see http://lists.wxwindows.org/ for more information
|
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
* WWW page: http://www.wxwidgets.org/
|
2001-12-11 12:52:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
Hope you will find wxBase useful!
|
|
|
|
|
2003-02-03 19:56:28 -05:00
|
|
|
Vadim Zeitlin
|