Alexandre Julliard | 3a5816f | 1994-12-27 14:11:53 +0000 | [diff] [blame] | 1 | 1. INTRODUCTION |
Alexandre Julliard | 2c25c3e | 1993-06-29 16:33:12 +0000 | [diff] [blame] | 2 | |
Douglas Ridgway | 692389d | 1998-11-22 16:56:44 +0000 | [diff] [blame] | 3 | Wine is a program which allows running Microsoft Windows programs |
| 4 | (including DOS, Windows 3.x and Win32 executables) on Unix. It |
James Juran | 0ff60a0 | 1999-04-26 14:57:06 +0000 | [diff] [blame] | 5 | consists of a program loader which loads and executes a Microsoft |
Andreas Mohr | 3d2a38c | 2001-06-29 01:41:03 +0000 | [diff] [blame] | 6 | Windows binary, and a library (called Winelib) that implements Windows |
| 7 | API calls using their Unix or X11 equivalents. The library may also |
| 8 | be used for porting Win32 code into native Unix executables. |
Alexandre Julliard | 8d24ae6 | 1994-04-05 21:42:43 +0000 | [diff] [blame] | 9 | |
Martin Garton | 89894ff | 2002-03-20 00:59:27 +0000 | [diff] [blame] | 10 | Wine is free software, released under the GNU LGPL; see the file |
| 11 | LICENSE for the details. |
Alexandre Julliard | 1f57929 | 1994-05-25 16:25:21 +0000 | [diff] [blame] | 12 | |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 13 | |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 14 | 2. QUICK START |
Alexandre Julliard | 3a5816f | 1994-12-27 14:11:53 +0000 | [diff] [blame] | 15 | |
Andreas Mohr | 581fc92 | 2000-09-18 01:40:32 +0000 | [diff] [blame] | 16 | Whenever you compile from source, it is recommended to use the Wine |
Andreas Mohr | a0ff2b4 | 2002-02-27 01:30:32 +0000 | [diff] [blame] | 17 | Installer to build and install Wine. From the top-level directory |
| 18 | of the Wine source (which contains this file), run: |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 19 | |
| 20 | ./tools/wineinstall |
| 21 | |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 22 | Run programs as "wine program". For more information and problem |
| 23 | resolution, read the rest of this file, the Wine man page, and |
Dimi Paun | 12f9bb7 | 2005-05-10 13:26:14 +0000 | [diff] [blame] | 24 | especially the wealth of information found at http://www.winehq.org. |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 25 | |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 26 | |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 27 | 3. REQUIREMENTS |
Alexandre Julliard | 401710d | 1993-09-04 10:09:32 +0000 | [diff] [blame] | 28 | |
James Juran | 0ff60a0 | 1999-04-26 14:57:06 +0000 | [diff] [blame] | 29 | To compile and run Wine, you must have one of the following: |
Alexandre Julliard | f41aeca | 1993-09-14 16:47:10 +0000 | [diff] [blame] | 30 | |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 31 | Linux version 2.0.36 or above |
Gerald Pfeifer | a93fb4a | 2004-11-21 15:33:00 +0000 | [diff] [blame] | 32 | FreeBSD 5.3 or later |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 33 | Solaris x86 2.5 or later |
| 34 | NetBSD-current |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 35 | MacOS X 10.4 or later |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 36 | |
| 37 | As Wine requires kernel-level thread support to run, only the operating |
| 38 | systems mentioned above are supported. |
| 39 | Other operating systems which support kernel threads may be supported |
| 40 | in the future. |
Alexandre Julliard | f41aeca | 1993-09-14 16:47:10 +0000 | [diff] [blame] | 41 | |
Andreas Mohr | c9ec884 | 2001-01-24 19:37:13 +0000 | [diff] [blame] | 42 | Linux info: |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 43 | While Linux 2.2.x should still work and Linux 2.0.x may still work |
| 44 | (older 2.0.x versions had thread-related crashes), |
Marcus Meissner | 4fe7ee8 | 2006-09-12 22:43:53 +0200 | [diff] [blame] | 45 | it's best to have a current kernel such as 2.4.x or 2.6.x. |
Alexandre Julliard | 6abb89c | 1995-03-02 17:33:47 +0000 | [diff] [blame] | 46 | |
Andreas Mohr | c9ec884 | 2001-01-24 19:37:13 +0000 | [diff] [blame] | 47 | FreeBSD info: |
Gerald Pfeifer | e5f6637 | 2004-12-15 10:51:51 +0000 | [diff] [blame] | 48 | Wine should build on FreeBSD 4.x and FreeBSD 5.x, but versions before |
| 49 | FreeBSD 5.3 will generally not work properly. |
Gerald Pfeifer | a93fb4a | 2004-11-21 15:33:00 +0000 | [diff] [blame] | 50 | |
| 51 | More information can be found in the FreeBSD ports tree at |
| 52 | <ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/emulators/wine/>. |
Andreas Mohr | c9ec884 | 2001-01-24 19:37:13 +0000 | [diff] [blame] | 53 | |
| 54 | Solaris info: |
Gerald Pfeifer | d2b2289 | 2001-07-20 17:56:59 +0000 | [diff] [blame] | 55 | You will most likely need to build Wine with the GNU toolchain |
Gerard Patel | 2895e7f | 2001-10-16 21:47:51 +0000 | [diff] [blame] | 56 | (gcc, gas, etc.). Warning : installing gas does *not* ensure that it |
Andreas Mohr | a5589d5 | 2002-06-04 23:09:34 +0000 | [diff] [blame] | 57 | will be used by gcc. Recompiling gcc after installing gas or |
Gerard Patel | 2895e7f | 2001-10-16 21:47:51 +0000 | [diff] [blame] | 58 | symlinking cc, as and ld to the gnu tools is said to be necessary. |
| 59 | |
Bang Jun-Young | 9048c49 | 2001-12-19 18:48:45 +0000 | [diff] [blame] | 60 | NetBSD info: |
| 61 | Make sure you have the USER_LDT, SYSVSHM, SYSVSEM, and SYSVMSG options |
| 62 | turned on in your kernel. |
| 63 | |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 64 | MacOS info: |
| 65 | You need Xcode 2.4 or later to build properly on x86. |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 66 | |
| 67 | |
| 68 | Supported file systems: |
Gerard Patel | 2895e7f | 2001-10-16 21:47:51 +0000 | [diff] [blame] | 69 | Wine should run on most file systems. However, Wine will fail to start |
| 70 | if umsdos is used for the /tmp directory. A few compatibility problems have |
Andreas Mohr | a0ff2b4 | 2002-02-27 01:30:32 +0000 | [diff] [blame] | 71 | also been reported using files accessed through Samba. Also, as NTFS |
| 72 | can only be used safely with readonly access for now, we recommend against |
| 73 | using NTFS, as Windows programs need write access almost everywhere. |
| 74 | In case of NTFS files, copy over to a writable location. |
Andreas Mohr | c9ec884 | 2001-01-24 19:37:13 +0000 | [diff] [blame] | 75 | |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 76 | Basic requirements: |
| 77 | You need to have the X11 development include files installed |
Gerald Pfeifer | 2d979b6 | 2006-02-28 23:19:19 +0100 | [diff] [blame] | 78 | (called xlib6g-dev in Debian and XFree86-devel in Red Hat). |
Juergen Lock | ca85139 | 1999-11-28 19:48:24 +0000 | [diff] [blame] | 79 | |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 80 | Build tool requirements: |
| 81 | On x86 Systems gcc >= 2.7.2 is required. |
| 82 | Versions earlier than 2.7.2.3 may have problems when certain files |
| 83 | are compiled with optimization, often due to problems with header file |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 84 | management. |
Andreas Mohr | c165bca | 2000-10-22 23:47:27 +0000 | [diff] [blame] | 85 | |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 86 | Of course you also need "make" (most likely GNU make). |
Andreas Mohr | c9ec884 | 2001-01-24 19:37:13 +0000 | [diff] [blame] | 87 | |
Gerald Pfeifer | 2d979b6 | 2006-02-28 23:19:19 +0100 | [diff] [blame] | 88 | You also need flex version 2.5 or later and bison. |
Andreas Mohr | a5589d5 | 2002-06-04 23:09:34 +0000 | [diff] [blame] | 89 | |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 90 | Optional support libraries: |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 91 | Run ./configure --verbose to see the optional libraries that could |
| 92 | be used but aren't found on your system. |
| 93 | |
James Juran | 0ff60a0 | 1999-04-26 14:57:06 +0000 | [diff] [blame] | 94 | |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 95 | 4. COMPILATION |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 96 | |
Andreas Mohr | c9ec884 | 2001-01-24 19:37:13 +0000 | [diff] [blame] | 97 | In case you chose to not use wineinstall, run the following commands |
| 98 | to build Wine: |
Alexandre Julliard | 401710d | 1993-09-04 10:09:32 +0000 | [diff] [blame] | 99 | |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 100 | ./configure |
| 101 | make depend |
| 102 | make |
| 103 | |
Andreas Mohr | a5589d5 | 2002-06-04 23:09:34 +0000 | [diff] [blame] | 104 | This will build the program "wine" and numerous support libraries/binaries. |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 105 | The program "wine" will load and run Windows executables. |
Andreas Mohr | 1af53cb | 2000-12-09 03:15:32 +0000 | [diff] [blame] | 106 | The library "libwine" ("Winelib") can be used to compile and link |
| 107 | Windows source code under Unix. |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 108 | |
Andreas Mohr | 1af53cb | 2000-12-09 03:15:32 +0000 | [diff] [blame] | 109 | To see compile configuration options, do ./configure --help. |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 110 | |
Alexandre Julliard | 3a5816f | 1994-12-27 14:11:53 +0000 | [diff] [blame] | 111 | To upgrade to a new release by using a patch file, first cd to the |
| 112 | top-level directory of the release (the one containing this README |
| 113 | file). Then do a "make clean", and patch the release with: |
| 114 | |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 115 | bunzip2 -c patch-file | patch -p1 |
Alexandre Julliard | 3a5816f | 1994-12-27 14:11:53 +0000 | [diff] [blame] | 116 | |
| 117 | where "patch-file" is the name of the patch file (something like |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 118 | wine-0.9.x.diff.bz2). You can then re-run "./configure", and then |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 119 | run "make depend && make". |
Alexandre Julliard | 8d24ae6 | 1994-04-05 21:42:43 +0000 | [diff] [blame] | 120 | |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 121 | |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 122 | 5. SETUP |
Alexandre Julliard | 8d24ae6 | 1994-04-05 21:42:43 +0000 | [diff] [blame] | 123 | |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 124 | Once Wine has been built correctly, you can do "make install"; this |
James Juran | 38a3d26 | 1999-01-01 18:45:52 +0000 | [diff] [blame] | 125 | will install the wine executable, the Wine man page, and a few other |
| 126 | needed files. |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 127 | |
Andreas Mohr | de53c48 | 2001-04-09 18:32:16 +0000 | [diff] [blame] | 128 | Don't forget to uninstall any conflicting previous Wine installation |
| 129 | first. Try either "dpkg -r wine" or "rpm -e wine" or "make uninstall" |
| 130 | before installing. |
| 131 | |
Dimi Paun | 12f9bb7 | 2005-05-10 13:26:14 +0000 | [diff] [blame] | 132 | See the Support area at http://www.winehq.org/ for configuration |
| 133 | hints. |
Alexandre Julliard | 8d24ae6 | 1994-04-05 21:42:43 +0000 | [diff] [blame] | 134 | |
Andreas Mohr | a0ff2b4 | 2002-02-27 01:30:32 +0000 | [diff] [blame] | 135 | In case of library loading errors |
| 136 | (e.g. "Error while loading shared libraries: libntdll.so"), make sure |
| 137 | to add the library path to /etc/ld.so.conf and run ldconfig as root. |
| 138 | |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 139 | |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 140 | 6. RUNNING PROGRAMS |
Alexandre Julliard | 8d24ae6 | 1994-04-05 21:42:43 +0000 | [diff] [blame] | 141 | |
James Juran | 38a3d26 | 1999-01-01 18:45:52 +0000 | [diff] [blame] | 142 | When invoking Wine, you may specify the entire path to the executable, |
Alexandre Julliard | 8d24ae6 | 1994-04-05 21:42:43 +0000 | [diff] [blame] | 143 | or a filename only. |
Alexandre Julliard | f41aeca | 1993-09-14 16:47:10 +0000 | [diff] [blame] | 144 | |
Douglas Ridgway | 692389d | 1998-11-22 16:56:44 +0000 | [diff] [blame] | 145 | For example: to run Solitaire: |
Alexandre Julliard | 5f721f8 | 1994-01-04 20:14:34 +0000 | [diff] [blame] | 146 | |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 147 | wine sol (using the search Path as specified in |
| 148 | wine sol.exe the config file to locate the file) |
Alexandre Julliard | 5f721f8 | 1994-01-04 20:14:34 +0000 | [diff] [blame] | 149 | |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 150 | wine c:\\windows\\sol.exe (using DOS filename syntax) |
Alexandre Julliard | 5f721f8 | 1994-01-04 20:14:34 +0000 | [diff] [blame] | 151 | |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 152 | wine /usr/windows/sol.exe (using Unix filename syntax) |
| 153 | |
Dimitrie O. Paun | f950d97 | 2004-05-06 23:51:43 +0000 | [diff] [blame] | 154 | wine sol.exe /parameter1 -parameter2 parameter3 |
Andreas Mohr | c08b948 | 2003-04-04 22:12:21 +0000 | [diff] [blame] | 155 | (calling program with parameters) |
Alexandre Julliard | f41aeca | 1993-09-14 16:47:10 +0000 | [diff] [blame] | 156 | |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 157 | Wine is not yet complete, so several programs may crash. In that crash |
| 158 | you will be dropped into the debugger so that you can investigate and |
| 159 | fix the problem. For more information on how to do this, please check |
| 160 | the debugging section of the Wine Developer's Guide. |
Alexandre Julliard | 5819953 | 1994-04-21 01:20:00 +0000 | [diff] [blame] | 161 | |
Andreas Mohr | a6d83eb | 2000-12-27 04:02:46 +0000 | [diff] [blame] | 162 | |
Dimi Paun | 12f9bb7 | 2005-05-10 13:26:14 +0000 | [diff] [blame] | 163 | 7. GETTING MORE INFORMATION |
Alexandre Julliard | 8d24ae6 | 1994-04-05 21:42:43 +0000 | [diff] [blame] | 164 | |
Andreas Mohr | 3d2a38c | 2001-06-29 01:41:03 +0000 | [diff] [blame] | 165 | WWW: A great deal of information about Wine is available from WineHQ at |
Dimitrie O. Paun | c023254 | 2003-11-26 03:55:01 +0000 | [diff] [blame] | 166 | http://www.winehq.org/ : various Wine Guides, application database, |
Andreas Mohr | 3d2a38c | 2001-06-29 01:41:03 +0000 | [diff] [blame] | 167 | bug tracking. This is probably the best starting point. |
Andreas Mohr | 8cd9351 | 2000-01-29 21:12:58 +0000 | [diff] [blame] | 168 | |
Dimitrie O. Paun | c023254 | 2003-11-26 03:55:01 +0000 | [diff] [blame] | 169 | FAQ: The Wine FAQ is located at http://www.winehq.org/FAQ |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 170 | |
Andriy Palamarchuk | ac3a9a3 | 2002-05-04 18:41:27 +0000 | [diff] [blame] | 171 | Usenet: You can discuss Wine-related issues and get help |
| 172 | on comp.emulators.ms-windows.wine. |
| 173 | |
Dimitrie O. Paun | c023254 | 2003-11-26 03:55:01 +0000 | [diff] [blame] | 174 | Bugs: Report bugs to Wine Bugzilla at http://bugs.winehq.org |
Andriy Palamarchuk | ac3a9a3 | 2002-05-04 18:41:27 +0000 | [diff] [blame] | 175 | Please search the bugzilla database to check whether your |
| 176 | problem is already found before posting a bug report. You can |
| 177 | also post bug reports to comp.emulators.ms-windows.wine. |
Andriy Palamarchuk | ac3a9a3 | 2002-05-04 18:41:27 +0000 | [diff] [blame] | 178 | |
Jeff Smith | 344ed41 | 2002-12-24 00:56:33 +0000 | [diff] [blame] | 179 | IRC: Online help is available at channel #WineHQ on irc.freenode.net. |
Andreas Mohr | 8cd9351 | 2000-01-29 21:12:58 +0000 | [diff] [blame] | 180 | |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 181 | GIT: The current Wine development tree is available through GIT. |
| 182 | Go to http://www.winehq.org/site/git for more information. |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 183 | |
Andreas Mohr | 3d2a38c | 2001-06-29 01:41:03 +0000 | [diff] [blame] | 184 | Mailing lists: |
Alexandre Julliard | 4e47403 | 2006-08-23 15:59:14 +0200 | [diff] [blame] | 185 | There are several mailing lists for Wine users and developers; |
| 186 | see http://www.winehq.org/forums for more information. |
| 187 | |
| 188 | Wiki: The Wine Wiki is located at http://wiki.winehq.org |
Andreas Mohr | 3d2a38c | 2001-06-29 01:41:03 +0000 | [diff] [blame] | 189 | |
Andreas Mohr | b6e8418 | 2002-02-02 18:03:55 +0000 | [diff] [blame] | 190 | If you add something, or fix a bug, please send a patch (in 'diff -u' |
Dimitrie O. Paun | c023254 | 2003-11-26 03:55:01 +0000 | [diff] [blame] | 191 | format) to wine-patches@winehq.org list for inclusion in the next |
Andriy Palamarchuk | ac3a9a3 | 2002-05-04 18:41:27 +0000 | [diff] [blame] | 192 | release. |
Alexandre Julliard | 8d24ae6 | 1994-04-05 21:42:43 +0000 | [diff] [blame] | 193 | |
Alexandre Julliard | 3a5816f | 1994-12-27 14:11:53 +0000 | [diff] [blame] | 194 | -- |
| 195 | Alexandre Julliard |
Dimitrie O. Paun | c023254 | 2003-11-26 03:55:01 +0000 | [diff] [blame] | 196 | julliard@winehq.org |