readme.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. wxBase README
  2. =============
  3. NB: this file applies to wxBase library only. If you are using a GUI version
  4. of wxWidgets, please refer to the documentation in the appropriate
  5. subdirectory (msw, gtk, motif &c).
  6. Welcome to wxBase!
  7. 0. Introduction
  8. ---------------
  9. wxBase is the library providing most of the non-GUI classes of the wxWidgets
  10. cross-platform C++ framework. wxBase has some generic classes such as yet
  11. another C++ string class, typesafe dynamic arrays, hashes and lists and, more
  12. excitingly, wxDateTime -- a very flexible and powerful class for manipulating
  13. the dates in the range of 580 million years with up to millisecond precision.
  14. Another useful class not present in the standard C++ library is wxRegEx which
  15. allows you to use regular expressions for string matching and replacing.
  16. There are also classes for writing portable programs in C++ painlessly which
  17. encapsulate things like files (and their names), directories, processes,
  18. threads, sockets and much more. Some of the other utility classes allow you to
  19. parse the command line, limit the number of instances of your program
  20. executing simultaneously (portably!) and so on.
  21. 1. Requirements and supported platforms
  22. --------------------------------------
  23. wxBase can be compiled and used under Win32, mostly any modern Unix system
  24. (including Mac OS X), VMS and BeOS (this release couldn't be tested under
  25. these platforms so you might encounter some problems but they should be easy
  26. to solve -- please contact us in this case!)
  27. It is written without using any modern C++ features (such as templates,
  28. exceptions, namespaces) for maximal portability and so you shouldn't have
  29. problems compiling it with any C++ compiler at all. However, we only provide
  30. the project files for Microsoft Visual C++ 6.0 and make files for Borland C++
  31. for Win32 (any contributions are welcome!) -- but our Unix makefiles should
  32. work with any compiler.
  33. 2. Installing under Win32
  34. -------------------------
  35. Please note that wxBase can be compiled in different configurations under
  36. Win32: as a static or shared library, in debug or release mode and in ANSI
  37. or Unicode mode for a total of 8 possibilities.
  38. a) Using Visual C++ 6.0
  39. Simply open the build/msw/wx_base.dsp file in MSDEV and build it. When it is
  40. done you can also open samples/console/console.dsp project and build it as
  41. well.
  42. b) Cygwin
  43. Please refer to the Unix section below.
  44. Note that gcc's precompiled headers do not work on current versions of
  45. Cygwin. If your version of Cygwin is affected you will need to use the
  46. --disable-precomp-headers configure option.
  47. c) Borland
  48. Please refer to the docs/msw/install.txt. The console sample compiles and
  49. runs but does not pass all tests.
  50. d) Watcom
  51. The compilation has been tested only with OpenWatcom but should also work
  52. with Watcom 11.0 but probably not the earlier versions.
  53. To build wxBase itself (only static library build is supported), enter the
  54. directory src\msw and type "wmake -f makebase.wat". See also Watcom notes in
  55. docs/msw/install.txt.
  56. There is makefile.wat in samples\console which can be used to build the
  57. console sample with Watcom and also shows how can you write your own
  58. makefiles for wxBase and Watcom compiler.
  59. e) Other compilers
  60. Unfortunately we don't have the makefiles for any other compilers yet.
  61. Please contact us if you would like to help us with creating one for the
  62. compiler you use.
  63. 3. Installing under Unix/BeOS
  64. -----------------------------
  65. Please note that GNU make may be required to build wxBase, please use it if
  66. you get any errors from the native Unix make.
  67. The recommended way to build wxBase is:
  68. % cd ..../wxWidgets
  69. % mkdir base-release # or any other directory of your liking
  70. % cd base-release
  71. % ../configure --disable-gui
  72. # ignore the error messages about missing samples
  73. % make
  74. % make install
  75. You can also do:
  76. % mkdir base-debug
  77. % cd base-debug
  78. % ../configure --disable-gui --enable-debug
  79. % make
  80. To build the sample then cd to samples/console and make there.
  81. 4. Documentation and support
  82. ----------------------------
  83. The console sample provided with this distribution tests most (but not all)
  84. wxBase classes. It doesn't do anything useful per itself but you may want to
  85. look at its code to see examples of usage of the class you are interested in.
  86. There is no separate documentation for wxBase, please refer to wxWidgets
  87. documentation instead.
  88. Support for wxBase is available from the same places as for wxWidgets itself,
  89. namely:
  90. * Usenet newsgroup comp.soft-sys.wxwindows
  91. * Mailing lists: see http://lists.wxwidgets.org/ for more information
  92. * WWW page: http://www.wxwidgets.org/
  93. Hope you will find wxBase useful!
  94. Vadim Zeitlin