]> sjero.net Git - wget/blob - windows/README
Check for idna.h in /usr/include/idn.
[wget] / windows / README
1                                                            -*- text -*-
2
3 You can configure the Windows port of Wget by running configure.bat (in
4 the main Wget directory).  You can run it with no arguments to see the
5 list of possible options.  Run it with the option corresponding to the
6 compiler you intend to use to build Wget and follow the (brief)
7 instructions printed on the screen.  The instructions bellow are for
8 building Wget with Microsoft Visual C++ (MSVC); you may need to make
9 appropriate substitutions for your compiler and build environment; 
10 currently wget can be built at least with Visual Studio/.Net, the free 
11 Borland compiler, and the free mingw environment.  The instructions do
12 *not* apply to the Cygwin environment, on which Wget is built with the
13 procedure described in the INSTALL file in the top-level directory.
14
15 To build Wget with MSVC run configure.bat (in the main Wget directory)
16 with the argument --msvc, and then run nmake.  At a certain point in time
17 Wget exposed some compiler bugs in MSVC 5.0; later Wget started to 
18 expose (at least http.c, retr.c) some other compiler bugs in MSVC 6.0 
19 SP6 (cl.exe version 12) which could/can be worked around by compiling 
20 completely without optimization or at least partially (by using 
21 #pragma optimize("g",on) and "off" around offending functions).
22 However, read the rest of this document before continuing.
23
24 For MSVC the current default is to build Wget with SSL support.  For this
25 to work, you will need to have OpenSSL installed.  First, get OpenSSL
26 (http://www.openssl.org), compile it and install the relevant headers and
27 libraries where your compiler can find them; currently this could mean
28 (presuming default installation directories for MSVC 6.0) copy (from the
29 compiled OpenSSL directory) the whole inc32\openssl directory and its
30 contents to "C:\Program Files\Microsoft Visual Studio\VC98\Include\openssl",
31 and from out32dll (in the OpenSSL directory) the two needed libraries
32 (libeay32.lib and ssleay32.lib) to
33 "C:\Program Files\Microsoft Visual Studio\VC98\lib".  These locations
34 aren't exactly the best but will get you started if you don't know where
35 to place these headers and libraries, you should find similar paths for 
36 later compiler versions. Usually at run-time some OpenSSL
37 libraries (currently ssleay32.dll and libeay32.dll) will need to be
38 available in your environment PATH.
39
40 If you don't want to/can't compile Wget with OpenSSL comment SSL related
41 lines in windows\Makefile.src; then follow the normal instructions
42 (configure.bat and so on).
43
44 If you want to build the help file you will need a copy of makeinfo to
45 convert wget.texi to rtf and html.  I've made a copy available at
46 <URL:ftp://sunsite.dk/projects/wget/makeinfo.zip>.  This copy of
47 makeinfo is from the miktxt 1.10 archive available from ctan.  You also
48 will need perl 5, one possibility is ActivePerl (currently free) from
49 <URL:http://www.activestate.com>; you need to locate the download and
50 install instructions for the current version available (since the
51 packages and installation instructions change from time to time).
52
53 Windows contributors:
54
55 * Darko Budor <dbudor@zesoi.fer.hr> -- the initial work on the Windows
56   port;
57
58 * Tim Charron <tcharron@interlog.com> -- additional cleanup and
59   contribution of the (now retired) Watcom makefile;
60
61 * John Burden <john@futuresguide.com> -- cleanup of the VC++ makefile
62   to get a clean build with VC++ 5.0 on Windows 95;
63
64 * Douglas E. Wegscheid -- maintains configure.bat and various Windows
65   makefiles.
66
67 * Herold Heiko -- numerous build reports and fixes.
68
69 * Gisle Vanem -- many Windows-related improvements to the source and
70   the build system.