]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | |
2 | Installing wxWindows 2.0 | |
3 | ------------------------ | |
4 | ||
5 | Unarchiving | |
6 | ----------- | |
7 | ||
8 | If there is a setup program, run the setup program that comes with the Windows version. | |
9 | Do not install into a path that contains spaces. The installation program should set the | |
10 | WXWIN environment variable, which will be activated when your machine is rebooted. | |
11 | ||
12 | If there is no setup program, it will come as a series of .zip | |
13 | files: | |
14 | ||
15 | wx200gen.zip Generic source code and samples (required) | |
16 | wx200msw.zip Windows-specific source code and samples (required) | |
17 | wx200doc.zip Documentation source code (not required) | |
18 | wx200hlp.zip WinHelp documentation | |
19 | wx200ps.zip PostScript documentation (will probably | |
20 | disappear in favour of PDF) | |
21 | wx200pdf.zip Acrobat PDF documentation | |
22 | wx200htm.zip HTML documentation | |
23 | ||
24 | Unarchive the required files plus any optional documentation | |
25 | files into a suitable directory such as c:\wx. Alter your | |
26 | WXWIN environment variable to point to this directory. | |
27 | ||
28 | Compilation | |
29 | ----------- | |
30 | ||
31 | At present, wxWindows compiles with VC++ 1.5, VC++ 4.0, VC++ 5.0, | |
32 | BC++ 4.5/5.0, Gnu-Win32 b19, and Mingw32. | |
33 | ||
34 | Visual C++ 4.0/5.0 compilation | |
35 | ------------------------------ | |
36 | ||
37 | 1. Change directory to wx\src\msw. Type 'nmake -f makefile.nt' to | |
38 | make the wxWindows core library. | |
39 | 2. Change directory to wx\samples and type 'nmake -f makefile.nt' | |
40 | to make all the samples. You can also make them individually. | |
41 | ||
42 | Visual C++ 1.5 compilation | |
43 | -------------------------- | |
44 | ||
45 | 1. Change directory to wx\src\msw. Type 'nmake -f makefile.dos' to | |
46 | make the wxWindows core library. | |
47 | 2. Change directory to wx\samples and type 'nmake -f makefile.b32' | |
48 | to make all the samples. You can also make them individually. | |
49 | NOTE: only a few samples have up-to-date makefiles, e.g. | |
50 | minimal, docview, mdi. The utils makefile does not yet work. | |
51 | ||
52 | Borland C++ 4.5/5.0 compilation | |
53 | ------------------------------- | |
54 | ||
55 | 1. Change directory to wx\src\msw. Type 'make -f makefile.b32' to | |
56 | make the wxWindows core library. | |
57 | 2. Change directory to wx\samples and type 'make -f makefile.b32' | |
58 | to make all the samples. You can also make them individually. | |
59 | NOTE: only a few samples have up-to-date makefiles, e.g. | |
60 | minimal, docview, mdi. The utils makefile does not yet work. | |
61 | ||
62 | Gnu-Win32 b19/Mingw32 compilation | |
63 | --------------------------------- | |
64 | ||
65 | wxWindows 2.0 supports Gnu-Win32 b19, Mingw32, and Mingw32/EGCS. | |
66 | ||
67 | Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making | |
68 | it all possible. | |
69 | ||
70 | From wxWindows 2.0 beta 9, both Gnu-Win32 b19 and Mingw32 (the minimal | |
71 | distribution of Gnu-Win32) can be used with the same makefiles. | |
72 | ||
73 | Here are the steps required: | |
74 | ||
75 | - Retrieve and install the latest beta of Gnu-Win32, or Mingw32, as per the | |
76 | instructions with either of these packages. | |
77 | ||
78 | - If using Mingw32 (including the EGCS variant), you need some | |
79 | extra files to use the wxWindows makefiles. You can find these | |
80 | files in ports/mingw32 on the ftp site or CD-ROM, as extra.zip. | |
81 | These should be extracted to the Mingw32 directory. | |
82 | ||
83 | - Modify the file wx/src/cygnus.bat (or mingw32.bat or mingegcs.bat) | |
84 | to set up appropriate variables, if necessary mounting drives. | |
85 | Run it before compiling. | |
86 | ||
87 | - For Gnu-Win32, make sure there's a \tmp directory on your | |
88 | Windows drive or bison will crash. | |
89 | ||
90 | - Edit wx/src/makeg95.env and search for MINGW32. Take note of | |
91 | the comments for adjusting settings to suit Gnu-Win32 or | |
92 | Mingw32. Basically, this is just a case of adding the __MINGW32__ symbol | |
93 | to OPTIONS for Mingw32, or removing it for Cygnus Gnu-Win32. | |
94 | For Mingw32/EGCS, add both __MINGW32__ and __EGCS__. | |
95 | ||
96 | - Use the makefile.g95 files for compiling wxWindows and samples, | |
97 | e.g.: | |
98 | > cd c:\wx\src\msw | |
99 | > make -f makefile.g95 | |
100 | > cd c:\wx\samples\minimal | |
101 | > make -f makefile.g95 | |
102 | ||
103 | - Use the 'strip' command to reduce executable size. | |
104 | ||
105 | - With Cygnus Gnu-Win32, you can invoke gdb --nw myfile.exe to | |
106 | debug an executable. | |
107 | ||
108 | - If using GnuWin32 b18, you will need to copy windres.exe | |
109 | from e.g. the Mingw32 distribution, to a directory in your path. | |
110 | ||
111 | All targets have 'clean' targets to allow removal of object files | |
112 | and other intermediate compiler files. | |
113 | ||
114 | Gotchas: | |
115 | ||
116 | - libwx.a is 28 MB or more. | |
117 | - install.exe doesn't have built-in decompression because lzexpand.lib | |
118 | isn't available with Gnu-Win32. However, you can use it with external | |
119 | decompression utilities. | |
120 | ||
121 | References: | |
122 | ||
123 | - The GNU-WIN32 site is at | |
124 | http://www.cygnus.com/gnu-win32/ | |
125 | - Mingw32 is available at: | |
126 | http://agnes.dida.physik.uni-essen.de/~janjaap/mingw32/index.html | |
127 | - See also http://web.ukonline.co.uk/julian.smart/wxwin/gnuwin32.htm | |
128 |