2008-07-10 03:27:56 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
]>
|
2011-01-15 00:35:34 +00:00
|
|
|
<refentry id="gtk-building">
|
2001-09-08 19:33:06 +00:00
|
|
|
<refmeta>
|
2002-03-06 23:36:37 +00:00
|
|
|
<refentrytitle>Compiling the GTK+ libraries</refentrytitle>
|
2001-09-08 19:33:06 +00:00
|
|
|
<manvolnum>3</manvolnum>
|
|
|
|
<refmiscinfo>GTK Library</refmiscinfo>
|
|
|
|
</refmeta>
|
2000-02-22 00:29:00 +00:00
|
|
|
|
2001-09-08 19:33:06 +00:00
|
|
|
<refnamediv>
|
2002-03-06 23:36:37 +00:00
|
|
|
<refname>Compiling the GTK+ Libraries</refname>
|
2001-09-08 19:33:06 +00:00
|
|
|
<refpurpose>
|
|
|
|
How to compile GTK+ itself
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
2002-03-06 23:36:37 +00:00
|
|
|
<refsect1 id="overview">
|
2017-08-14 11:32:33 +00:00
|
|
|
<title>Building GTK+</title>
|
2002-03-06 23:36:37 +00:00
|
|
|
<para>
|
|
|
|
Before we get into the details of how to compile GTK+, we should
|
|
|
|
mention that in many cases, binary packages of GTK+ prebuilt for
|
|
|
|
your operating system will be available, either from your
|
|
|
|
operating system vendor or from independent sources. If such a
|
|
|
|
set of packages is available, installing it will get you
|
2011-01-06 06:11:49 +00:00
|
|
|
programming with GTK+ much faster than building it yourself. In
|
2002-03-06 23:36:37 +00:00
|
|
|
fact, you may well already have GTK+ installed on your system
|
|
|
|
already.
|
|
|
|
</para>
|
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
In order to build GTK+, you will need <application>meson</application>
|
|
|
|
installed on your system. On Linux, and other UNIX-like operating
|
|
|
|
systems, you will also need <application>ninja</application>. This
|
|
|
|
guide does not cover how to install these two requirements, but you
|
|
|
|
can refer to the <ulink url="http://mesonbuild.com">Meson website</ulink>
|
|
|
|
for more information. The <ulink url="https://ninja-build.org">Ninja</ulink>
|
|
|
|
build tool is also usable on various operating systems, so we will
|
|
|
|
refer to it in the examples.
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
If you are building GTK+ from a source distribution or from a Git
|
|
|
|
clone, you will need to use <application>meson</application> to
|
|
|
|
configure the project. The most commonly useful argument is the
|
|
|
|
<systemitem>--prefix</systemitem> one, which determines where the
|
|
|
|
files will go once installed. To install GTK+ under a prefix
|
|
|
|
like <filename>/opt/gtk</filename> you would run Meson as:
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
2017-08-14 11:32:33 +00:00
|
|
|
<informalexample>
|
|
|
|
<programlisting>
|
|
|
|
meson --prefix /opt/gtk builddir
|
|
|
|
</programlisting>
|
|
|
|
</informalexample>
|
2002-03-06 23:36:37 +00:00
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
Meson will create the <filename>builddir</filename> directory and
|
|
|
|
place all the build artefacts there.
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
You can get a list of all available options for the build by
|
2017-08-15 13:08:57 +00:00
|
|
|
running <application>meson configure</application>.
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
2017-08-14 11:32:33 +00:00
|
|
|
<para>
|
|
|
|
After Meson successfully configured the build directory, you then
|
|
|
|
can run the build, using Ninja:
|
|
|
|
</para>
|
|
|
|
<informalexample>
|
|
|
|
<programlisting>
|
|
|
|
cd builddir
|
|
|
|
ninja
|
|
|
|
ninja install
|
|
|
|
</programlisting>
|
|
|
|
</informalexample>
|
2002-03-06 23:36:37 +00:00
|
|
|
<para>
|
|
|
|
If you don't have permission to write to the directory you are
|
|
|
|
installing in, you may have to change to root temporarily before
|
2017-08-14 11:32:33 +00:00
|
|
|
running <literal>ninja install</literal>.
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Several environment variables are useful to pass to set before
|
|
|
|
running configure. <envar>CPPFLAGS</envar> contains options to
|
|
|
|
pass to the C compiler, and is used to tell the compiler where
|
|
|
|
to look for include files. The <envar>LDFLAGS</envar> variable
|
|
|
|
is used in a similar fashion for the linker. Finally the
|
|
|
|
<envar>PKG_CONFIG_PATH</envar> environment variable contains
|
|
|
|
a search path that <command>pkg-config</command> (see below)
|
2014-08-24 00:26:36 +00:00
|
|
|
uses when looking for files describing how to compile
|
2002-03-06 23:36:37 +00:00
|
|
|
programs using different libraries. If you were installing GTK+
|
2010-06-03 05:09:53 +00:00
|
|
|
and it's dependencies into <filename>/opt/gtk</filename>, you
|
2005-01-16 04:12:43 +00:00
|
|
|
might want to set these variables as:
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
|
|
|
<programlisting>
|
2002-03-08 20:16:30 +00:00
|
|
|
CPPFLAGS="-I/opt/gtk/include"
|
2002-03-06 23:36:37 +00:00
|
|
|
LDFLAGS="-L/opt/gtk/lib"
|
|
|
|
PKG_CONFIG_PATH="/opt/gtk/lib/pkgconfig"
|
|
|
|
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH
|
|
|
|
</programlisting>
|
|
|
|
<para>
|
|
|
|
You may also need to set the <envar>LD_LIBRARY_PATH</envar>
|
|
|
|
environment variable so the systems dynamic linker can find
|
|
|
|
the newly installed libraries, and the <envar>PATH</envar>
|
|
|
|
environment program so that utility binaries installed by
|
|
|
|
the various libraries will be found.
|
|
|
|
</para>
|
|
|
|
<programlisting>
|
|
|
|
LD_LIBRARY_PATH="/opt/gtk/lib"
|
|
|
|
PATH="/opt/gtk/bin:$PATH"
|
|
|
|
export LD_LIBRARY_PATH PATH
|
|
|
|
</programlisting>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 id="dependencies">
|
|
|
|
<title>Dependencies</title>
|
|
|
|
<para>
|
|
|
|
Before you can compile the GTK+ widget toolkit, you need to have
|
|
|
|
various other tools and libraries installed on your
|
2017-08-14 11:32:33 +00:00
|
|
|
system. Dependencies of GTK+ have their own build systems, so
|
|
|
|
you will need to refer to their own installation instructions.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
A particular important tool used by GTK+ to find its dependencies
|
|
|
|
is <application>pkg-config</application>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<ulink url="https://www.freedesktop.org/wiki/Software/pkg-config/">pkg-config</ulink>
|
|
|
|
is a tool for tracking the compilation flags needed for
|
|
|
|
libraries that are used by the GTK+ libraries. (For each
|
|
|
|
library, a small <literal>.pc</literal> text file is installed
|
|
|
|
in a standard location that contains the compilation flags
|
|
|
|
needed for that library along with version number information.)
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2010-06-26 05:06:30 +00:00
|
|
|
Some of the libraries that GTK+ depends on are maintained by
|
2011-06-06 11:34:46 +00:00
|
|
|
by the GTK+ team: GLib, GdkPixbuf, Pango, ATK and GObject Introspection.
|
|
|
|
Other libraries are maintained separately.
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
|
|
|
The GLib library provides core non-graphical functionality
|
|
|
|
such as high level data types, Unicode manipulation, and
|
|
|
|
an object and type system to C programs. It is available
|
2017-08-14 11:32:33 +00:00
|
|
|
from <ulink url="https://download.gnome.org/sources/glib/">here</ulink>.
|
2010-06-03 05:09:53 +00:00
|
|
|
</para>
|
2002-03-06 23:36:37 +00:00
|
|
|
</listitem>
|
2011-06-06 11:34:46 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2017-04-03 17:06:51 +00:00
|
|
|
The <ulink url="https://git.gnome.org/browse/gdk-pixbuf/">GdkPixbuf library</ulink>
|
2011-06-06 11:34:46 +00:00
|
|
|
provides facilities for loading images in a variety of file formats.
|
2017-08-14 11:32:33 +00:00
|
|
|
It is available <ulink url="https://download.gnome.org/sources/gdk-pixbuf/">here</ulink>.
|
2011-06-06 11:34:46 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2002-03-06 23:36:37 +00:00
|
|
|
<listitem>
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
|
|
|
<ulink url="http://www.pango.org">Pango</ulink> is a library
|
2011-06-06 12:49:43 +00:00
|
|
|
for internationalized text handling. It is available
|
2017-04-03 17:06:51 +00:00
|
|
|
<ulink url="https://download.gnome.org/sources/pango/">here</ulink>.
|
2010-06-03 05:09:53 +00:00
|
|
|
</para>
|
2002-03-06 23:36:37 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
|
|
|
ATK is the Accessibility Toolkit. It provides a set of generic
|
|
|
|
interfaces allowing accessibility technologies such as
|
|
|
|
screen readers to interact with a graphical user interface.
|
2011-06-06 12:49:43 +00:00
|
|
|
It is available
|
2017-04-03 17:06:51 +00:00
|
|
|
<ulink url="https://download.gnome.org/sources/atk/">here</ulink>.
|
2010-06-03 05:09:53 +00:00
|
|
|
</para>
|
2002-03-06 23:36:37 +00:00
|
|
|
</listitem>
|
2011-06-06 11:34:46 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2014-04-08 15:42:36 +00:00
|
|
|
<ulink url="https://wiki.gnome.org/Projects/GObjectIntrospection">Gobject Introspection</ulink>
|
2011-06-06 11:34:46 +00:00
|
|
|
is a framework for making introspection data available to
|
2011-06-06 12:49:43 +00:00
|
|
|
language bindings. It is available
|
2017-04-03 17:06:51 +00:00
|
|
|
<ulink url="https://download.gnome.org/sources/gobject-introspection/">here</ulink>.
|
2011-06-06 11:34:46 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2011-06-06 11:39:13 +00:00
|
|
|
</itemizedlist>
|
|
|
|
<itemizedlist>
|
|
|
|
<title>External dependencies</title>
|
2002-03-06 23:36:37 +00:00
|
|
|
<listitem>
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
2017-04-03 17:06:51 +00:00
|
|
|
The <ulink url="https://www.gnu.org/software/libiconv/">GNU
|
2010-06-03 05:09:53 +00:00
|
|
|
libiconv library</ulink> is needed to build GLib if your
|
|
|
|
system doesn't have the <function>iconv()</function>
|
|
|
|
function for doing conversion between character
|
|
|
|
encodings. Most modern systems should have
|
|
|
|
<function>iconv()</function>.
|
|
|
|
</para>
|
2002-03-06 23:36:37 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
|
|
|
The libintl library from the <ulink
|
2017-04-03 17:06:51 +00:00
|
|
|
url="https://www.gnu.org/software/gettext/">GNU gettext
|
2010-06-03 05:09:53 +00:00
|
|
|
package</ulink> is needed if your system doesn't have the
|
|
|
|
<function>gettext()</function> functionality for handling
|
|
|
|
message translation databases.
|
|
|
|
</para>
|
2002-03-06 23:36:37 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
|
|
|
The libraries from the X window system are needed to build
|
|
|
|
Pango and GTK+. You should already have these installed on
|
|
|
|
your system, but it's possible that you'll need to install
|
|
|
|
the development environment for these libraries that your
|
|
|
|
operating system vendor provides.
|
|
|
|
</para>
|
2002-12-20 18:26:12 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
2017-04-03 17:06:51 +00:00
|
|
|
The <ulink url="https://www.freedesktop.org/wiki/Software/fontconfig/">fontconfig</ulink>
|
2010-06-03 05:09:53 +00:00
|
|
|
library provides Pango with a standard way of locating
|
|
|
|
fonts and matching them against font names.
|
|
|
|
</para>
|
2002-03-06 23:36:37 +00:00
|
|
|
</listitem>
|
2005-07-06 03:59:37 +00:00
|
|
|
<listitem>
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
2017-04-03 17:06:51 +00:00
|
|
|
<ulink url="https://www.cairographics.org">Cairo</ulink>
|
2010-03-23 15:08:28 +00:00
|
|
|
is a graphics library that supports vector graphics and image
|
2017-08-14 11:32:33 +00:00
|
|
|
compositing. Both Pango and GTK+ use Cairo for drawing.
|
2005-07-06 03:59:37 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2014-10-18 16:28:42 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<ulink url="https://github.com/anholt/libepoxy">libepoxy</ulink>
|
|
|
|
is a library that abstracts the differences between different
|
2017-08-14 11:32:33 +00:00
|
|
|
OpenGL libraries. GTK+ uses it for cross-platform GL support
|
|
|
|
and for its own drawing.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<ulink url="https://github.com/anholt/libepoxy">Graphene</ulink>
|
|
|
|
is a library that provides vector and matrix types for 2D and
|
|
|
|
3D transformations. GTK+ uses it internally for drawing.
|
2014-10-18 16:28:42 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2017-04-03 17:06:51 +00:00
|
|
|
The <ulink url="https://wayland.freedesktop.org">Wayland</ulink> libraries
|
2014-10-18 16:28:42 +00:00
|
|
|
are needed to build GTK+ with the Wayland backend.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2008-08-15 18:01:38 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2017-04-03 17:06:51 +00:00
|
|
|
The <ulink url="https://www.freedesktop.org/wiki/Software/shared-mime-info">shared-mime-info</ulink>
|
2010-06-03 05:09:53 +00:00
|
|
|
package is not a hard dependency of GTK+, but it contains definitions
|
|
|
|
for mime types that are used by GIO and, indirectly, by GTK+.
|
|
|
|
gdk-pixbuf will use GIO for mime type detection if possible. For this
|
|
|
|
to work, shared-mime-info needs to be installed and
|
|
|
|
<envar>XDG_DATA_DIRS</envar> set accordingly at configure time.
|
2008-08-15 18:01:38 +00:00
|
|
|
Otherwise, gdk-pixbuf falls back to its built-in mime type detection.
|
|
|
|
</para>
|
2014-10-18 17:19:21 +00:00
|
|
|
</listitem>
|
2002-03-06 23:36:37 +00:00
|
|
|
</itemizedlist>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 id="building">
|
|
|
|
<title>Building and testing GTK+</title>
|
|
|
|
<para>
|
|
|
|
First make sure that you have the necessary external
|
2017-08-14 11:32:33 +00:00
|
|
|
dependencies installed: <command>pkg-config</command>, Meson, Ninja,
|
2002-03-06 23:36:37 +00:00
|
|
|
the JPEG, PNG, and TIFF libraries, FreeType, and, if necessary,
|
2010-06-03 05:09:53 +00:00
|
|
|
libiconv and libintl. To get detailed information about building
|
2002-03-07 20:39:57 +00:00
|
|
|
these packages, see the documentation provided with the
|
2017-08-14 11:32:33 +00:00
|
|
|
individual packages. On any average Linux system, it's quite likely
|
|
|
|
you'll have all of these installed already, or they will be easily
|
|
|
|
accessible through your operating system package repositories.
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Then build and install the GTK+ libraries in the order:
|
2017-08-14 11:32:33 +00:00
|
|
|
GLib, Cairo, Pango, ATK, then GTK+. For each library, follow the
|
|
|
|
instructions they provide, and make sure to share common settings
|
|
|
|
between them and the GTK+ build; if you are using a separate prefix
|
|
|
|
for GTK+, for instance, you will need to use the same prefix for all
|
|
|
|
its dependencies you build. If you're lucky, this will all go smoothly,
|
|
|
|
and you'll be ready to <link linkend="gtk-compiling">start compiling
|
|
|
|
your own GTK+ applications</link>. You can test your GTK+ installation
|
|
|
|
by running the <command>gtk4-demo</command> program that
|
2002-12-20 18:26:12 +00:00
|
|
|
GTK+ installs.
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
If one of the projects you're configuring or building fails, look
|
|
|
|
closely at the error messages printed; these will often provide useful
|
|
|
|
information as to what went wrong. Every build system has its own
|
|
|
|
log that can help you understand the issue you're encountering. If all
|
|
|
|
else fails, you can ask for help on the gtk-list mailing list.
|
2002-05-28 22:23:55 +00:00
|
|
|
See <xref linkend="gtk-resources"/> for more information.
|
2002-03-06 23:36:37 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 id="extra-configuration-options">
|
2000-02-22 00:29:00 +00:00
|
|
|
<title>Extra Configuration Options</title>
|
|
|
|
|
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
In addition to the normal options provided by Meson, GTK+ defines
|
|
|
|
various arguments that modify what should be built.
|
2010-06-03 05:09:53 +00:00
|
|
|
|
|
|
|
<cmdsynopsis>
|
2017-08-14 11:32:33 +00:00
|
|
|
<command>meson</command>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2004-09-15 02:14:20 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Ddisable-modules=true</arg>
|
|
|
|
<arg choice="plain">-Ddisable-modules=false</arg>
|
2010-06-03 05:09:53 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2002-01-11 22:39:03 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Dwith-included-immodules=MODULE1,MODULE2,...</arg>
|
|
|
|
<arg choice="plain">-Dwith-included-immodules=all</arg>
|
|
|
|
<arg choice="plain">-Dwith-included-immodules=none</arg>
|
2010-06-03 05:09:53 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2002-01-11 22:39:03 +00:00
|
|
|
<group>
|
2017-09-06 13:43:24 +00:00
|
|
|
<arg choice="plain">-Ddocumentation=true</arg>
|
|
|
|
<arg choice="plain">-Ddocumentation=false</arg>
|
2010-06-03 05:09:53 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2010-06-03 05:09:53 +00:00
|
|
|
<group>
|
2017-09-06 13:43:24 +00:00
|
|
|
<arg choice="plain">-Dman-pages=true</arg>
|
|
|
|
<arg choice="plain">-Dman-pages=false</arg>
|
2010-06-03 05:09:53 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2010-06-03 05:09:53 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-cups-print-backend=yes</arg>
|
|
|
|
<arg choice="plain">-Denable-cups-print-backend=no</arg>
|
|
|
|
<arg choice="plain">-Denable-cups-print-backend=auto</arg>
|
2010-06-03 05:09:53 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2010-06-03 05:09:53 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-papi-print-backend=yes</arg>
|
|
|
|
<arg choice="plain">-Denable-papi-print-backend=no</arg>
|
|
|
|
<arg choice="plain">-Denable-papi-print-backend=auto</arg>
|
2010-06-03 05:09:53 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2010-06-03 05:09:53 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-cloudprint-print-backend=yes</arg>
|
|
|
|
<arg choice="plain">-Denable-cloudprint-print-backend=no</arg>
|
|
|
|
<arg choice="plain">-Denable-cloudprint-print-backend=auto</arg>
|
2010-06-03 05:09:53 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2010-06-03 05:09:53 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-test-print-backend=yes</arg>
|
|
|
|
<arg choice="plain">-Denable-test-print-backend=no</arg>
|
|
|
|
<arg choice="plain">-Denable-test-print-backend=auto</arg>
|
2010-06-03 05:09:53 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2002-01-11 22:39:03 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-colord=yes</arg>
|
|
|
|
<arg choice="plain">-Denable-colord=no</arg>
|
|
|
|
<arg choice="plain">-Denable-colord=auto</arg>
|
2002-01-11 22:39:03 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2010-03-23 15:08:28 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-vulkan=yes</arg>
|
|
|
|
<arg choice="plain">-Denable-vulkan=no</arg>
|
|
|
|
<arg choice="plain">-Denable-vulkan=auto</arg>
|
2011-01-06 06:11:49 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2011-01-06 06:11:49 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-x11-backend=true</arg>
|
|
|
|
<arg choice="plain">-Denable-x11-backend=false</arg>
|
2013-01-24 11:23:04 +00:00
|
|
|
</group>
|
|
|
|
<sbr/>
|
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-xinerama=true</arg>
|
|
|
|
<arg choice="plain">-Denable-xinerama=false</arg>
|
2013-01-24 11:23:04 +00:00
|
|
|
</group>
|
|
|
|
<sbr/>
|
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-win32-backend=true</arg>
|
|
|
|
<arg choice="plain">-Denable-win32-backend=false</arg>
|
2013-01-24 11:23:04 +00:00
|
|
|
</group>
|
|
|
|
<sbr/>
|
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-quartz-backend=true</arg>
|
|
|
|
<arg choice="plain">-Denable-quartz-backend=false</arg>
|
2013-01-24 11:23:04 +00:00
|
|
|
</group>
|
|
|
|
<sbr/>
|
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-broadway-backend=true</arg>
|
|
|
|
<arg choice="plain">-Denable-broadway-backend=false</arg>
|
2011-01-03 16:27:19 +00:00
|
|
|
</group>
|
2011-02-09 05:21:37 +00:00
|
|
|
<sbr/>
|
2014-05-19 22:03:30 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-wayland-backend=true</arg>
|
|
|
|
<arg choice="plain">-Denable-wayland-backend=false</arg>
|
2014-05-19 22:03:30 +00:00
|
|
|
</group>
|
|
|
|
<sbr/>
|
2011-01-03 16:27:19 +00:00
|
|
|
<group>
|
2017-08-14 11:32:33 +00:00
|
|
|
<arg choice="plain">-Denable-mir-backend=true</arg>
|
|
|
|
<arg choice="plain">-Denable-mir-backend=false</arg>
|
2013-05-27 18:41:35 +00:00
|
|
|
</group>
|
2017-09-06 13:27:59 +00:00
|
|
|
<group>
|
|
|
|
<arg choice="plain">-Dintrospection=true</arg>
|
|
|
|
<arg choice="plain">-Dintrospection=false</arg>
|
|
|
|
</group>
|
2010-06-03 05:09:53 +00:00
|
|
|
</cmdsynopsis>
|
2000-02-22 00:29:00 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<formalpara>
|
2017-08-14 11:32:33 +00:00
|
|
|
<title><systemitem>disable-modules</systemitem></title>
|
2010-06-03 05:09:53 +00:00
|
|
|
|
|
|
|
<para>
|
2010-06-26 05:06:30 +00:00
|
|
|
Normally GTK+ will try to build the input method modules
|
2011-01-06 06:11:49 +00:00
|
|
|
as little shared libraries that are loaded on demand.
|
2017-08-14 11:32:33 +00:00
|
|
|
The <systemitem>disable-modules</systemitem> option
|
2011-01-06 06:11:49 +00:00
|
|
|
indicates that they should all be built statically
|
|
|
|
into the GTK+ library instead. This is useful for
|
|
|
|
people who need to produce statically-linked binaries.
|
2017-08-14 11:32:33 +00:00
|
|
|
If <systemitem>disable-modules</systemitem> is not specified,
|
2011-01-06 06:11:49 +00:00
|
|
|
then the <command>configure</command> script will try to
|
2010-06-03 05:09:53 +00:00
|
|
|
auto-detect whether shared modules work on your system.
|
|
|
|
</para>
|
2000-02-22 00:29:00 +00:00
|
|
|
</formalpara>
|
|
|
|
|
2001-09-08 19:33:06 +00:00
|
|
|
<formalpara>
|
2017-08-14 11:32:33 +00:00
|
|
|
<title><systemitem>with-included-immodules</systemitem></title>
|
2008-05-30 02:30:19 +00:00
|
|
|
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
2008-05-30 02:30:19 +00:00
|
|
|
This option allows you to specify which input method modules you
|
2011-01-06 06:11:49 +00:00
|
|
|
want to include directly into the GTK+ shared library, as opposed
|
|
|
|
to building them as loadable modules.
|
2010-06-03 05:09:53 +00:00
|
|
|
</para>
|
2008-05-30 02:30:19 +00:00
|
|
|
</formalpara>
|
|
|
|
|
2002-01-11 22:39:03 +00:00
|
|
|
<formalpara>
|
2017-08-14 11:32:33 +00:00
|
|
|
<title><systemitem>enable-xinerama</systemitem></title>
|
2004-09-15 02:14:20 +00:00
|
|
|
|
2011-01-06 06:11:49 +00:00
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
By default GTK+ will try to link against the Xinerama libraries
|
|
|
|
if they are found. This options can be used to explicitly control
|
|
|
|
whether Xinerama should be used.
|
2011-01-06 06:11:49 +00:00
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
|
2000-02-22 00:29:00 +00:00
|
|
|
<formalpara>
|
2017-08-14 11:32:33 +00:00
|
|
|
<title><systemitem>enable-documentation</systemitem> and
|
|
|
|
<systemitem>enable-man-pages</systemitem></title>
|
2010-06-03 05:09:53 +00:00
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>gtk-doc</application> package is
|
|
|
|
used to generate the reference documentation included
|
|
|
|
with GTK+. By default support for <application>gtk-doc</application>
|
|
|
|
is disabled because it requires various extra dependencies
|
|
|
|
to be installed. If you have
|
|
|
|
<application>gtk-doc</application> installed and
|
|
|
|
are modifying GTK+, you may want to enable
|
|
|
|
<application>gtk-doc</application> support by passing
|
2017-08-14 11:32:33 +00:00
|
|
|
in <systemitem>enable-documentation</systemitem>.
|
2010-06-03 05:09:53 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
Additionally, some tools provided by GTK+ have their own
|
|
|
|
manual pages generated using a similar set of dependencies;
|
|
|
|
if you have <application>xsltproc</application> then you
|
|
|
|
can generate manual pages by passing <systemitem>enable-man-pages</systemitem>
|
|
|
|
when configuring the build.
|
2010-06-03 05:09:53 +00:00
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
|
2011-01-03 16:27:19 +00:00
|
|
|
<formalpara>
|
2017-08-14 11:32:33 +00:00
|
|
|
<title><systemitem>enable-cups-print-backend</systemitem>,
|
|
|
|
<systemitem>enable-papi-print-backend</systemitem>,
|
|
|
|
<systemitem>enable-cloudprint-print-backend</systemitem>, and
|
|
|
|
<systemitem>enable-test-print-backend</systemitem></title>
|
2001-09-08 19:33:06 +00:00
|
|
|
|
2010-06-03 05:09:53 +00:00
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
By default, GTK+ will try to build various print backends if
|
|
|
|
their dependencies are found. These options can be used to
|
|
|
|
explicitly control whether each print backend should be built
|
|
|
|
or not.
|
2010-06-03 05:09:53 +00:00
|
|
|
</para>
|
2001-09-08 19:33:06 +00:00
|
|
|
</formalpara>
|
2011-01-15 01:01:05 +00:00
|
|
|
|
2010-03-23 15:08:28 +00:00
|
|
|
<formalpara>
|
2017-09-06 12:33:18 +00:00
|
|
|
<title><systemitem>enable-x11-backend</systemitem>,
|
|
|
|
<systemitem>enable-win32-backend</systemitem>,
|
|
|
|
<systemitem>enable-quartz-backend</systemitem>,
|
|
|
|
<systemitem>enable-broadway-backend</systemitem>,
|
|
|
|
<systemitem>enable-wayland-backend</systemitem>, and
|
|
|
|
<systemitem>enable-mir-backend</systemitem></title>
|
2001-09-08 19:33:06 +00:00
|
|
|
|
2010-03-23 15:08:28 +00:00
|
|
|
<para>
|
2017-08-14 11:32:33 +00:00
|
|
|
Enable specific backends for GDK. If none of these options
|
|
|
|
are given, the Wayland backend will be enabled by default,
|
|
|
|
if the platform is Linux; the X11 backend will also be enabled
|
|
|
|
by default, unless the platform is Windows, in which case the
|
|
|
|
default is win32, or the platform is macOS, in which case the
|
|
|
|
default is quartz. If any backend is explicitly enabled or disabled,
|
|
|
|
no other platform will be enabled automatically.
|
2010-03-23 15:08:28 +00:00
|
|
|
</para>
|
|
|
|
</formalpara>
|
2011-01-15 01:01:05 +00:00
|
|
|
|
2017-09-06 13:27:59 +00:00
|
|
|
<formalpara>
|
|
|
|
<title><systemitem>introspection</systemitem></title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Allows to disable building introspection support. This is option
|
|
|
|
is mainly useful for shortening turnaround times on developer
|
|
|
|
systems. Installed builds of GTK+ should always have introspection
|
|
|
|
support.
|
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
|
2017-09-06 12:33:18 +00:00
|
|
|
<formalpara>
|
|
|
|
<title><systemitem>build-tests</systemitem>
|
|
|
|
<systemitem>demos</systemitem></title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
By default, GTK+ will build quite a few tests and demos.
|
|
|
|
While these are useful on a developer system, they are not
|
|
|
|
needed when GTK+ is built e.g. for a flatpak runtime. These
|
|
|
|
options allow to disable building tests and demos.
|
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
|
2001-09-08 19:33:06 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
</refentry>
|
2002-03-06 23:36:37 +00:00
|
|
|
|
|
|
|
<!-- Local Variables: -->
|
|
|
|
<!-- sgml-parent-document: ("gtk-docs.sgml" "chapter" "refentry") -->
|
|
|
|
<!-- End: -->
|