blob: baa6ab31bf4082ae09a59fb08236a88984b36a62 [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
Austin English954514e2010-07-10 02:50:00 -05004(including DOS, Windows 3.x, Win32, and Win64 executables) on Unix.
5It consists 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
Austin English954514e2010-07-10 02:50:00 -05008be used for porting Windows 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 Julliard4e474032006-08-23 15:59:14 +020013
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000142. QUICK START
Alexandre Julliard3a5816f1994-12-27 14:11:53 +000015
Andreas Mohr581fc922000-09-18 01:40:32 +000016Whenever you compile from source, it is recommended to use the Wine
Andreas Mohra0ff2b42002-02-27 01:30:32 +000017Installer to build and install Wine. From the top-level directory
18of the Wine source (which contains this file), run:
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +000019
20./tools/wineinstall
21
Alexandre Julliard4e474032006-08-23 15:59:14 +020022Run programs as "wine program". For more information and problem
23resolution, read the rest of this file, the Wine man page, and
Dimi Paun12f9bb72005-05-10 13:26:14 +000024especially the wealth of information found at http://www.winehq.org.
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +000025
Alexandre Julliard4e474032006-08-23 15:59:14 +020026
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000273. 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 Pfeiferc95c75b2009-01-03 19:12:50 +010032 FreeBSD 6.3 or later
Austin English1b81ee32008-05-30 11:44:24 -050033 Solaris x86 9 or later
Andreas Mohrc08b9482003-04-04 22:12:21 +000034 NetBSD-current
Francois Gougetbb8e6252006-12-04 19:55:35 +010035 Mac OS X 10.4 or later
Andreas Mohrc08b9482003-04-04 22:12:21 +000036
37As Wine requires kernel-level thread support to run, only the operating
Gerald Pfeiferfef243c2007-09-16 21:19:48 +020038systems mentioned above are supported. Other operating systems which
39support kernel threads may be supported in 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),
Marcus Meissner4fe7ee82006-09-12 22:43:53 +020044 it's best to have a current kernel such as 2.4.x or 2.6.x.
Alexandre Julliard6abb89c1995-03-02 17:33:47 +000045
Andreas Mohrc9ec8842001-01-24 19:37:13 +000046FreeBSD info:
Austin English1b81ee32008-05-30 11:44:24 -050047 Wine will generally not work properly on versions before FreeBSD
Gerald Pfeiferc95c75b2009-01-03 19:12:50 +010048 6.3 or 7.0, and FreeBSD 6.3 has additional patches available. See
Austin English954514e2010-07-10 02:50:00 -050049 http://wiki.freebsd.org/Wine for more information.
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
Francois Gougetbb8e6252006-12-04 19:55:35 +010061Mac OS X info:
Alexandre Julliard4e474032006-08-23 15:59:14 +020062 You need Xcode 2.4 or later to build properly on x86.
Andreas Mohrc08b9482003-04-04 22:12:21 +000063
64
65Supported file systems:
Alexandre Julliard6504ee42008-05-23 12:10:24 +020066 Wine should run on most file systems. A few compatibility problems
67 have also been reported using files accessed through Samba. Also,
68 NTFS does not provide all the file system features needed by some
69 applications. Using a native Linux file system such as ext3 is
70 recommended.
Andreas Mohrc9ec8842001-01-24 19:37:13 +000071
Andreas Mohrc08b9482003-04-04 22:12:21 +000072Basic requirements:
73 You need to have the X11 development include files installed
Gerald Pfeifer2d979b62006-02-28 23:19:19 +010074 (called xlib6g-dev in Debian and XFree86-devel in Red Hat).
Juergen Lockca851391999-11-28 19:48:24 +000075
Andreas Mohrc08b9482003-04-04 22:12:21 +000076 Of course you also need "make" (most likely GNU make).
Andreas Mohrc9ec8842001-01-24 19:37:13 +000077
Austin English954514e2010-07-10 02:50:00 -050078 You also need flex version 2.5.33 or later and bison.
Andreas Mohra5589d52002-06-04 23:09:34 +000079
Andreas Mohrc08b9482003-04-04 22:12:21 +000080Optional support libraries:
Alexandre Julliard6504ee42008-05-23 12:10:24 +020081 Configure will display notices when optional libraries are not found
82 on your system. See http://wiki.winehq.org/Recommended_Packages for
83 hints about the packages you should install.
Alexandre Julliard4e474032006-08-23 15:59:14 +020084
Austin English954514e2010-07-10 02:50:00 -050085 On 64-bit platforms, if compiling Wine as 32-bit (default), you have
86 to make sure to install the 32-bit versions of these libraries; see
87 http://wiki.winehq.org/WineOn64bit for details. If you want a true
88 64-bit Wine (or a mixed 32-bit and 64-bit Wine setup), see
89 http://wiki.winehq.org/Wine64 for details.
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
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +000097make
98
Andreas Mohra5589d52002-06-04 23:09:34 +000099This will build the program "wine" and numerous support libraries/binaries.
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000100The program "wine" will load and run Windows executables.
Andreas Mohr1af53cb2000-12-09 03:15:32 +0000101The library "libwine" ("Winelib") can be used to compile and link
102Windows source code under Unix.
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000103
Andreas Mohr1af53cb2000-12-09 03:15:32 +0000104To see compile configuration options, do ./configure --help.
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +0000105
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001065. SETUP
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000107
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000108Once Wine has been built correctly, you can do "make install"; this
Austin English954514e2010-07-10 02:50:00 -0500109will install the wine executable and libraries, the Wine man page, and
110other needed files.
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000111
Andreas Mohrde53c482001-04-09 18:32:16 +0000112Don't forget to uninstall any conflicting previous Wine installation
113first. Try either "dpkg -r wine" or "rpm -e wine" or "make uninstall"
114before installing.
115
Alexandre Julliard6504ee42008-05-23 12:10:24 +0200116Once installed, you can run the "winecfg" configuration tool. See the
117Support area at http://www.winehq.org/ for configuration hints.
Andreas Mohra0ff2b42002-02-27 01:30:32 +0000118
Alexandre Julliard4e474032006-08-23 15:59:14 +0200119
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001206. RUNNING PROGRAMS
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000121
James Juran38a3d261999-01-01 18:45:52 +0000122When invoking Wine, you may specify the entire path to the executable,
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000123or a filename only.
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000124
Austin English1b81ee32008-05-30 11:44:24 -0500125For example: to run Notepad:
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000126
Austin English954514e2010-07-10 02:50:00 -0500127 wine notepad (using the search Path as specified in
128 wine notepad.exe the registry to locate the file)
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000129
Austin English954514e2010-07-10 02:50:00 -0500130 wine c:\\windows\\notepad.exe (using DOS filename syntax)
Alexandre Julliard5f721f81994-01-04 20:14:34 +0000131
Austin English954514e2010-07-10 02:50:00 -0500132 wine ~/.wine/drive_c/windows/notepad.exe (using Unix filename syntax)
Andreas Mohrc08b9482003-04-04 22:12:21 +0000133
Austin English954514e2010-07-10 02:50:00 -0500134 wine notepad.exe readme.txt (calling program with parameters)
Alexandre Julliardf41aeca1993-09-14 16:47:10 +0000135
Austin English954514e2010-07-10 02:50:00 -0500136Wine is not perfect, so some programs may crash. If that happens you
137will get a crash log that you should attach to your report when filing
138a bug.
Alexandre Julliard58199531994-04-21 01:20:00 +0000139
Andreas Mohra6d83eb2000-12-27 04:02:46 +0000140
Dimi Paun12f9bb72005-05-10 13:26:14 +00001417. GETTING MORE INFORMATION
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000142
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000143WWW: A great deal of information about Wine is available from WineHQ at
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000144 http://www.winehq.org/ : various Wine Guides, application database,
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000145 bug tracking. This is probably the best starting point.
Andreas Mohr8cd93512000-01-29 21:12:58 +0000146
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000147FAQ: The Wine FAQ is located at http://www.winehq.org/FAQ
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000148
Austin English954514e2010-07-10 02:50:00 -0500149Wiki: The Wine Wiki is located at http://wiki.winehq.org
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000150
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000151Mailing lists:
Alexandre Julliard4e474032006-08-23 15:59:14 +0200152 There are several mailing lists for Wine users and developers;
153 see http://www.winehq.org/forums for more information.
154
Austin English954514e2010-07-10 02:50:00 -0500155Bugs: Report bugs to Wine Bugzilla at http://bugs.winehq.org
156 Please search the bugzilla database to check whether your
157 problem is already known or fixed before posting a bug report.
Andreas Mohr3d2a38c2001-06-29 01:41:03 +0000158
Austin English954514e2010-07-10 02:50:00 -0500159IRC: Online help is available at channel #WineHQ on irc.freenode.net.
160
161Git: The current Wine development tree is available through Git.
162 Go to http://www.winehq.org/git for more information.
163
164If you add something, or fix a bug, please send a patch (preferably
165using git-format-patch) to the wine-patches@winehq.org list for
166inclusion in the next release.
Alexandre Julliard8d24ae61994-04-05 21:42:43 +0000167
Alexandre Julliard3a5816f1994-12-27 14:11:53 +0000168--
169Alexandre Julliard
Dimitrie O. Paunc0232542003-11-26 03:55:01 +0000170julliard@winehq.org