glfs/wine/deps/tc/mingw-w64.xml
2024-10-18 12:52:48 -06:00

170 lines
4.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../../general.ent">
%general-entities;
<!ENTITY mingw-w64-download-http "https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v&mingw-w64-version;.tar.bz2">
<!ENTITY mingw-w64-download-ftp " ">
]>
<sect1 id="mingw-w64" xreflabel="MinGW-w64-&mingw-w64-version;">
<?dbhtml filename="mingw-w64.html"?>
<title>MinGW-w64-&mingw-w64-version;</title>
<indexterm zone="mingw-w64">
<primary sortas="a-mingw-w64">mingw-w64</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to MinGW-w64</title>
<para>
MinGW-w64's headers have been installed already, but not the rest of
the project, including useful libraries. This building process will
cover the rest of the MinGW-w64 project.
</para>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&mingw-w64-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&mingw-w64-download-ftp;"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">MinGW-w64 Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="mingw-w64-binutils"/>,
<xref linkend="mingw-w64-headers"/>, and
<xref linkend="mingw-w64-gcc-static"/>
</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../../xincludes/long-build-time.xml"/>
</sect2>
<sect2 role="installation">
<title>Installation of MinGW-w64</title>
<sect3>
<title>x86_64 MinGW-w64</title>
<para>
Install x86_64 <application>MinGW-w64</application>
by running the following commands:
</para>
<screen><userinput>mkdir build-x86_64 &amp;&amp;
cd build-x86_64
../configure --prefix=/usr/x86_64-w64-mingw32 \
--host=x86_64-w64-mingw32 \
--enable-experimental &amp;&amp;
make</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect3>
<sect3>
<title>i686 MinGW-w64</title>
<para>
Install i686 <application>MinGW-w64</application>
by running the following commands:
</para>
<screen><userinput>mkdir build-i686 &amp;&amp;
cd build-i686
../configure --prefix=/usr/i686-w64-mingw32 \
--host=i686-w64-mingw32 \
--enable-experimental &amp;&amp;
make</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect3>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<parameter>--prefix=/usr/*</parameter>: This option installs
the files to their respective architecture for better separation
of architectures.
</para>
<para>
<parameter>--host=*</parameter>: This option builds files for
the architecture passed to it.
</para>
<para>
<parameter>--with-libraries=winpthreads</parameter>: This option
builds the winpthreads library, which can enable posix threading.
Use it after you have built <xref linkend="mingw-w64-gcc"/> and
rebuild that package afterwards with <parameter>
--enable-threads=posix</parameter>.
</para>
<para>
<parameter>--enable-experimental</parameter>: This option enables
experimental features.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
Various static libraries and headers needed by Windows. To see the
whole list, visit <ulink
url="https://archlinux.org/packages/extra/any/mingw-w64-crt/"/>,
<ulink url="https://archlinux.org/packages/extra/any/mingw-w64-winpthreads/"/>, and
<xref linkend="mingw-w64-headers"/> and see
<emphasis>"Package Contents"</emphasis>.
</seg>
<seg>
None
</seg>
</seglistitem>
</segmentedlist>
</sect2>
</sect1>