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.
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
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:
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.
28 To compile and run Wine, you must have one of the following:
30 Linux version 2.0.36 or above
31 FreeBSD-current or FreeBSD 3.0 or later
32 Solaris x86 2.5 or later
35 Although Linux version 2.0.x will mostly work, certain features
36 (specifically LDT sharing) required for properly supporting Win32
37 threads were not implemented until kernel version 2.2. If you get
38 consistent thread-related crashes, you may want to upgrade to 2.2.
39 Also, some bugs were fixed and additional features were added
40 late in the Linux 2.0.x series, so if you have a very old Linux kernel,
41 you may want to upgrade to at least the latest 2.0.x release.
44 On FreeBSD, you may want to apply an LDT sharing patch too
45 (unless you are tracking -current where it finally has
46 been committed just recently), and there also is a small sigtrap
47 fix thats needed for wine's debugger. (Actually now that its using
48 ptrace() by default it may no longer make a difference but it still
49 doesn't hurt...) And if you're running a system from the -stable
50 branch older than Nov 15 1999, like a 3.3-RELEASE, then you also
51 need to apply a signal handling change that was MFC'd at that date.
52 Make sure you have the USER_LDT, SYSVSHM, SYSVSEM, and SYSVMSG options
53 turned on in your kernel.
54 More information including patches for the -stable branch is in
56 ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports/emulators/wine/files/
59 You will most likely need to build wine with the GNU toolchain
62 Wine requires kernel-level threads to run. Currently, only Linux
63 version 2.0 or later, FreeBSD-current or FreeBSD 3.0 or later,
64 and Solaris x86 version 2.5 or later are supported.
65 Other operating systems which support kernel threads may be supported
68 You need to have the X11 development include files installed
69 (called xlib6g-dev in Debian and XFree86-devel in RedHat).
70 To use wine's support for multi-threaded applications, your X libraries
71 must be reentrant, which is probably the default by now.
72 If you have libc6 (glibc2), or you compiled the X libraries yourself,
73 they were probably compiled with the reentrant option enabled.
75 You also need to have libXpm installed on your system. The sources for
76 it are available at ftp.x.org and all its mirror sites in the directory
77 /contrib/libraries. If you are using RedHat, libXpm is distributed as the
78 xpm and xpm-devel packages. Debian distributes libXpm as xpm4.7, xpm4g,
79 and xpm4g-dev. SuSE calls these packages xpm and xpm-devel.
81 On x86 Systems gcc >= 2.7.2 is required.
82 Versions earlier than 2.7.2.3 may have problems when certain files
83 are compiled with optimization, often due to problems with header file
84 management. pgcc currently doesn't work with wine. The cause of this problem
87 You also need flex version 2.5 or later and yacc.
88 Bison will work as a replacement for yacc. If you are
89 using RedHat or Debian, install the flex and bison packages.
91 In case you want to build the documentation yourself, you'll also
92 need the DocBook tools (db2html, db2ps, db2pdf).
96 In case you chose to not use wineinstall, run the following commands
103 This will build the program "wine" and numerous support libraries/binaries.
104 The program "wine" will load and run Windows executables.
105 The library "libwine" ("Winelib") can be used to compile and link
106 Windows source code under Unix.
108 To see compile configuration options, do ./configure --help.
110 To upgrade to a new release by using a patch file, first cd to the
111 top-level directory of the release (the one containing this README
112 file). Then do a "make clean", and patch the release with:
114 gunzip -c patch-file | patch -p1
116 where "patch-file" is the name of the patch file (something like
117 Wine-yymmdd.diff.gz). You can then re-run "./configure", and then
118 run "make depend && make".
123 Once Wine has been built correctly, you can do "make install"; this
124 will install the wine executable, the Wine man page, and a few other
127 If you want to build the documentation, you can run "make" in the
128 documentation directory.
130 Wine requires a configuration file named wine.conf. Its default
131 location is /usr/local/etc, but you can supply a different name when
132 configuring wine by using the --prefix or --sysconfdir options to
133 ./configure. You can also override the global configuration file with
134 a file named "config" in your ~/.wine directory.
136 The format of this file is explained in the man page. The file
137 documentation/samples/config contains an example configuration file
138 which has to be adapted and copied to one of the two locations
141 See http://www.winehq.com/config.html for further configuration hints.
146 When invoking Wine, you may specify the entire path to the executable,
149 For example: to run Solitaire:
151 wine sol (using the searchpath to locate the file)
154 wine c:\\windows\\sol.exe (using a DOS filename)
156 wine /usr/windows/sol.exe (using a Unix filename)
158 Note: the path of the file will also be added to the path when
159 a full name is supplied on the commandline.
161 Wine is not yet complete, so some programs may crash. Provided you set up
162 winedbg correctly according to documentation/debugger.sgml, you will be dropped
163 into a debugger so that you can investigate and fix the problem. For more
164 information on how to do this, please read the file documentation/debugging.
165 If you post a bug report, please read the file documentation/bugreports to
166 see what information is required.
168 You should backup all your important files that you give Wine access
169 to, or use a special Wine copy of them, as there have been some cases
170 of users reporting file corruption. Do NOT run Explorer, for instance,
171 if you don't have a proper backup, as it renames/cripples several
172 directories sometimes.
175 7. GETTING MORE INFORMATION
177 DOCU: grep -i "SearchString" `find documentation/`|more
179 FAQ: The Wine FAQ is located at http://www.winehq.com/FAQ
181 WWW: A great deal of information about Wine is available from WineHQ at
182 http://www.winehq.com/, especially various user guides.
183 Untested patches against the current release
184 are available on the wine-patches mailing list; see
185 http://www.winehq.com/dev.shtml#ml for more information.
187 HOWTO: The Wine HOWTO is available at
188 http://www.westfalen.de/witch/wine-HOWTO.txt .
190 Usenet: Please browse old messages on http://www.dejanews.com/ to check whether
191 your problem is already fixed before posting a bug report to the
194 The best place to get help or to report bugs is the Usenet newsgroup
195 comp.emulators.ms-windows.wine. Please read the file
196 documentation/bugreports to see what information should be included
199 IRC: Online help is available at channel #WineHQ on IRCnet.
201 CVS: The current Wine development tree is available through CVS.
202 Go to http://www.winehq.com/dev.shtml for more information.
204 If you add something, or fix a bug, please send a patch ('diff -u'
205 format preferred) to julliard@winehq.com or to the
206 wine-patches@winehq.com mailing list for inclusion in the next