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