blob: 342f80aab0d2a66504868e4ff37181b9e41d7db2 [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
Gerald Pfeifera93fb4a2004-11-21 15:33:00 +000032 FreeBSD 5.3 or later
Andreas Mohrc08b9482003-04-04 22:12:21 +000033 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 Pfeifere5f66372004-12-15 10:51:51 +000047 Wine should build on FreeBSD 4.x and FreeBSD 5.x, but versions before
48 FreeBSD 5.3 will generally not work properly.
Gerald Pfeifera93fb4a2004-11-21 15:33:00 +000049
50 More information can be found in the FreeBSD ports tree at
51 <ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/emulators/wine/>.
Andreas Mohrc9ec8842001-01-24 19:37:13 +000052
53Solaris info:
Gerald Pfeiferd2b22892001-07-20 17:56:59 +000054 You will most likely need to build Wine with the GNU toolchain
Gerard Patel2895e7f2001-10-16 21:47:51 +000055 (gcc, gas, etc.). Warning : installing gas does *not* ensure that it
Andreas Mohra5589d52002-06-04 23:09:34 +000056 will be used by gcc. Recompiling gcc after installing gas or
Gerard Patel2895e7f2001-10-16 21:47:51 +000057 symlinking cc, as and ld to the gnu tools is said to be necessary.
58
Bang Jun-Young9048c492001-12-19 18:48:45 +000059NetBSD info:
60 Make sure you have the USER_LDT, SYSVSHM, SYSVSEM, and SYSVMSG options
61 turned on in your kernel.
62
Andreas Mohrc08b9482003-04-04 22:12:21 +000063
64
65Supported file systems:
Gerard Patel2895e7f2001-10-16 21:47:51 +000066 Wine should run on most file systems. However, Wine will fail to start
67 if umsdos is used for the /tmp directory. A few compatibility problems have
Andreas Mohra0ff2b42002-02-27 01:30:32 +000068 also been reported using files accessed through Samba. Also, as NTFS
69 can only be used safely with readonly access for now, we recommend against
70 using NTFS, as Windows programs need write access almost everywhere.
71 In case of NTFS files, copy over to a writable location.
Andreas Mohrc9ec8842001-01-24 19:37:13 +000072
Andreas Mohrc08b9482003-04-04 22:12:21 +000073Basic requirements:
74 You need to have the X11 development include files installed
75 (called xlib6g-dev in Debian and XFree86-devel in RedHat).
Juergen Lockca851391999-11-28 19:48:24 +000076
Andreas Mohrc08b9482003-04-04 22:12:21 +000077Build tool requirements:
78 On x86 Systems gcc >= 2.7.2 is required.
79 Versions earlier than 2.7.2.3 may have problems when certain files
80 are compiled with optimization, often due to problems with header file
81 management. pgcc currently doesn't work with Wine. The cause of this problem
82 is unknown.
Andreas Mohrc165bca2000-10-22 23:47:27 +000083
Andreas Mohrc08b9482003-04-04 22:12:21 +000084 Of course you also need "make" (most likely GNU make).
Andreas Mohrc9ec8842001-01-24 19:37:13 +000085
Mike McCormackc068f672004-03-16 03:11:39 +000086 You also need flex version 2.5 or later and bison. If you are
Andreas Mohrc08b9482003-04-04 22:12:21 +000087 using RedHat or Debian, install the flex and bison packages.
Andreas Mohra5589d52002-06-04 23:09:34 +000088
Andreas Mohrc08b9482003-04-04 22:12:21 +000089Optional support libraries:
90 If you want CUPS printing support, please install both cups and cups-devel
91 packages.
James Juran0ff60a01999-04-26 14:57:06 +000092
Andreas Mohrc08b9482003-04-04 22:12:21 +000093 For the automatic processing of the test suite scripts, you also need
94 libperl development header support (libperl-dev package on Debian).
Andreas Mohra5589d52002-06-04 23:09:34 +000095
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
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000144See the Support area at http://www.winehq.org/ for further
Andreas Mohrc08b9482003-04-04 22:12:21 +0000145configuration hints.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000146
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000147In case of library loading errors
148(e.g. "Error while loading shared libraries: libntdll.so"), make sure
149to add the library path to /etc/ld.so.conf and run ldconfig as root.
150
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001516. RUNNING PROGRAMS
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000152
James Juran38a3d261999-01-01 18:45:52 +0000153When invoking Wine, you may specify the entire path to the executable,
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000154or a filename only.
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000155
Douglas Ridgway692389d1998-11-22 16:56:44 +0000156For example: to run Solitaire:
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000157
Andreas Mohrc08b9482003-04-04 22:12:21 +0000158 wine sol (using the search Path as specified in
159 wine sol.exe the config file to locate the file)
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000160
Andreas Mohrc08b9482003-04-04 22:12:21 +0000161 wine c:\\windows\\sol.exe (using DOS filename syntax)
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000162
Andreas Mohrc08b9482003-04-04 22:12:21 +0000163 wine /usr/windows/sol.exe (using Unix filename syntax)
164
Dimitrie O. Paunf950d972004-05-06 23:51:43 +0000165 wine sol.exe /parameter1 -parameter2 parameter3
Andreas Mohrc08b9482003-04-04 22:12:21 +0000166 (calling program with parameters)
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000167
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000168Note: the path of the file will also be added to the path when
Alexandre Julliard58199531994-04-21 01:20:00 +0000169 a full name is supplied on the commandline.
170
Andreas Mohrb6e84182002-02-02 18:03:55 +0000171Wine is not yet complete, so several programs may crash. Provided you set up
Andreas Mohr581fc922000-09-18 01:40:32 +0000172winedbg correctly according to documentation/debugger.sgml, you will be dropped
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000173into a debugger so that you can investigate and fix the problem.
174For more information on how to do this, please read the file
175documentation/debugging.sgml.
James Juran38a3d261999-01-01 18:45:52 +0000176
Andreas Mohra6d83eb2000-12-27 04:02:46 +0000177You should backup all your important files that you give Wine access
178to, or use a special Wine copy of them, as there have been some cases
179of users reporting file corruption. Do NOT run Explorer, for instance,
180if you don't have a proper backup, as it renames/cripples several
Andreas Mohr7bed6962001-09-19 22:34:38 +0000181directories sometimes. Not even other MS apps such as e.g. Messenger are safe,
182as they launch Explorer somehow. This particular corruption (!$!$!$!$.pfr)
Andreas Mohra69c0392001-12-26 20:40:47 +0000183can at least partially be fixed by using
184http://home.nexgo.de/andi.mohr/download/decorrupt_explorer
Andreas Mohra6d83eb2000-12-27 04:02:46 +0000185
Andreas Mohrb6e84182002-02-02 18:03:55 +00001867. DOCUMENTATION
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000187
Andreas Mohrb6e84182002-02-02 18:03:55 +0000188Some documentation (various Wine Guides etc.) can be found in the
189documentation/ directory (apart from also being available on WineHQ).
190
Alexandre Julliard5b80ce32002-07-01 18:23:38 +0000191If you want to process the SGML files in there, then you can run "make doc"
Andreas Mohrb6e84182002-02-02 18:03:55 +0000192in the documentation/ directory.
193Doing so requires the sgml tools package (for db2html, db2ps, db2pdf) named:
194Debian: docbook-utils
195Mandrake: sgml-tools-A.B.C-DDmdk
196SuSE: docbktls-A.BB.C-DD
197
1988. GETTING MORE INFORMATION
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000199
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000200WWW: A great deal of information about Wine is available from WineHQ at
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000201 http://www.winehq.org/ : various Wine Guides, application database,
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000202 bug tracking. This is probably the best starting point.
Andreas Mohr8cd93512000-01-29 21:12:58 +0000203
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000204FAQ: The Wine FAQ is located at http://www.winehq.org/FAQ
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000205
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000206Usenet: You can discuss Wine-related issues and get help
207 on comp.emulators.ms-windows.wine.
208
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000209Bugs: Report bugs to Wine Bugzilla at http://bugs.winehq.org
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000210 Please search the bugzilla database to check whether your
211 problem is already found before posting a bug report. You can
212 also post bug reports to comp.emulators.ms-windows.wine.
213 Please read the file documentation/bugs.sgml to see what
214 information is required.
215
Jeff Smith344ed412002-12-24 00:56:33 +0000216IRC: Online help is available at channel #WineHQ on irc.freenode.net.
Andreas Mohr8cd93512000-01-29 21:12:58 +0000217
Alexandre Julliard9d7fbc41998-10-18 16:32:47 +0000218CVS: The current Wine development tree is available through CVS.
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000219 Go to http://www.winehq.org/cvs for more information.
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000220
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000221Mailing lists:
Andreas Mohra5589d52002-06-04 23:09:34 +0000222 There are several mailing lists for Wine developers; see
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000223 http://www.winehq.org/forums for more information.
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000224
Andreas Mohrb6e84182002-02-02 18:03:55 +0000225If you add something, or fix a bug, please send a patch (in 'diff -u'
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000226format) to wine-patches@winehq.org list for inclusion in the next
Andriy Palamarchukac3a9a32002-05-04 18:41:27 +0000227release.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000228
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000229--
230Alexandre Julliard
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000231julliard@winehq.org