Added a prototype for closesocket.
[wine] / README
1 1. INTRODUCTION
2
3 Wine is a program which allows running Microsoft Windows programs
4 (including DOS, Windows 3.x and Win32 executables) on Unix.  It
5 consists of a program loader which loads and executes a Microsoft
6 Windows binary, and a library that implements Windows API calls using
7 their Unix or X11 equivalents. The library may also be used for
8 porting Win32 code into native Unix executables.
9
10 Wine is free software, and its license (contained in the file LICENSE)
11 is BSD style.  Basically, you can do anything with it except claim
12 that you wrote it.
13
14 2. QUICK START
15
16 Whenever you compile from source, it is recommended to use the Wine
17 Installer to build and install wine.  From the top-level Wine
18 directory (which contains this file), run:
19
20 ./tools/wineinstall
21
22 Run programs as "wine [options] program".  For more information and
23 problem resolution, read the rest of this file, the Wine manpage,
24 and the files in the documentation directory in the Wine source.
25
26 3. REQUIREMENTS
27
28 To compile and run Wine, you must have one of the following:
29
30         Linux version 2.0.36 or above
31         FreeBSD-current or FreeBSD 3.0 or later
32         Solaris x86 2.5 or later
33
34 Although Linux version 2.0.x will mostly work, certain features
35 (specifically LDT sharing) required for properly supporting Win32
36 threads were not implemented until kernel version 2.2.  If you get
37 consistent thread-related crashes, you may want to upgrade to 2.2.
38
39 Similarly if you are on FreeBSD you may want to apply an LDT sharing
40 patch too (unless you are tracking -current where it finally has
41 been committed just recently), and there also is a small sigtrap
42 fix thats needed for wine's debugger. (Actually now that its using
43 ptrace() by default it may no longer make a difference but it still
44 doesn't hurt...) And if you're running a system from the -stable
45 branch older than Nov 15 1999, like a 3.3-RELEASE, then you also
46 need to apply a signal handling change that was MFC'd at that date.
47 More information including patches for the -stable branch is in
48 the ports tree:
49 ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports/emulators/wine/files/
50
51 You need to have the X11 development include files installed
52 (called xlib6g-dev in Debian and XFree86-devel-4.0.1-1 in RedHat).
53
54 You also need to have libXpm installed on your system. The sources for
55 it are available at ftp.x.org and all its mirror sites in the directory
56 /contrib/libraries. If you are using RedHat, libXpm is distributed as the
57 xpm and xpm-devel packages. Debian distributes libXpm as xpm4.7, xpm4g,
58 and xpm4g-dev 3.4j. SuSE calls these packages xpm and xpm-devel.
59
60 On x86 Systems gcc >= 2.7.2 is required. You also need flex version 2.5
61 or later and yacc. Bison will work as a replacement for yacc. If you are
62 using RedHat, install the flex and bison packages.
63
64 4. COMPILATION
65
66 To build Wine, run the following commands:
67
68 ./configure
69 make depend
70 make
71
72 This will build the library "libwine.a" and the program "wine".  
73 The program "wine" will load and run Windows executables.
74 The library "libwine.a" can be used to compile and link Windows source
75 code under Unix.
76
77 If you do not intend to compile Windows source code, use
78 "./configure --disable-lib" to skip building the library and reduce disk
79 space requirements. If you have an ELF compiler (which you probably do),
80 you can use "./configure --enable-dll" to build a shared library instead.
81 To see other configuration options, do ./configure --help.
82
83 To upgrade to a new release by using a patch file, first cd to the
84 top-level directory of the release (the one containing this README
85 file). Then do a "make clean", and patch the release with:
86
87     gunzip -c patch-file | patch -p1
88
89 where "patch-file" is the name of the patch file (something like
90 Wine-yymmdd.diff.gz). You can then re-run "./configure", and then
91 run "make depend && make".
92
93
94 5. SETUP
95
96 Once Wine has been built correctly, you can do "make install"; this
97 will install the wine executable, the Wine man page, and a few other
98 needed files.
99
100 Wine requires a configuration file named wine.conf. Its default
101 location is /usr/local/etc, but you can supply a different name when
102 configuring wine by using the --prefix or --sysconfdir options to
103 ./configure. You can also override the global configuration file with
104 a file named "config" in your ~/.wine directory.
105
106 The format of this file is explained in the man page. The file
107 documentation/samples/config contains an example configuration file
108 which has to be adapted and copied to one of the two locations
109 mentioned above.
110
111 See http://www.winehq.com/config.html for further configuration hints.
112
113
114 6. RUNNING PROGRAMS
115
116 When invoking Wine, you may specify the entire path to the executable,
117 or a filename only.
118
119 For example: to run Solitaire:
120
121         wine sol                   (using the searchpath to locate the file)
122         wine sol.exe
123
124         wine c:\\windows\\sol.exe  (using a DOS filename)
125
126         wine /usr/windows/sol.exe  (using a Unix filename)
127
128 Note: the path of the file will also be added to the path when
129       a full name is supplied on the commandline.
130
131 Wine is not yet complete, so some programs may crash. Provided you set up
132 winedbg correctly according to documentation/debugger.sgml, you will be dropped
133 into a debugger so that you can investigate and fix the problem. For more
134 information on how to do this, please read the file documentation/debugging.
135 If you post a bug report, please read the file documentation/bugreports to
136 see what information is required.
137
138
139 7. GETTING MORE INFORMATION
140
141 DOCU:   grep -i "SearchString" `find documentation/`|more
142
143 FAQ:    The Wine FAQ is located at http://www.winehq.com/faq.html.
144
145 WWW:    A great deal of information about Wine is available from WineHQ at
146         http://www.winehq.com/. Untested patches against the current release
147         are available on the wine-patches mailing list; see 
148         http://www.winehq.com/dev.html#ml for more information.
149
150 HOWTO:  The Wine HOWTO is available at
151         http://www.westfalen.de/witch/wine-HOWTO.txt .
152
153 Usenet: Please browse old messages on http://www.dejanews.com/ to check whether 
154         your problem is already fixed before posting a bug report to the 
155         newsgroup. 
156
157         The best place to get help or to report bugs is the Usenet newsgroup
158         comp.emulators.ms-windows.wine. Please read the file 
159         documentation/bugreports to see what information should be included 
160         in a bug report.
161
162 IRC:    Online help is available at channel #WineHQ on IRCnet.
163
164 CVS:    The current Wine development tree is available through CVS.
165         Go to http://www.winehq.com/dev.html for more information.
166
167 If you add something, or fix a bug, please send a patch ('diff -u'
168 format preferred) to julliard@winehq.com for inclusion in the next
169 release.
170
171 --
172 Alexandre Julliard
173 julliard@winehq.com