blob: fac5085d3d6828676898a2eed400733e940d3b8f [file] [log] [blame]
Alexandre Julliard3a5816f1994-12-27 14:11:53 +000011. INTRODUCTION
Alexandre Julliard2c25c3e1993-06-29 16:33:12 +00002
Douglas Ridgway692389d1998-11-22 16:56:44 +00003Wine is a program which allows running Microsoft Windows programs
4(including DOS, Windows 3.x and Win32 executables) on Unix. It
James Juran0ff60a01999-04-26 14:57:06 +00005consists of a program loader which loads and executes a Microsoft
Andreas Mohr3d2a38c2001-06-29 01:41:03 +00006Windows binary, and a library (called Winelib) that implements Windows
7API calls using their Unix or X11 equivalents. The library may also
8be used for porting Win32 code into native Unix executables.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +00009
Martin Garton89894ff2002-03-20 00:59:27 +000010Wine is free software, released under the GNU LGPL; see the file
11LICENSE for the details.
Alexandre Julliard1f579291994-05-25 16:25:21 +000012
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000132. QUICK START
Alexandre Julliard3a5816f1994-12-27 14:11:53 +000014
Andreas Mohr581fc922000-09-18 01:40:32 +000015Whenever you compile from source, it is recommended to use the Wine
Andreas Mohra0ff2b42002-02-27 01:30:32 +000016Installer to build and install Wine. From the top-level directory
17of the Wine source (which contains this file), run:
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +000018
19./tools/wineinstall
20
21Run programs as "wine [options] program". For more information and
Andreas Mohr3d2a38c2001-06-29 01:41:03 +000022problem resolution, read the rest of this file, the Wine man page,
Andreas Mohra0ff2b42002-02-27 01:30:32 +000023the files in the documentation directory of the Wine source
Andreas Mohrb6e84182002-02-02 18:03:55 +000024(see "DOCUMENTATION"), and especially the wealth of information
25found at http://www.winehq.com.
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +000026
273. REQUIREMENTS
Alexandre Julliard401710d1993-09-04 10:09:32 +000028
James Juran0ff60a01999-04-26 14:57:06 +000029To compile and run Wine, you must have one of the following:
Alexandre Julliardf41aeca1993-09-14 16:47:10 +000030
Marcus Meissner9e153181999-04-19 16:19:25 +000031 Linux version 2.0.36 or above
Gerald Pfeiferd2b22892001-07-20 17:56:59 +000032 FreeBSD 4.x or FreeBSD 5-CURRENT
Alexandre Julliarda69b88b1998-03-15 20:29:56 +000033 Solaris x86 2.5 or later
Bang Jun-Young9048c492001-12-19 18:48:45 +000034 NetBSD-current
Alexandre Julliardf41aeca1993-09-14 16:47:10 +000035
Andreas Mohrc9ec8842001-01-24 19:37:13 +000036Linux info:
37 Although Linux version 2.0.x will mostly work, certain features
38 (specifically LDT sharing) required for properly supporting Win32
39 threads were not implemented until kernel version 2.2. If you get
Andreas Mohra0ff2b42002-02-27 01:30:32 +000040 consistent thread-related crashes, you may want to upgrade to at least 2.2.
Andreas Mohrc9ec8842001-01-24 19:37:13 +000041 Also, some bugs were fixed and additional features were added
42 late in the Linux 2.0.x series, so if you have a very old Linux kernel,
43 you may want to upgrade to at least the latest 2.0.x release.
Alexandre Julliard6abb89c1995-03-02 17:33:47 +000044
Andreas Mohrc9ec8842001-01-24 19:37:13 +000045FreeBSD info:
Gerald Pfeifer25a38792002-06-05 17:26:57 +000046 Make sure you have the USER_LDT, SYSVSHM, SYSVSEM, and SYSVMSG
47 options turned on in your kernel. More information is in the ports
48 tree: ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/emulators/wine/
Andreas Mohrc9ec8842001-01-24 19:37:13 +000049
50Solaris info:
Gerald Pfeiferd2b22892001-07-20 17:56:59 +000051 You will most likely need to build Wine with the GNU toolchain
Gerard Patel2895e7f2001-10-16 21:47:51 +000052 (gcc, gas, etc.). Warning : installing gas does *not* ensure that it
Andreas Mohra5589d52002-06-04 23:09:34 +000053 will be used by gcc. Recompiling gcc after installing gas or
Gerard Patel2895e7f2001-10-16 21:47:51 +000054 symlinking cc, as and ld to the gnu tools is said to be necessary.
55
Bang Jun-Young9048c492001-12-19 18:48:45 +000056NetBSD info:
57 Make sure you have the USER_LDT, SYSVSHM, SYSVSEM, and SYSVMSG options
58 turned on in your kernel.
59
Andreas Mohra69c0392001-12-26 20:40:47 +000060File systems info:
Gerard Patel2895e7f2001-10-16 21:47:51 +000061 Wine should run on most file systems. However, Wine will fail to start
62 if umsdos is used for the /tmp directory. A few compatibility problems have
Andreas Mohra0ff2b42002-02-27 01:30:32 +000063 also been reported using files accessed through Samba. Also, as NTFS
64 can only be used safely with readonly access for now, we recommend against
65 using NTFS, as Windows programs need write access almost everywhere.
66 In case of NTFS files, copy over to a writable location.
Andreas Mohrc9ec8842001-01-24 19:37:13 +000067
68Wine requires kernel-level threads to run. Currently, only Linux
Gerald Pfeifer25a38792002-06-05 17:26:57 +000069version 2.0 or later, FreeBSD 4.x or later, Solaris x86 version 2.5
70or later, and NetBSD-current are supported.
Andreas Mohrc9ec8842001-01-24 19:37:13 +000071Other operating systems which support kernel threads may be supported
72in the future.
Juergen Lockca851391999-11-28 19:48:24 +000073
Andreas Mohrc165bca2000-10-22 23:47:27 +000074You need to have the X11 development include files installed
Andreas Mohrc9ec8842001-01-24 19:37:13 +000075(called xlib6g-dev in Debian and XFree86-devel in RedHat).
Gerald Pfeiferd2b22892001-07-20 17:56:59 +000076To use Wine's support for multi-threaded applications, your X libraries
Andreas Mohrc9ec8842001-01-24 19:37:13 +000077must be reentrant, which is probably the default by now.
78If you have libc6 (glibc2), or you compiled the X libraries yourself,
79they were probably compiled with the reentrant option enabled.
Andreas Mohrc165bca2000-10-22 23:47:27 +000080
Andreas Mohrc9ec8842001-01-24 19:37:13 +000081On x86 Systems gcc >= 2.7.2 is required.
82Versions earlier than 2.7.2.3 may have problems when certain files
83are compiled with optimization, often due to problems with header file
Gerald Pfeiferd2b22892001-07-20 17:56:59 +000084management. pgcc currently doesn't work with Wine. The cause of this problem
Andreas Mohrc9ec8842001-01-24 19:37:13 +000085is unknown.
86
Andreas Mohra5589d52002-06-04 23:09:34 +000087Of course you also need "make" (most likely GNU make).
88
Andreas Mohrc9ec8842001-01-24 19:37:13 +000089You also need flex version 2.5 or later and yacc.
90Bison will work as a replacement for yacc. If you are
91using RedHat or Debian, install the flex and bison packages.
James Juran0ff60a01999-04-26 14:57:06 +000092
Andreas Mohra5589d52002-06-04 23:09:34 +000093For the automatic processing of the test suite scripts, you also need
94libperl development header support (libperl-dev package on Debian).
95
Andreas Mohrb6e84182002-02-02 18:03:55 +000096For requirements in case you intend to build the documentation yourself,
97see "DOCUMENTATION" section.
Joerg Mayer0ee5f8c2001-02-20 01:54:50 +000098
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000994. COMPILATION
Alexandre Julliarda69b88b1998-03-15 20:29:56 +0000100
Andreas Mohrc9ec8842001-01-24 19:37:13 +0000101In case you chose to not use wineinstall, run the following commands
102to build Wine:
Alexandre Julliard401710d1993-09-04 10:09:32 +0000103
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000104./configure
105make depend
106make
107
Andreas Mohra5589d52002-06-04 23:09:34 +0000108This will build the program "wine" and numerous support libraries/binaries.
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000109The program "wine" will load and run Windows executables.
Andreas Mohr1af53cb2000-12-09 03:15:32 +0000110The library "libwine" ("Winelib") can be used to compile and link
111Windows source code under Unix.
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000112
Andreas Mohr1af53cb2000-12-09 03:15:32 +0000113To see compile configuration options, do ./configure --help.
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +0000114
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000115To upgrade to a new release by using a patch file, first cd to the
116top-level directory of the release (the one containing this README
117file). Then do a "make clean", and patch the release with:
118
119 gunzip -c patch-file | patch -p1
120
121where "patch-file" is the name of the patch file (something like
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000122Wine-yymmdd.diff.gz). You can then re-run "./configure", and then
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000123run "make depend && make".
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000124
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001255. SETUP
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000126
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000127Once Wine has been built correctly, you can do "make install"; this
James Juran38a3d261999-01-01 18:45:52 +0000128will install the wine executable, the Wine man page, and a few other
129needed files.
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000130
Andreas Mohrde53c482001-04-09 18:32:16 +0000131Don't forget to uninstall any conflicting previous Wine installation
132first. Try either "dpkg -r wine" or "rpm -e wine" or "make uninstall"
133before installing.
134
Andreas Mohrb6e84182002-02-02 18:03:55 +0000135If you want to read the documentation supplied with the Wine source,
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000136see the "DOCUMENTATION" section.
Joerg Mayer0ee5f8c2001-02-20 01:54:50 +0000137
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000138Wine requires a configuration file named named "config" in your
Andreas Mohr7bed6962001-09-19 22:34:38 +0000139~/.wine directory. The format of this file is explained in the config file
140man page (documentation/wine.conf.man).
141The file documentation/samples/config contains an example configuration file
142which has to be adapted and copied to the location mentioned above.
Andreas Mohr8a829911999-01-30 13:40:05 +0000143
Andreas Mohra69c0392001-12-26 20:40:47 +0000144Don't forget to add vital registry entries by applying winedefault.reg
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000145with programs/regapi/. See documentation/ directory for details.
Andreas Mohra69c0392001-12-26 20:40:47 +0000146
Alexandre Julliard8877c662002-05-09 20:37:26 +0000147See http://www.winehq.com/support/ for further configuration hints.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000148
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000149In case of library loading errors
150(e.g. "Error while loading shared libraries: libntdll.so"), make sure
151to add the library path to /etc/ld.so.conf and run ldconfig as root.
152
Andreas Mohr51421502001-03-08 01:14:13 +0000153In order to verify the correctness of the environment you need for
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000154Wine to run successfully, you may run "./tools/winecheck | less".
155You'll get a percentage score indicating "Wine configuration correctness".
Andreas Mohra69c0392001-12-26 20:40:47 +0000156As this program is alpha, it doesn't run a truly thorough test yet, though,
157so it should be taken as a first verification step only.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000158
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000159See wine.conf man page on how to switch to text mode only support if desired.
160
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001616. RUNNING PROGRAMS
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000162
James Juran38a3d261999-01-01 18:45:52 +0000163When invoking Wine, you may specify the entire path to the executable,
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000164or a filename only.
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000165
Douglas Ridgway692389d1998-11-22 16:56:44 +0000166For example: to run Solitaire:
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000167
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000168 wine sol (using the searchpath to locate the file)
169 wine sol.exe
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000170
Douglas Ridgway692389d1998-11-22 16:56:44 +0000171 wine c:\\windows\\sol.exe (using a DOS filename)
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000172
Douglas Ridgway692389d1998-11-22 16:56:44 +0000173 wine /usr/windows/sol.exe (using a Unix filename)
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000174
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000175Note: the path of the file will also be added to the path when
Alexandre Julliard58199531994-04-21 01:20:00 +0000176 a full name is supplied on the commandline.
177
Andreas Mohrb6e84182002-02-02 18:03:55 +0000178Wine is not yet complete, so several programs may crash. Provided you set up
Andreas Mohr581fc922000-09-18 01:40:32 +0000179winedbg correctly according to documentation/debugger.sgml, you will be dropped
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000180into a debugger so that you can investigate and fix the problem.
181For more information on how to do this, please read the file
182documentation/debugging.sgml.
James Juran38a3d261999-01-01 18:45:52 +0000183
Andreas Mohra6d83eb2000-12-27 04:02:46 +0000184You should backup all your important files that you give Wine access
185to, or use a special Wine copy of them, as there have been some cases
186of users reporting file corruption. Do NOT run Explorer, for instance,
187if you don't have a proper backup, as it renames/cripples several
Andreas Mohr7bed6962001-09-19 22:34:38 +0000188directories sometimes. Not even other MS apps such as e.g. Messenger are safe,
189as they launch Explorer somehow. This particular corruption (!$!$!$!$.pfr)
Andreas Mohra69c0392001-12-26 20:40:47 +0000190can at least partially be fixed by using
191http://home.nexgo.de/andi.mohr/download/decorrupt_explorer
Andreas Mohra6d83eb2000-12-27 04:02:46 +0000192
Andreas Mohrb6e84182002-02-02 18:03:55 +00001937. DOCUMENTATION
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000194
Andreas Mohrb6e84182002-02-02 18:03:55 +0000195Some documentation (various Wine Guides etc.) can be found in the
196documentation/ directory (apart from also being available on WineHQ).
197
Alexandre Julliard5b80ce32002-07-01 18:23:38 +0000198If you want to process the SGML files in there, then you can run "make doc"
Andreas Mohrb6e84182002-02-02 18:03:55 +0000199in the documentation/ directory.
200Doing so requires the sgml tools package (for db2html, db2ps, db2pdf) named:
201Debian: docbook-utils
202Mandrake: sgml-tools-A.B.C-DDmdk
203SuSE: docbktls-A.BB.C-DD
204
2058. GETTING MORE INFORMATION
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000206
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000207WWW: A great deal of information about Wine is available from WineHQ at
Andreas Mohrb6e84182002-02-02 18:03:55 +0000208 http://www.winehq.com/ : various Wine Guides, application database,
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000209 bug tracking. This is probably the best starting point.
Andreas Mohr8cd93512000-01-29 21:12:58 +0000210
Andreas Mohrc9ec8842001-01-24 19:37:13 +0000211FAQ: The Wine FAQ is located at http://www.winehq.com/FAQ
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000212
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000213Usenet: You can discuss Wine-related issues and get help
214 on comp.emulators.ms-windows.wine.
215
216Bugs: Report bugs to Wine Bugzilla at http://bugs.winehq.com/.
217 Please search the bugzilla database to check whether your
218 problem is already found before posting a bug report. You can
219 also post bug reports to comp.emulators.ms-windows.wine.
220 Please read the file documentation/bugs.sgml to see what
221 information is required.
222
Jeff Smith344ed412002-12-24 00:56:33 +0000223IRC: Online help is available at channel #WineHQ on irc.freenode.net.
Andreas Mohr8cd93512000-01-29 21:12:58 +0000224
Alexandre Julliard9d7fbc41998-10-18 16:32:47 +0000225CVS: The current Wine development tree is available through CVS.
Alexandre Julliard8877c662002-05-09 20:37:26 +0000226 Go to http://www.winehq.com/development/ for more information.
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000227
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000228Mailing lists:
Andreas Mohra5589d52002-06-04 23:09:34 +0000229 There are several mailing lists for Wine developers; see
Alexandre Julliard8877c662002-05-09 20:37:26 +0000230 http://www.winehq.com/development/#ml for more information.
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000231
Andreas Mohrb6e84182002-02-02 18:03:55 +0000232If you add something, or fix a bug, please send a patch (in 'diff -u'
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000233format) to wine-patches@winehq.com list for inclusion in the next
234release.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000235
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000236--
237Alexandre Julliard
Alexandre Julliarda46f5ad2000-07-16 21:09:03 +0000238julliard@winehq.com