blob: 622e83f8597230ca5e42b51bbeeb22dc6297d5c5 [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
Dimitrie O. Paunc0232542003-11-26 03:55:01 +000025found at http://www.winehq.org.
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
Andreas Mohrc08b9482003-04-04 22:12:21 +000031 Linux version 2.0.36 or above
32 FreeBSD 4.x or FreeBSD 5-CURRENT or later
33 Solaris x86 2.5 or later
34 NetBSD-current
35
36As Wine requires kernel-level thread support to run, only the operating
37systems mentioned above are supported.
38Other operating systems which support kernel threads may be supported
39in the future.
Alexandre Julliardf41aeca1993-09-14 16:47:10 +000040
Andreas Mohrc9ec8842001-01-24 19:37:13 +000041Linux info:
Andreas Mohrc08b9482003-04-04 22:12:21 +000042 While Linux 2.2.x should still work and Linux 2.0.x may still work
43 (older 2.0.x versions had thread-related crashes),
44 it's best to have a current kernel such as 2.4.x.
Alexandre Julliard6abb89c1995-03-02 17:33:47 +000045
Andreas Mohrc9ec8842001-01-24 19:37:13 +000046FreeBSD info:
Gerald Pfeifer25a38792002-06-05 17:26:57 +000047 Make sure you have the USER_LDT, SYSVSHM, SYSVSEM, and SYSVMSG
48 options turned on in your kernel. More information is in the ports
49 tree: ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/emulators/wine/
Andreas Mohrc9ec8842001-01-24 19:37:13 +000050
51Solaris info:
Gerald Pfeiferd2b22892001-07-20 17:56:59 +000052 You will most likely need to build Wine with the GNU toolchain
Gerard Patel2895e7f2001-10-16 21:47:51 +000053 (gcc, gas, etc.). Warning : installing gas does *not* ensure that it
Andreas Mohra5589d52002-06-04 23:09:34 +000054 will be used by gcc. Recompiling gcc after installing gas or
Gerard Patel2895e7f2001-10-16 21:47:51 +000055 symlinking cc, as and ld to the gnu tools is said to be necessary.
56
Bang Jun-Young9048c492001-12-19 18:48:45 +000057NetBSD info:
58 Make sure you have the USER_LDT, SYSVSHM, SYSVSEM, and SYSVMSG options
59 turned on in your kernel.
60
Andreas Mohrc08b9482003-04-04 22:12:21 +000061
62
63Supported file systems:
Gerard Patel2895e7f2001-10-16 21:47:51 +000064 Wine should run on most file systems. However, Wine will fail to start
65 if umsdos is used for the /tmp directory. A few compatibility problems have
Andreas Mohra0ff2b42002-02-27 01:30:32 +000066 also been reported using files accessed through Samba. Also, as NTFS
67 can only be used safely with readonly access for now, we recommend against
68 using NTFS, as Windows programs need write access almost everywhere.
69 In case of NTFS files, copy over to a writable location.
Andreas Mohrc9ec8842001-01-24 19:37:13 +000070
Andreas Mohrc08b9482003-04-04 22:12:21 +000071Basic requirements:
72 You need to have the X11 development include files installed
73 (called xlib6g-dev in Debian and XFree86-devel in RedHat).
Juergen Lockca851391999-11-28 19:48:24 +000074
Andreas Mohrc08b9482003-04-04 22:12:21 +000075Build tool requirements:
76 On x86 Systems gcc >= 2.7.2 is required.
77 Versions earlier than 2.7.2.3 may have problems when certain files
78 are compiled with optimization, often due to problems with header file
79 management. pgcc currently doesn't work with Wine. The cause of this problem
80 is unknown.
Andreas Mohrc165bca2000-10-22 23:47:27 +000081
Andreas Mohrc08b9482003-04-04 22:12:21 +000082 Of course you also need "make" (most likely GNU make).
Andreas Mohrc9ec8842001-01-24 19:37:13 +000083
Mike McCormackc068f672004-03-16 03:11:39 +000084 You also need flex version 2.5 or later and bison. If you are
Andreas Mohrc08b9482003-04-04 22:12:21 +000085 using RedHat or Debian, install the flex and bison packages.
Andreas Mohra5589d52002-06-04 23:09:34 +000086
Andreas Mohrc08b9482003-04-04 22:12:21 +000087Optional support libraries:
88 If you want CUPS printing support, please install both cups and cups-devel
89 packages.
James Juran0ff60a01999-04-26 14:57:06 +000090
Andreas Mohrc08b9482003-04-04 22:12:21 +000091 For the automatic processing of the test suite scripts, you also need
92 libperl development header support (libperl-dev package on Debian).
Andreas Mohra5589d52002-06-04 23:09:34 +000093
Andreas Mohrb6e84182002-02-02 18:03:55 +000094For requirements in case you intend to build the documentation yourself,
95see "DOCUMENTATION" section.
Joerg Mayer0ee5f8c2001-02-20 01:54:50 +000096
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000974. COMPILATION
Alexandre Julliarda69b88b1998-03-15 20:29:56 +000098
Andreas Mohrc9ec8842001-01-24 19:37:13 +000099In case you chose to not use wineinstall, run the following commands
100to build Wine:
Alexandre Julliard401710d1993-09-04 10:09:32 +0000101
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000102./configure
103make depend
104make
105
Andreas Mohra5589d52002-06-04 23:09:34 +0000106This will build the program "wine" and numerous support libraries/binaries.
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000107The program "wine" will load and run Windows executables.
Andreas Mohr1af53cb2000-12-09 03:15:32 +0000108The library "libwine" ("Winelib") can be used to compile and link
109Windows source code under Unix.
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000110
Andreas Mohr1af53cb2000-12-09 03:15:32 +0000111To see compile configuration options, do ./configure --help.
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +0000112
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000113To upgrade to a new release by using a patch file, first cd to the
114top-level directory of the release (the one containing this README
115file). Then do a "make clean", and patch the release with:
116
117 gunzip -c patch-file | patch -p1
118
119where "patch-file" is the name of the patch file (something like
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000120Wine-yymmdd.diff.gz). You can then re-run "./configure", and then
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000121run "make depend && make".
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000122
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001235. SETUP
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000124
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000125Once Wine has been built correctly, you can do "make install"; this
James Juran38a3d261999-01-01 18:45:52 +0000126will install the wine executable, the Wine man page, and a few other
127needed files.
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000128
Andreas Mohrde53c482001-04-09 18:32:16 +0000129Don't forget to uninstall any conflicting previous Wine installation
130first. Try either "dpkg -r wine" or "rpm -e wine" or "make uninstall"
131before installing.
132
Andreas Mohrb6e84182002-02-02 18:03:55 +0000133If you want to read the documentation supplied with the Wine source,
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000134see the "DOCUMENTATION" section.
Joerg Mayer0ee5f8c2001-02-20 01:54:50 +0000135
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000136Wine requires a configuration file named named "config" in your
Andreas Mohr7bed6962001-09-19 22:34:38 +0000137~/.wine directory. The format of this file is explained in the config file
138man page (documentation/wine.conf.man).
139The file documentation/samples/config contains an example configuration file
140which has to be adapted and copied to the location mentioned above.
Andreas Mohr8a829911999-01-30 13:40:05 +0000141
Andreas Mohra69c0392001-12-26 20:40:47 +0000142Don't forget to add vital registry entries by applying winedefault.reg
Sylvain Petreolle8f4d4372003-03-31 19:34:53 +0000143with programs/regedit/. See documentation/ directory for details.
Andreas Mohra69c0392001-12-26 20:40:47 +0000144
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000145See the Support area at http://www.winehq.org/ for further
Andreas Mohrc08b9482003-04-04 22:12:21 +0000146configuration hints.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000147
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000148In case of library loading errors
149(e.g. "Error while loading shared libraries: libntdll.so"), make sure
150to add the library path to /etc/ld.so.conf and run ldconfig as root.
151
Andreas Mohr51421502001-03-08 01:14:13 +0000152In order to verify the correctness of the environment you need for
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000153Wine to run successfully, you may run "./tools/winecheck | less".
154You'll get a percentage score indicating "Wine configuration correctness".
Andreas Mohra69c0392001-12-26 20:40:47 +0000155As this program is alpha, it doesn't run a truly thorough test yet, though,
156so it should be taken as a first verification step only.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000157
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000158See wine.conf man page on how to switch to text mode only support if desired.
159
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001606. RUNNING PROGRAMS
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000161
James Juran38a3d261999-01-01 18:45:52 +0000162When invoking Wine, you may specify the entire path to the executable,
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000163or a filename only.
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000164
Douglas Ridgway692389d1998-11-22 16:56:44 +0000165For example: to run Solitaire:
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000166
Andreas Mohrc08b9482003-04-04 22:12:21 +0000167 wine sol (using the search Path as specified in
168 wine sol.exe the config file to locate the file)
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000169
Andreas Mohrc08b9482003-04-04 22:12:21 +0000170 wine c:\\windows\\sol.exe (using DOS filename syntax)
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000171
Andreas Mohrc08b9482003-04-04 22:12:21 +0000172 wine /usr/windows/sol.exe (using Unix filename syntax)
173
174 wine -- sol.exe /parameter1 -parameter2 parameter3
175 (calling program with parameters)
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000176
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000177Note: the path of the file will also be added to the path when
Alexandre Julliard58199531994-04-21 01:20:00 +0000178 a full name is supplied on the commandline.
179
Andreas Mohrb6e84182002-02-02 18:03:55 +0000180Wine is not yet complete, so several programs may crash. Provided you set up
Andreas Mohr581fc922000-09-18 01:40:32 +0000181winedbg correctly according to documentation/debugger.sgml, you will be dropped
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000182into a debugger so that you can investigate and fix the problem.
183For more information on how to do this, please read the file
184documentation/debugging.sgml.
James Juran38a3d261999-01-01 18:45:52 +0000185
Andreas Mohra6d83eb2000-12-27 04:02:46 +0000186You should backup all your important files that you give Wine access
187to, or use a special Wine copy of them, as there have been some cases
188of users reporting file corruption. Do NOT run Explorer, for instance,
189if you don't have a proper backup, as it renames/cripples several
Andreas Mohr7bed6962001-09-19 22:34:38 +0000190directories sometimes. Not even other MS apps such as e.g. Messenger are safe,
191as they launch Explorer somehow. This particular corruption (!$!$!$!$.pfr)
Andreas Mohra69c0392001-12-26 20:40:47 +0000192can at least partially be fixed by using
193http://home.nexgo.de/andi.mohr/download/decorrupt_explorer
Andreas Mohra6d83eb2000-12-27 04:02:46 +0000194
Andreas Mohrb6e84182002-02-02 18:03:55 +00001957. DOCUMENTATION
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000196
Andreas Mohrb6e84182002-02-02 18:03:55 +0000197Some documentation (various Wine Guides etc.) can be found in the
198documentation/ directory (apart from also being available on WineHQ).
199
Alexandre Julliard5b80ce32002-07-01 18:23:38 +0000200If you want to process the SGML files in there, then you can run "make doc"
Andreas Mohrb6e84182002-02-02 18:03:55 +0000201in the documentation/ directory.
202Doing so requires the sgml tools package (for db2html, db2ps, db2pdf) named:
203Debian: docbook-utils
204Mandrake: sgml-tools-A.B.C-DDmdk
205SuSE: docbktls-A.BB.C-DD
206
2078. GETTING MORE INFORMATION
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000208
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000209WWW: A great deal of information about Wine is available from WineHQ at
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000210 http://www.winehq.org/ : various Wine Guides, application database,
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000211 bug tracking. This is probably the best starting point.
Andreas Mohr8cd93512000-01-29 21:12:58 +0000212
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000213FAQ: The Wine FAQ is located at http://www.winehq.org/FAQ
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000214
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000215Usenet: You can discuss Wine-related issues and get help
216 on comp.emulators.ms-windows.wine.
217
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000218Bugs: Report bugs to Wine Bugzilla at http://bugs.winehq.org
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000219 Please search the bugzilla database to check whether your
220 problem is already found before posting a bug report. You can
221 also post bug reports to comp.emulators.ms-windows.wine.
222 Please read the file documentation/bugs.sgml to see what
223 information is required.
224
Jeff Smith344ed412002-12-24 00:56:33 +0000225IRC: Online help is available at channel #WineHQ on irc.freenode.net.
Andreas Mohr8cd93512000-01-29 21:12:58 +0000226
Alexandre Julliard9d7fbc41998-10-18 16:32:47 +0000227CVS: The current Wine development tree is available through CVS.
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000228 Go to http://www.winehq.org/cvs for more information.
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000229
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000230Mailing lists:
Andreas Mohra5589d52002-06-04 23:09:34 +0000231 There are several mailing lists for Wine developers; see
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000232 http://www.winehq.org/forums for more information.
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000233
Andreas Mohrb6e84182002-02-02 18:03:55 +0000234If you add something, or fix a bug, please send a patch (in 'diff -u'
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000235format) to wine-patches@winehq.org list for inclusion in the next
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000236release.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000237
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000238--
239Alexandre Julliard
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000240julliard@winehq.org