Rewrite GetCommState16 using GetCommState.
[wine/wine-kai.git] / README
blobf03b974943a88d5e5a7772f221a24dac037afa23
1 1. INTRODUCTION
3 Wine is a program which allows running Microsoft Windows programs
4 (including DOS, Windows 3.x and Win32 executables) on Unix.  It
5 consists of a program loader which loads and executes a Microsoft
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.
10 Wine is free software, and its license (contained in the file LICENSE)
11 is BSD style.  Basically, you can do anything with it except claim
12 that you wrote it.
14 2. QUICK START
16 Whenever you compile from source, it is recommended to use the Wine
17 Installer to build and install wine.  From the top-level Wine
18 directory (which contains this file), run:
20 ./tools/wineinstall
22 Run programs as "wine [options] program".  For more information and
23 problem resolution, read the rest of this file, the Wine man page,
24 the files in the documentation directory in the Wine source, and
25 especially the wealth of information found at http://www.winehq.com.
27 3. REQUIREMENTS
29 To compile and run Wine, you must have one of the following:
31         Linux version 2.0.36 or above
32         FreeBSD-current or FreeBSD 3.0 or later
33         Solaris x86 2.5 or later
35 Linux info:
36   Although Linux version 2.0.x will mostly work, certain features
37   (specifically LDT sharing) required for properly supporting Win32
38   threads were not implemented until kernel version 2.2.  If you get
39   consistent thread-related crashes, you may want to upgrade to 2.2.
40   Also, some bugs were fixed and additional features were added
41   late in the Linux 2.0.x series, so if you have a very old Linux kernel,
42   you may want to upgrade to at least the latest 2.0.x release.
44 FreeBSD info:
45   On FreeBSD, you may want to apply an LDT sharing patch too
46   (unless you are tracking -current where it finally has
47   been committed just recently), and there also is a small sigtrap
48   fix that's needed for wine's debugger. (Actually now that it's using
49   ptrace() by default it may no longer make a difference but it still
50   doesn't hurt...) And if you're running a system from the -stable
51   branch older than Nov 15 1999, like a 3.3-RELEASE, then you also
52   need to apply a signal handling change that was MFC'd at that date.
53   Make sure you have the USER_LDT, SYSVSHM, SYSVSEM, and SYSVMSG options
54   turned on in your kernel.
55   More information including patches for the -stable branch is in
56   the ports tree:
57   ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports/emulators/wine/files/
59 Solaris info:
60   You will most likely need to build wine with the GNU toolchain
61   (gcc, gas, etc.)
63 Wine requires kernel-level threads to run. Currently, only Linux
64 version 2.0 or later, FreeBSD-current or FreeBSD 3.0 or later,
65 and Solaris x86 version 2.5 or later are supported.
66 Other operating systems which support kernel threads may be supported
67 in the future.
69 You need to have the X11 development include files installed
70 (called xlib6g-dev in Debian and XFree86-devel in RedHat).
71 To use wine's support for multi-threaded applications, your X libraries
72 must be reentrant, which is probably the default by now.
73 If you have libc6 (glibc2), or you compiled the X libraries yourself,
74 they were probably compiled with the reentrant option enabled.
76 You also need to have libXpm installed on your system. The sources for
77 it are available at ftp.x.org and all its mirror sites in the directory
78 /contrib/libraries. If you are using RedHat, libXpm is distributed as the
79 xpm and xpm-devel packages. Debian distributes libXpm as xpm4.7, xpm4g,
80 and xpm4g-dev. SuSE calls these packages xpm and xpm-devel.
82 On x86 Systems gcc >= 2.7.2 is required.
83 Versions earlier than 2.7.2.3 may have problems when certain files
84 are compiled with optimization, often due to problems with header file
85 management. pgcc currently doesn't work with wine. The cause of this problem
86 is unknown.
88 You also need flex version 2.5 or later and yacc.
89 Bison will work as a replacement for yacc. If you are
90 using RedHat or Debian, install the flex and bison packages.
92 In case you want to build the documentation yourself, you'll also
93 need the DocBook tools (db2html, db2ps, db2pdf).
95 4. COMPILATION
97 In case you chose to not use wineinstall, run the following commands
98 to build Wine:
100 ./configure
101 make depend
102 make
104 This will build the program "wine" and numerous support libraries/binaries.  
105 The program "wine" will load and run Windows executables.
106 The library "libwine" ("Winelib") can be used to compile and link
107 Windows source code under Unix.
109 To see compile configuration options, do ./configure --help.
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:
115     gunzip -c patch-file | patch -p1
117 where "patch-file" is the name of the patch file (something like
118 Wine-yymmdd.diff.gz). You can then re-run "./configure", and then
119 run "make depend && make".
122 5. SETUP
124 Once Wine has been built correctly, you can do "make install"; this
125 will install the wine executable, the Wine man page, and a few other
126 needed files.
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.
132 If you want to build the documentation, you can run "make" in the
133 documentation directory.
135 Wine requires a configuration file named named "config" in your
136 ~/.wine directory. The format of this file is explained in the man
137 page. The file documentation/samples/config contains an example
138 configuration file which has to be adapted and copied to the location
139 mentioned above.
141 See http://www.winehq.com/support.shtml for further configuration hints.
143 In order to verify the correctness of the environment you need for
144 Wine to run successfully, run "./tools/winecheck | less".  You'll get
145 a percentage score indicating "Wine configuration correctness".
147 6. RUNNING PROGRAMS
149 When invoking Wine, you may specify the entire path to the executable,
150 or a filename only.
152 For example: to run Solitaire:
154         wine sol                   (using the searchpath to locate the file)
155         wine sol.exe
157         wine c:\\windows\\sol.exe  (using a DOS filename)
159         wine /usr/windows/sol.exe  (using a Unix filename)
161 Note: the path of the file will also be added to the path when
162       a full name is supplied on the commandline.
164 Wine is not yet complete, so some programs may crash. Provided you set up
165 winedbg correctly according to documentation/debugger.sgml, you will be dropped
166 into a debugger so that you can investigate and fix the problem. For more
167 information on how to do this, please read the file documentation/debugging.
168 If you post a bug report, please read the file documentation/bugreports to
169 see what information is required.
171 You should backup all your important files that you give Wine access
172 to, or use a special Wine copy of them, as there have been some cases
173 of users reporting file corruption. Do NOT run Explorer, for instance,
174 if you don't have a proper backup, as it renames/cripples several
175 directories sometimes.
178 7. GETTING MORE INFORMATION
180 WWW:    A great deal of information about Wine is available from WineHQ at
181         http://www.winehq.com/ : various user guides, application database,
182         bug tracking. This is probably the best starting point.
184 FAQ:    The Wine FAQ is located at http://www.winehq.com/FAQ
186 HOWTO:  The Wine HOWTO is available at
187         http://www.westfalen.de/witch/wine-HOWTO.txt .
189 Usenet: The best place to get help or to report bugs is the Usenet newsgroup
190         comp.emulators.ms-windows.wine. Please read the file 
191         documentation/bugreports to see what information should be included 
192         in a bug report.
194         Please browse old messages on http://groups.google.com/ to check
195         whether your problem is already fixed before posting a bug report
196         to the newsgroup. 
198 IRC:    Online help is available at channel #WineHQ on irc.openprojects.net.
200 CVS:    The current Wine development tree is available through CVS.
201         Go to http://www.winehq.com/dev.shtml for more information.
203 Mailing lists:
204         There are several mailing lists for Wine developers; see 
205         http://www.winehq.com/dev.shtml#ml for more information.
207 If you add something, or fix a bug, please send a patch ('diff -u'
208 format preferred) to julliard@winehq.com or to the
209 wine-patches@winehq.com mailing list for inclusion in the next
210 release.
213 Alexandre Julliard
214 julliard@winehq.com