]> git.saurik.com Git - wxWidgets.git/blame - docs/msw/install.txt
Changed library paths for new structure
[wxWidgets.git] / docs / msw / install.txt
CommitLineData
2bda0e17
KB
1
2Installing wxWindows 2.0
3------------------------
4
5Unarchiving
6-----------
7
8If there is a setup program, run the setup program that comes with the Windows version.
9Do not install into a path that contains spaces. The installation program should set the
10WXWIN environment variable, which will be activated when your machine is rebooted.
11
12If there is no setup program, it will come as a series of .zip
13files:
14
15wx200gen.zip Generic source code and samples (required)
16wx200msw.zip Windows-specific source code and samples (required)
17wx200doc.zip Documentation source code (not required)
18wx200hlp.zip WinHelp documentation
19wx200ps.zip PostScript documentation (will probably
20 disappear in favour of PDF)
21wx200pdf.zip Acrobat PDF documentation
22wx200htm.zip HTML documentation
23
24Unarchive the required files plus any optional documentation
25files into a suitable directory such as c:\wx. Alter your
26WXWIN environment variable to point to this directory.
27
28Compilation
29-----------
30
31At present, wxWindows compiles with VC++ 1.5, VC++ 4.0, VC++ 5.0,
32BC++ 4.5/5.0, Gnu-Win32 b19, and Mingw32.
33
34Visual C++ 4.0/5.0 compilation
35------------------------------
36
371. Change directory to wx\src\msw. Type 'nmake -f makefile.nt' to
38 make the wxWindows core library.
392. Change directory to wx\samples and type 'nmake -f makefile.nt'
40 to make all the samples. You can also make them individually.
41
42Visual C++ 1.5 compilation
43--------------------------
44
451. Change directory to wx\src\msw. Type 'nmake -f makefile.dos' to
46 make the wxWindows core library.
472. 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
52Borland C++ 4.5/5.0 compilation
53-------------------------------
54
551. Change directory to wx\src\msw. Type 'make -f makefile.b32' to
56 make the wxWindows core library.
572. 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
62Gnu-Win32 b19/Mingw32 compilation
63---------------------------------
64
65wxWindows 2.0 supports Gnu-Win32 b19, Mingw32, and Mingw32/EGCS.
66
67Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making
68it all possible.
69
70From wxWindows 2.0 beta 9, both Gnu-Win32 b19 and Mingw32 (the minimal
71distribution of Gnu-Win32) can be used with the same makefiles.
72
73Here 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
111All targets have 'clean' targets to allow removal of object files
112and other intermediate compiler files.
113
114Gotchas:
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
121References:
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