blob: 029f592e164132ff570454be47cd324c6bbd958f [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
Dimi Paun12f9bb72005-05-10 13:26:14 +000022problem resolution, read the rest of this file, the Wine man page, and
23especially the wealth of information found at http://www.winehq.org.
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +000024
253. REQUIREMENTS
Alexandre Julliard401710d1993-09-04 10:09:32 +000026
James Juran0ff60a01999-04-26 14:57:06 +000027To compile and run Wine, you must have one of the following:
Alexandre Julliardf41aeca1993-09-14 16:47:10 +000028
Andreas Mohrc08b9482003-04-04 22:12:21 +000029 Linux version 2.0.36 or above
Gerald Pfeifera93fb4a2004-11-21 15:33:00 +000030 FreeBSD 5.3 or later
Andreas Mohrc08b9482003-04-04 22:12:21 +000031 Solaris x86 2.5 or later
32 NetBSD-current
33
34As Wine requires kernel-level thread support to run, only the operating
35systems mentioned above are supported.
36Other operating systems which support kernel threads may be supported
37in the future.
Alexandre Julliardf41aeca1993-09-14 16:47:10 +000038
Andreas Mohrc9ec8842001-01-24 19:37:13 +000039Linux info:
Andreas Mohrc08b9482003-04-04 22:12:21 +000040 While Linux 2.2.x should still work and Linux 2.0.x may still work
41 (older 2.0.x versions had thread-related crashes),
42 it's best to have a current kernel such as 2.4.x.
Alexandre Julliard6abb89c1995-03-02 17:33:47 +000043
Andreas Mohrc9ec8842001-01-24 19:37:13 +000044FreeBSD info:
Gerald Pfeifere5f66372004-12-15 10:51:51 +000045 Wine should build on FreeBSD 4.x and FreeBSD 5.x, but versions before
46 FreeBSD 5.3 will generally not work properly.
Gerald Pfeifera93fb4a2004-11-21 15:33:00 +000047
48 More information can be found in the FreeBSD ports tree at
49 <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
Gerald Pfeifer2d979b62006-02-28 23:19:19 +010073 (called xlib6g-dev in Debian and XFree86-devel in Red Hat).
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
Gerald Pfeifer2d979b62006-02-28 23:19:19 +010084 You also need flex version 2.5 or later and bison.
Andreas Mohra5589d52002-06-04 23:09:34 +000085
Andreas Mohrc08b9482003-04-04 22:12:21 +000086Optional support libraries:
87 If you want CUPS printing support, please install both cups and cups-devel
88 packages.
Gerald Pfeifer2d979b62006-02-28 23:19:19 +010089 Install the libxml2 package to get a functional msxml implementation.
James Juran0ff60a01999-04-26 14:57:06 +000090
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000914. COMPILATION
Alexandre Julliarda69b88b1998-03-15 20:29:56 +000092
Andreas Mohrc9ec8842001-01-24 19:37:13 +000093In case you chose to not use wineinstall, run the following commands
94to build Wine:
Alexandre Julliard401710d1993-09-04 10:09:32 +000095
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +000096./configure
97make depend
98make
99
Andreas Mohra5589d52002-06-04 23:09:34 +0000100This will build the program "wine" and numerous support libraries/binaries.
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000101The program "wine" will load and run Windows executables.
Andreas Mohr1af53cb2000-12-09 03:15:32 +0000102The library "libwine" ("Winelib") can be used to compile and link
103Windows source code under Unix.
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000104
Andreas Mohr1af53cb2000-12-09 03:15:32 +0000105To see compile configuration options, do ./configure --help.
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +0000106
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000107To upgrade to a new release by using a patch file, first cd to the
108top-level directory of the release (the one containing this README
109file). Then do a "make clean", and patch the release with:
110
111 gunzip -c patch-file | patch -p1
112
113where "patch-file" is the name of the patch file (something like
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000114Wine-yymmdd.diff.gz). You can then re-run "./configure", and then
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000115run "make depend && make".
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000116
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001175. SETUP
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000118
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000119Once Wine has been built correctly, you can do "make install"; this
James Juran38a3d261999-01-01 18:45:52 +0000120will install the wine executable, the Wine man page, and a few other
121needed files.
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000122
Andreas Mohrde53c482001-04-09 18:32:16 +0000123Don't forget to uninstall any conflicting previous Wine installation
124first. Try either "dpkg -r wine" or "rpm -e wine" or "make uninstall"
125before installing.
126
Dimi Paun12f9bb72005-05-10 13:26:14 +0000127See the Support area at http://www.winehq.org/ for configuration
128hints.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000129
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000130In case of library loading errors
131(e.g. "Error while loading shared libraries: libntdll.so"), make sure
132to add the library path to /etc/ld.so.conf and run ldconfig as root.
133
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001346. RUNNING PROGRAMS
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000135
James Juran38a3d261999-01-01 18:45:52 +0000136When invoking Wine, you may specify the entire path to the executable,
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000137or a filename only.
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000138
Douglas Ridgway692389d1998-11-22 16:56:44 +0000139For example: to run Solitaire:
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000140
Andreas Mohrc08b9482003-04-04 22:12:21 +0000141 wine sol (using the search Path as specified in
142 wine sol.exe the config file to locate the file)
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000143
Andreas Mohrc08b9482003-04-04 22:12:21 +0000144 wine c:\\windows\\sol.exe (using DOS filename syntax)
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000145
Andreas Mohrc08b9482003-04-04 22:12:21 +0000146 wine /usr/windows/sol.exe (using Unix filename syntax)
147
Dimitrie O. Paunf950d972004-05-06 23:51:43 +0000148 wine sol.exe /parameter1 -parameter2 parameter3
Andreas Mohrc08b9482003-04-04 22:12:21 +0000149 (calling program with parameters)
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000150
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000151Note: the path of the file will also be added to the path when
Alexandre Julliard58199531994-04-21 01:20:00 +0000152 a full name is supplied on the commandline.
153
Andreas Mohrb6e84182002-02-02 18:03:55 +0000154Wine is not yet complete, so several programs may crash. Provided you set up
Andreas Mohr581fc922000-09-18 01:40:32 +0000155winedbg correctly according to documentation/debugger.sgml, you will be dropped
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000156into a debugger so that you can investigate and fix the problem.
157For more information on how to do this, please read the file
158documentation/debugging.sgml.
James Juran38a3d261999-01-01 18:45:52 +0000159
Andreas Mohra6d83eb2000-12-27 04:02:46 +0000160You should backup all your important files that you give Wine access
161to, or use a special Wine copy of them, as there have been some cases
162of users reporting file corruption. Do NOT run Explorer, for instance,
163if you don't have a proper backup, as it renames/cripples several
Andreas Mohr7bed6962001-09-19 22:34:38 +0000164directories sometimes. Not even other MS apps such as e.g. Messenger are safe,
165as they launch Explorer somehow. This particular corruption (!$!$!$!$.pfr)
Andreas Mohra69c0392001-12-26 20:40:47 +0000166can at least partially be fixed by using
167http://home.nexgo.de/andi.mohr/download/decorrupt_explorer
Andreas Mohra6d83eb2000-12-27 04:02:46 +0000168
Dimi Paun12f9bb72005-05-10 13:26:14 +00001697. GETTING MORE INFORMATION
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000170
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000171WWW: A great deal of information about Wine is available from WineHQ at
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000172 http://www.winehq.org/ : various Wine Guides, application database,
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000173 bug tracking. This is probably the best starting point.
Andreas Mohr8cd93512000-01-29 21:12:58 +0000174
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000175FAQ: The Wine FAQ is located at http://www.winehq.org/FAQ
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000176
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000177Usenet: You can discuss Wine-related issues and get help
178 on comp.emulators.ms-windows.wine.
179
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000180Bugs: Report bugs to Wine Bugzilla at http://bugs.winehq.org
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000181 Please search the bugzilla database to check whether your
182 problem is already found before posting a bug report. You can
183 also post bug reports to comp.emulators.ms-windows.wine.
184 Please read the file documentation/bugs.sgml to see what
185 information is required.
186
Jeff Smith344ed412002-12-24 00:56:33 +0000187IRC: Online help is available at channel #WineHQ on irc.freenode.net.
Andreas Mohr8cd93512000-01-29 21:12:58 +0000188
Alexandre Julliard9d7fbc41998-10-18 16:32:47 +0000189CVS: The current Wine development tree is available through CVS.
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000190 Go to http://www.winehq.org/cvs for more information.
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000191
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000192Mailing lists:
Andreas Mohra5589d52002-06-04 23:09:34 +0000193 There are several mailing lists for Wine developers; see
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000194 http://www.winehq.org/forums for more information.
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000195
Andreas Mohrb6e84182002-02-02 18:03:55 +0000196If you add something, or fix a bug, please send a patch (in 'diff -u'
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000197format) to wine-patches@winehq.org list for inclusion in the next
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000198release.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000199
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000200--
201Alexandre Julliard
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000202julliard@winehq.org