📄 rhl58.htm
字号:
<BR>
<PRE>
<FONT COLOR="#000080">Exclude which messages from the log 'WM_SIZE;WM_TIMER'</FONT></PRE>
<P>If you don't care about any status messages from Wine, leave this as the default. Individual error messages can be turned on or off as well as redirected from the command line.
<BR>
<P>At this point, Configure will display the global configuration file based on your responses to the questions. You will be asked if you want to edit the file using your default editor:
<BR>
<BR>
<PRE>
<FONT COLOR="#000080">Do you want to edit it using vi (Y/N) [N]?</FONT></PRE>
<P>You can always edit this file later with your favorite text editor, so it is safe to answer no to this question.
<BR>
<BR>
<A NAME="E70E38"></A>
<H5 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Automatic System-Specific Configuration</B></FONT></CENTER></H5>
<BR>
<P>After the wine.conf file has been successfully built, the Configure utility proceeds to make changes to the source tree via the xmkmf. Xmkmf is a utility that creates makefiles for X Window and creates a Makefile from an Imakefile taking into account
the peculiarities of different X Window installations across UNIX-like platforms.
<BR>
<BR>
<A NAME="E69E579"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>How To Build Wine</B></FONT></CENTER></H4>
<BR>
<P>To build Wine, simply type
<BR>
<BR>
<PRE>
<FONT COLOR="#000080">make</FONT></PRE>
<P>You're done with the hard part of configuring Wine. However, building Wine seems like the longest part. To build Wine from scratch takes approximately eight minutes on a 90MHz Pentium. You will also need the -lXext libraries for the final link to work,
so install it from your CD-ROM first.
<BR>
<BR>
<A NAME="E68E449"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Using Wine</B></FONT></CENTER></H3>
<BR>
<P>Using Wine can be as simple as typing wine filename. Wine can be configured and used with a number of different options—including a debugger for tracking down internal errors in Wine itself.
<BR>
<BR>
<A NAME="E69E580"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Specifying Configuration Parameters</B></FONT></CENTER></H4>
<BR>
<P>Wine's global configuration file is typically /usr/local/etc/wine.conf. The configuration parameters match mostly with the above questions and are organized in the format of MS Windows .ini files. A sample file follows, with some comments on the usage
of each section.
<BR>
<P>The following statements map MS-DOS drive letters to the matching subdirectory under Linux:
<BR>
<PRE>
<FONT COLOR="#000080"> [drives]
A=/a
C=/c</FONT></PRE>
<P>These parameters tell Wine where to find Windows- and Wine-specific DLLs and directories:
<BR>
<PRE>
<FONT COLOR="#000080"> [wine]
Windows=c:\windows
System=c:\windows\system
Temp=c:\temp
Path=c:\windows;c:\windows\system
SystemResources=/users/wine/wine950122/sysres.dll</FONT></PRE>
<P>The following section applies to the mapping of MS Windows fonts to X font (note that the * is used for wildcard matching of X fonts):
<BR>
<PRE>
<FONT COLOR="#000080"> [fonts]
system=*-helvetica
mssansserif=*-helvetica
msserif=*-times
fixedsys=*-fixed
arial=*-helvetica
helv=*-helvetica
roman=*-times
default=*-*</FONT></PRE>
<P>The following section maps serial ports available under Wine with corresponding Linux serial port identifiers:
<BR>
<PRE>
<FONT COLOR="#000080"> [serialports]
Com1=/dev/cua0
Com2=/dev/cua1</FONT></PRE>
<P>The following section maps printer ports available under Wine with the corresponding printer port under Linux
<BR>
<PRE>
<FONT COLOR="#000080"> [parallelports]
Lpt1=/dev/lp0</FONT></PRE>
<P>These parameters determine the amount of logging and the destination:
<BR>
<PRE>
<FONT COLOR="#000080"> [spy]
File=CON
Exclude=WM_SIZE;WM_TIMER</FONT></PRE>
<BR>
<A NAME="E69E581"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Using Command-Line Options</B></FONT></CENTER></H4>
<BR>
<P>The Wine command line has the following format: wine wine_options program program_options. For example:
<BR>
<BR>
<PRE>
<FONT COLOR="#000080">bash# /usr/wine/wine -debugmsg +all /c/windows/winmine.exe</FONT></PRE>
<P>Table 58.1 shows command-line options available with Wine.
<BR>
<BR>
<P ALIGN=CENTER>
<CENTER>
<FONT COLOR="#000080"><B>Table 58.1. Wine command-line options.</B></FONT></CENTER>
<BR>
<TABLE BORDERCOLOR=#000040 BORDER=1 CELLSPACING=2 WIDTH="100%" CELLPADDING=2 >
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
<I>Option</I>
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
<I>Meaning</I></FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-depth n
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Change the depth to use for multiple-depth screens. This configures Wine to use other than the default number of colors. (8 bitplanes is 256 colors and usually the only acceptable answer.)</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-desktop geom
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Run an MS Windows application with a desktop of the size specified. For example, 850´620 would create a window of 850 by 620. Running with a desktop also eliminates the modal, or stuck-on-top, behavior of Wine applications.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-display name
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Use an X display other than the default. This enables users to run an MS Windows application on another X device over an attached network.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-iconic
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Start application as an icon rather than full-screen. This is same functionality as run minimized from the Program Manager under native MS Windows.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-debug
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Enter debugger before starting application</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-name name
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Set the application name. This is useful for telling the X Window manager a meaningful name for the application. The default name is wine.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-privatemap
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Use a private color map. This is useful for applications that make extensive use of color. Running an application this way causes the colors of other X applications to look weird while the Wine session is the selected window.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-synchronous
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Turn on synchronous display mode. This can severely slow down applications, as it causes X Window to wait for the completion of each command before sending the next one. X applications can send commands to an X server that may or may not be on the same
machine. Under some applications, synchronization is necessary so that graphics operations do not get optimized away by the X server.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-backingstore
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
This is an optimization that enables an X server to handle expose events without interrupting the client program.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-spy file
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Turn on message spying to the specified file. This can also be done by output redirection.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
-debugmsg name
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Turn specific debugging information on or off. To get a current list of debug message types, type the following command: wine -debugmsg help help.</FONT>
</TABLE><BR>
<A NAME="E69E582"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>The Wine Debugger</B></FONT></CENTER></H4>
<BR>
<P>Wine has a built-in debugger that is useful for uncovering problems within the program. When an MS Windows program exits due to a problem, the debugger starts in the xterm from which Wine was started. If you are not interested in troubleshooting Wine,
you need only type quit at the prompt and skip to the next section of this chapter.
<BR>
<P>The Wine debugger is similar to the GNU debugger gdb. Breakpoints can be set; examination and modification of registers as well as memory locations are possible. However, this is a minimal debugger that includes only the commands listed in Table 58.2.
<BR>
<BR>
<P ALIGN=CENTER>
<CENTER>
<FONT COLOR="#000080"><B>Table 58.2. Wine debugger commands.</B></FONT></CENTER>
<BR>
<TABLE BORDERCOLOR=#000040 BORDER=1 CELLSPACING=2 WIDTH="100%" CELLPADDING=2 >
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
<I>Command</I>
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
<I>Meaning</I>
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080><BR></FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
break
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Set a breakpoint at a specified address or symbolic value. Wine will stop before executing instructions at this address. For example, break * GDI_Ordinal_24 sets a breakpoint at the start of Windows Ellipse function known internally as GDI.24.
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080><BR></FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
bt
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Backtrace, or show the history of Wine calls leading to the current place. The addresses shown are the return addresses, not the calling addresses.
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080><BR></FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
cont
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Continue program execution until a breakpoint or error condition is reached.
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080><BR></FONT>
<TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -