Properly implement DllCanUnloadNow ref counting.
[wine/multimedia.git] / documentation / compiling.sgml
blob3832a3a65b19937626ee41cb724e22aa3559253a
1 <chapter id="compiling">
2 <title>Compiling the Wine Source</title>
4 <para>
5 In case you downloaded Wine source code files, this chapter will
6 tell you how to compile it into binary files before installing them.
7 Otherwise, please proceed directly to the <link
8 linkend="installing">Installation chapter</link> to install the
9 binary Wine files.
10 </para>
12 <sect1 id="compiling-wine">
13 <title>Compiling Wine</title>
15 <sect2>
16 <title>Commands</title>
17 <para>
18 To compile and install Wine, run the following commands:
19 <screen>
20 ./configure
21 make depend
22 make
23 make install
24 </screen>
25 Please note that the last command (<command>make install</command>)
26 must be run as root.
27 </para>
28 </sect2>
31 <sect2>
32 <title>Requirements</title>
33 <para>
34 For an up-to-date list of software requirements for compiling
35 Wine and instructions how to actually do it, please see the <ulink
36 url="http://www.winehq.org/source/README">README</ulink> file,
37 which is also available in the main directory of a Wine source
38 code tree.
39 </para>
40 </sect2>
42 <sect2>
43 <title>Space required</title>
44 <para>
45 You also need about 400 MB of available disk space for compilation.
46 The compiled libwine.so binary takes around 5 MB of disk space,
47 which can be reduced to about 1 MB by stripping ('strip wine').
48 Stripping is not recommended, however, as you can't submit
49 proper crash reports with a stripped binary.
50 </para>
51 </sect2>
53 <sect2>
54 <title>Common problems</title>
55 <para>
56 If you get a repeatable sig11 compiling shellord.c, thunk.c
57 or other files, try compiling just that file without optimization
58 (removing the -Ox option from the GCC command in the
59 corresponding Makefile).
60 </para>
61 </sect2>
62 </sect1>
63 </chapter>
65 <!-- Keep this comment at the end of the file
66 Local variables:
67 mode: sgml
68 sgml-parent-document:("wine-user.sgml" "set" "book" "part" "chapter" "")
69 End:
70 -->