2012-02-08 01:11:39 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!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;
|
|
|
|
|
2015-10-16 22:43:35 +08:00
|
|
|
<!-- Editors, update this for new releass as needed -->
|
|
|
|
<!ENTITY cogl-minor "1.22">
|
|
|
|
|
|
|
|
<!ENTITY cogl-download-http "&gnome-download-http;/cogl/&cogl-minor;/cogl-&cogl-version;.tar.xz">
|
|
|
|
<!ENTITY cogl-download-ftp "&gnome-download-ftp;/cogl/&cogl-minor;/cogl-&cogl-version;.tar.xz">
|
2019-04-27 06:47:30 +08:00
|
|
|
<!ENTITY cogl-md5sum "31755015a865c4af51ac84f6e53af8ab">
|
2013-07-15 05:00:25 +08:00
|
|
|
<!ENTITY cogl-size "1.6 MB">
|
2019-04-27 06:47:30 +08:00
|
|
|
<!ENTITY cogl-buildsize "55 MB">
|
|
|
|
<!ENTITY cogl-time "0.3 SBU (Using parallelism=4; add 0.5 SBU for tests)">
|
2012-02-08 01:11:39 +08:00
|
|
|
]>
|
|
|
|
|
2012-04-17 01:09:21 +08:00
|
|
|
<sect1 id="cogl" xreflabel="Cogl-&cogl-version;">
|
2012-02-08 01:11:39 +08:00
|
|
|
<?dbhtml filename="cogl.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2012-04-17 01:06:53 +08:00
|
|
|
<title>Cogl-&cogl-version;</title>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
|
|
|
<indexterm zone="cogl">
|
2012-09-27 03:37:13 +08:00
|
|
|
<primary sortas="a-Cogl">Cogl</primary>
|
2012-02-08 01:11:39 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
2012-04-17 01:06:53 +08:00
|
|
|
<title>Introduction to Cogl</title>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
<application>Cogl</application> is a modern 3D graphics API with associated
|
|
|
|
utility APIs designed to expose the features of 3D graphics hardware using
|
|
|
|
a direct state access API design, as opposed to the state-machine style
|
|
|
|
of OpenGL.
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
2019-02-18 05:55:58 +08:00
|
|
|
&lfs84_checked;
|
2012-02-08 01:11:39 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&cogl-download-http;"/>
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&cogl-download-ftp;"/>
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &cogl-md5sum;
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
Download size: &cogl-size;
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &cogl-buildsize;
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &cogl-time;
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2012-04-17 01:06:53 +08:00
|
|
|
<bridgehead renderas="sect3">Cogl Dependencies</bridgehead>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2012-04-17 01:06:53 +08:00
|
|
|
<para role="required">
|
2016-06-12 12:33:51 +08:00
|
|
|
<xref linkend="cairo"/>,
|
2012-04-17 01:06:53 +08:00
|
|
|
<xref linkend="gdk-pixbuf"/>,
|
2016-08-29 05:19:58 +08:00
|
|
|
<xref linkend="glu"/>,
|
2017-08-31 11:05:52 +08:00
|
|
|
<xref linkend="mesa"/>,<phrase revision="sysv"> and</phrase>
|
|
|
|
<xref linkend="pango"/><phrase revision="systemd">, and
|
|
|
|
<xref linkend="wayland"/></phrase>
|
2012-04-17 01:06:53 +08:00
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2012-04-17 01:06:53 +08:00
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="gobject-introspection"/>
|
|
|
|
</para>
|
2012-03-31 02:19:40 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-04-17 01:06:53 +08:00
|
|
|
<para role="optional">
|
2014-01-22 07:48:34 +08:00
|
|
|
<xref linkend="gst10-plugins-base"/>,
|
2013-07-15 05:00:25 +08:00
|
|
|
<xref linkend="gtk-doc"/>,
|
2017-08-31 11:05:52 +08:00
|
|
|
<xref linkend="sdl"/>,<phrase revision="systemd"> and</phrase>
|
|
|
|
<xref linkend="sdl2"/><phrase revision="sysv">, and
|
|
|
|
<xref linkend="wayland"/></phrase>
|
2012-04-17 01:06:53 +08:00
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2012-07-25 00:17:44 +08:00
|
|
|
<ulink url="&blfs-wiki;/cogl"/>
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
2012-04-17 01:06:53 +08:00
|
|
|
<title>Installation of Cogl</title>
|
2015-06-09 04:08:38 +08:00
|
|
|
<!--
|
2015-06-08 22:38:51 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
This package may occasionally fail when building with multiple
|
|
|
|
processors. See <xref linkend="parallel-builds"/> for more
|
|
|
|
information.
|
|
|
|
</para>
|
|
|
|
</note>
|
2015-06-09 04:08:38 +08:00
|
|
|
-->
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Cogl</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
2015-06-09 04:08:38 +08:00
|
|
|
¶llel_issues;
|
|
|
|
|
2017-08-31 11:05:52 +08:00
|
|
|
<screen revision="sysv"><userinput>sed -i 's/^#if COGL/#ifdef COGL/' cogl/winsys/cogl-winsys-egl.c &&
|
2017-02-18 08:10:58 +08:00
|
|
|
|
|
|
|
./configure --prefix=/usr --enable-gles1 --enable-gles2 &&
|
2012-02-08 01:11:39 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2017-08-31 11:05:52 +08:00
|
|
|
<screen revision="systemd"><userinput>sed -i 's/^#if COGL/#ifdef COGL/' cogl/winsys/cogl-winsys-egl.c &&
|
|
|
|
|
|
|
|
./configure --prefix=/usr --enable-gles1 --enable-gles2 \
|
|
|
|
--enable-{kms,wayland,xlib}-egl-platform \
|
|
|
|
--enable-wayland-egl-server &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
2013-07-15 05:00:25 +08:00
|
|
|
To test the results, issue: <command>make check</command>. The
|
2013-12-14 03:27:48 +08:00
|
|
|
tests should be run from an X terminal on the hardware accelerated
|
2019-01-02 01:34:20 +08:00
|
|
|
Xorg Server. A few tests will use all CPUs in parallel, regardless of
|
|
|
|
parallellism settings.
|
2012-07-25 00:17:44 +08:00
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2012-03-31 02:19:40 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2013-07-15 05:00:25 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--enable-gles1</parameter>: This switch enables support
|
|
|
|
for OpenGL ES 1.1.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>--enable-gles2</parameter>: This switch enables support
|
|
|
|
for OpenGL ES 2.0.
|
|
|
|
</para>
|
|
|
|
|
2014-01-22 07:48:34 +08:00
|
|
|
<para>
|
2017-08-31 11:05:52 +08:00
|
|
|
<phrase revision="sysv">
|
|
|
|
<option>--enable-{kms,wayland,xlib}-egl-platform</option>:</phrase>
|
|
|
|
<phrase revision="systemd">
|
|
|
|
<parameter>--enable-{kms,wayland,xlib}-egl-platform</parameter>:</phrase>
|
|
|
|
These switches enable support for KMS, Wayland and Xlib EGL platforms.
|
|
|
|
They are required for <application>GNOME</application> Wayland support.
|
2014-01-22 07:48:34 +08:00
|
|
|
</para>
|
|
|
|
|
2016-06-12 12:33:51 +08:00
|
|
|
<para>
|
2017-08-31 11:05:52 +08:00
|
|
|
<phrase revision="sysv">
|
|
|
|
<option>--enable-wayland-egl-server</option>:</phrase>
|
|
|
|
<phrase revision="systemd">
|
|
|
|
<parameter>--enable-wayland-egl-server</parameter>:</phrase> This switch
|
|
|
|
enables <application>Cogl</application>'s Wayland Server API which is
|
|
|
|
required for <application>GNOME</application> Wayland support.
|
2016-06-12 12:33:51 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2017-08-31 11:05:52 +08:00
|
|
|
<option>--enable-cogl-gst</option>: This switch enables gstreamer support.
|
2016-06-12 12:33:51 +08:00
|
|
|
</para>
|
|
|
|
|
2012-03-31 02:19:40 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2012-07-25 00:17:44 +08:00
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
2012-03-31 02:19:40 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2012-02-08 01:11:39 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2013-07-15 05:00:25 +08:00
|
|
|
<segtitle>Installed Programs</segtitle>
|
2012-02-08 01:11:39 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
2012-04-17 01:06:53 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
2012-02-08 01:11:39 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
2012-03-31 03:22:43 +08:00
|
|
|
<seg>
|
2013-07-15 05:00:25 +08:00
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2015-11-13 22:24:57 +08:00
|
|
|
libcogl-gles2.so,
|
2014-07-08 05:40:51 +08:00
|
|
|
libcogl-pango.so,
|
2015-11-13 22:24:57 +08:00
|
|
|
libcogl-path.so, and
|
2014-01-22 07:48:34 +08:00
|
|
|
libcogl.so, and optional libraries
|
|
|
|
libcogl-gst.so and /usr/lib/gstreamer-1.0/libgstcogl.so
|
2012-03-31 03:22:43 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2012-09-27 03:37:13 +08:00
|
|
|
/usr/include/cogl and
|
|
|
|
/usr/share/cogl
|
2012-03-31 03:22:43 +08:00
|
|
|
</seg>
|
2012-02-08 01:11:39 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2013-07-15 05:00:25 +08:00
|
|
|
<varlistentry id="libcogl-gles2">
|
|
|
|
<term><filename class="libraryfile">libcogl-gles2.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is the OpenGL ES 2.0 integration library for
|
|
|
|
<application>Cogl</application>.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="cogl libcogl-gles2">
|
|
|
|
<primary sortas="c-libcogl-gles2">libcogl-gles2.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-02-08 01:11:39 +08:00
|
|
|
<varlistentry id="libcogl-pango">
|
2012-09-02 00:17:53 +08:00
|
|
|
<term><filename class="libraryfile">libcogl-pango.so</filename></term>
|
2012-02-08 01:11:39 +08:00
|
|
|
<listitem>
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
is the <application>Pango</application> integration library
|
|
|
|
for <application>Cogl</application>.
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
<indexterm zone="cogl libcogl-pango">
|
|
|
|
<primary sortas="c-libcogl-pango">libcogl-pango.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libcogl">
|
2012-09-02 00:17:53 +08:00
|
|
|
<term><filename class="libraryfile">libcogl.so</filename></term>
|
2012-02-08 01:11:39 +08:00
|
|
|
<listitem>
|
2012-07-25 00:17:44 +08:00
|
|
|
<para>
|
|
|
|
is an object oriented GL/GLES Abstraction/Utility Layer library.
|
|
|
|
</para>
|
2012-02-08 01:11:39 +08:00
|
|
|
<indexterm zone="cogl libcogl">
|
|
|
|
<primary sortas="c-libcogl">libcogl.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|