[aea89388] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[e2439a3] | 7 | <!-- Editors, update this for new releases as needed -->
|
---|
[7def1747] | 8 | <!ENTITY cogl-minor "1.22">
|
---|
| 9 |
|
---|
| 10 | <!ENTITY cogl-download-http "&gnome-download-http;/cogl/&cogl-minor;/cogl-&cogl-version;.tar.xz">
|
---|
| 11 | <!ENTITY cogl-download-ftp "&gnome-download-ftp;/cogl/&cogl-minor;/cogl-&cogl-version;.tar.xz">
|
---|
[e2439a3] | 12 | <!ENTITY cogl-md5sum "7dd8b2e24171ef7399f851cea144b569">
|
---|
[716a45fb] | 13 | <!ENTITY cogl-size "1.7 MB">
|
---|
[e2439a3] | 14 | <!ENTITY cogl-buildsize "69 MB (add 2 MB for tests)">
|
---|
| 15 | <!ENTITY cogl-time "0.3 SBU (Using parallelism=4; add 0.2 SBU for tests)">
|
---|
| 16 | <!-- Timing may depend on the capabilities and speed of the graphics card.
|
---|
| 17 | The timing for 1.22.8 was taken on an Intel-based system, with HD Graphics
|
---|
| 18 | 530 on a Skylake i5-6600k.-->
|
---|
[aea89388] | 19 | ]>
|
---|
| 20 |
|
---|
[ff5df153] | 21 | <sect1 id="cogl" xreflabel="Cogl-&cogl-version;">
|
---|
[aea89388] | 22 | <?dbhtml filename="cogl.html"?>
|
---|
| 23 |
|
---|
| 24 | <sect1info>
|
---|
| 25 | <date>$Date$</date>
|
---|
| 26 | </sect1info>
|
---|
| 27 |
|
---|
[742b99e] | 28 | <title>Cogl-&cogl-version;</title>
|
---|
[aea89388] | 29 |
|
---|
| 30 | <indexterm zone="cogl">
|
---|
[983fc68] | 31 | <primary sortas="a-Cogl">Cogl</primary>
|
---|
[aea89388] | 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
[742b99e] | 35 | <title>Introduction to Cogl</title>
|
---|
[aea89388] | 36 |
|
---|
[a2912ff] | 37 | <para>
|
---|
| 38 | <application>Cogl</application> is a modern 3D graphics API with associated
|
---|
| 39 | utility APIs designed to expose the features of 3D graphics hardware using
|
---|
| 40 | a direct state access API design, as opposed to the state-machine style
|
---|
| 41 | of OpenGL.
|
---|
| 42 | </para>
|
---|
[aea89388] | 43 |
|
---|
[c93c620c] | 44 | &lfs110a_checked;
|
---|
[aea89388] | 45 |
|
---|
| 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
[a2912ff] | 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&cogl-download-http;"/>
|
---|
| 51 | </para>
|
---|
[aea89388] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[a2912ff] | 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&cogl-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
[aea89388] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[a2912ff] | 59 | <para>
|
---|
| 60 | Download MD5 sum: &cogl-md5sum;
|
---|
| 61 | </para>
|
---|
[aea89388] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[a2912ff] | 64 | <para>
|
---|
| 65 | Download size: &cogl-size;
|
---|
| 66 | </para>
|
---|
[aea89388] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[a2912ff] | 69 | <para>
|
---|
| 70 | Estimated disk space required: &cogl-buildsize;
|
---|
| 71 | </para>
|
---|
[aea89388] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[a2912ff] | 74 | <para>
|
---|
| 75 | Estimated build time: &cogl-time;
|
---|
| 76 | </para>
|
---|
[aea89388] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
[e2439a3] | 80 | <!-- No longer required with 1.22.8
|
---|
[a676cd04] | 81 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 82 | <itemizedlist spacing="compact">
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>
|
---|
| 85 | Required patch:
|
---|
| 86 | <ulink url="&patch-root;/cogl-&cogl-version;-mesa_20_fixes-1.patch"/>
|
---|
| 87 | </para>
|
---|
| 88 | </listitem>
|
---|
| 89 | </itemizedlist>
|
---|
[e2439a3] | 90 | -->
|
---|
[a676cd04] | 91 |
|
---|
[742b99e] | 92 | <bridgehead renderas="sect3">Cogl Dependencies</bridgehead>
|
---|
[aea89388] | 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[742b99e] | 95 | <para role="required">
|
---|
[bed608b0] | 96 | <xref linkend="cairo"/>,
|
---|
[742b99e] | 97 | <xref linkend="gdk-pixbuf"/>,
|
---|
[ca4f834] | 98 | <xref linkend="glu"/>,
|
---|
[51dfb3e] | 99 | <xref linkend="mesa"/>,
|
---|
[8558044] | 100 | <xref linkend="pango"/>, and
|
---|
[51dfb3e] | 101 | <xref linkend="wayland"/>
|
---|
[742b99e] | 102 | </para>
|
---|
[aea89388] | 103 |
|
---|
| 104 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[742b99e] | 105 | <para role="recommended">
|
---|
| 106 | <xref linkend="gobject-introspection"/>
|
---|
| 107 | </para>
|
---|
[b9a819c8] | 108 |
|
---|
| 109 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[742b99e] | 110 | <para role="optional">
|
---|
[a27a478] | 111 | <xref linkend="gst10-plugins-base"/>,
|
---|
[7ea83d7] | 112 | <xref linkend="gtk-doc"/>,
|
---|
[51dfb3e] | 113 | <xref linkend="sdl"/>, and
|
---|
| 114 | <xref linkend="sdl2"/>
|
---|
[742b99e] | 115 | </para>
|
---|
[aea89388] | 116 |
|
---|
| 117 | <para condition="html" role="usernotes">User Notes:
|
---|
[a2912ff] | 118 | <ulink url="&blfs-wiki;/cogl"/>
|
---|
| 119 | </para>
|
---|
[aea89388] | 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 role="installation">
|
---|
[742b99e] | 123 | <title>Installation of Cogl</title>
|
---|
[a676cd04] | 124 |
|
---|
[e2439a3] | 125 | <!--
|
---|
[a676cd04] | 126 | <para>
|
---|
| 127 | First fix an issue introduced by mesa-20.x and later:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <screen><userinput>patch -Np1 -i ../cogl-&cogl-version;-mesa_20_fixes-1.patch</userinput></screen>
|
---|
[e2439a3] | 131 | -->
|
---|
[a676cd04] | 132 |
|
---|
[a2912ff] | 133 | <para>
|
---|
| 134 | Install <application>Cogl</application> by running the following
|
---|
| 135 | commands:
|
---|
| 136 | </para>
|
---|
[aea89388] | 137 |
|
---|
[ea20da9] | 138 | ¶llel_issues;
|
---|
| 139 |
|
---|
[43c4beb] | 140 | <screen><userinput>./configure --prefix=/usr \
|
---|
[716a45fb] | 141 | --enable-gles1 \
|
---|
| 142 | --enable-gles2 \
|
---|
| 143 | --enable-{kms,wayland,xlib}-egl-platform \
|
---|
| 144 | --enable-wayland-egl-server &&
|
---|
[bdbc7fa1] | 145 | make</userinput></screen>
|
---|
| 146 |
|
---|
[a2912ff] | 147 | <para>
|
---|
[7ea83d7] | 148 | To test the results, issue: <command>make check</command>. The
|
---|
[ff84517] | 149 | tests should be run from an X terminal on the hardware accelerated
|
---|
[979dcbd5] | 150 | Xorg Server. A few tests will use all CPUs in parallel, regardless of
|
---|
| 151 | parallellism settings.
|
---|
[a2912ff] | 152 | </para>
|
---|
[aea89388] | 153 |
|
---|
[a2912ff] | 154 | <para>
|
---|
| 155 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 156 | </para>
|
---|
[aea89388] | 157 |
|
---|
| 158 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 159 |
|
---|
| 160 | </sect2>
|
---|
| 161 |
|
---|
[b9a819c8] | 162 | <sect2 role="commands">
|
---|
| 163 | <title>Command Explanations</title>
|
---|
| 164 |
|
---|
[7ea83d7] | 165 | <para>
|
---|
| 166 | <parameter>--enable-gles1</parameter>: This switch enables support
|
---|
| 167 | for OpenGL ES 1.1.
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
| 170 | <para>
|
---|
| 171 | <parameter>--enable-gles2</parameter>: This switch enables support
|
---|
| 172 | for OpenGL ES 2.0.
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
[a27a478] | 175 | <para>
|
---|
[51dfb3e] | 176 | <parameter>--enable-{kms,wayland,xlib}-egl-platform</parameter>:
|
---|
[bdbc7fa1] | 177 | These switches enable support for KMS, Wayland and Xlib EGL platforms.
|
---|
| 178 | They are required for <application>GNOME</application> Wayland support.
|
---|
[a27a478] | 179 | </para>
|
---|
| 180 |
|
---|
[bed608b0] | 181 | <para>
|
---|
[51dfb3e] | 182 | <parameter>--enable-wayland-egl-server</parameter>: This switch
|
---|
[bdbc7fa1] | 183 | enables <application>Cogl</application>'s Wayland Server API which is
|
---|
| 184 | required for <application>GNOME</application> Wayland support.
|
---|
[bed608b0] | 185 | </para>
|
---|
| 186 |
|
---|
| 187 | <para>
|
---|
[bdbc7fa1] | 188 | <option>--enable-cogl-gst</option>: This switch enables gstreamer support.
|
---|
[bed608b0] | 189 | </para>
|
---|
| 190 |
|
---|
[b9a819c8] | 191 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[a2912ff] | 192 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[b9a819c8] | 193 |
|
---|
| 194 | </sect2>
|
---|
| 195 |
|
---|
[aea89388] | 196 | <sect2 role="content">
|
---|
| 197 | <title>Contents</title>
|
---|
| 198 |
|
---|
| 199 | <segmentedlist>
|
---|
[7ea83d7] | 200 | <segtitle>Installed Programs</segtitle>
|
---|
[aea89388] | 201 | <segtitle>Installed Libraries</segtitle>
|
---|
[742b99e] | 202 | <segtitle>Installed Directories</segtitle>
|
---|
[aea89388] | 203 |
|
---|
| 204 | <seglistitem>
|
---|
[0913f48] | 205 | <seg>
|
---|
[7ea83d7] | 206 | None
|
---|
| 207 | </seg>
|
---|
| 208 | <seg>
|
---|
[f3429309] | 209 | libcogl-gles2.so,
|
---|
[b9edd3d5] | 210 | libcogl-pango.so,
|
---|
[f3429309] | 211 | libcogl-path.so, and
|
---|
[a27a478] | 212 | libcogl.so, and optional libraries
|
---|
| 213 | libcogl-gst.so and /usr/lib/gstreamer-1.0/libgstcogl.so
|
---|
[0913f48] | 214 | </seg>
|
---|
| 215 | <seg>
|
---|
[983fc68] | 216 | /usr/include/cogl and
|
---|
| 217 | /usr/share/cogl
|
---|
[0913f48] | 218 | </seg>
|
---|
[aea89388] | 219 | </seglistitem>
|
---|
| 220 | </segmentedlist>
|
---|
| 221 |
|
---|
| 222 | <variablelist>
|
---|
| 223 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 224 | <?dbfo list-presentation="list"?>
|
---|
| 225 | <?dbhtml list-presentation="table"?>
|
---|
| 226 |
|
---|
[7ea83d7] | 227 | <varlistentry id="libcogl-gles2">
|
---|
| 228 | <term><filename class="libraryfile">libcogl-gles2.so</filename></term>
|
---|
| 229 | <listitem>
|
---|
| 230 | <para>
|
---|
| 231 | is the OpenGL ES 2.0 integration library for
|
---|
[4c24eb0a] | 232 | <application>Cogl</application>
|
---|
[7ea83d7] | 233 | </para>
|
---|
| 234 | <indexterm zone="cogl libcogl-gles2">
|
---|
| 235 | <primary sortas="c-libcogl-gles2">libcogl-gles2.so</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
| 239 |
|
---|
[aea89388] | 240 | <varlistentry id="libcogl-pango">
|
---|
[948dc10] | 241 | <term><filename class="libraryfile">libcogl-pango.so</filename></term>
|
---|
[aea89388] | 242 | <listitem>
|
---|
[a2912ff] | 243 | <para>
|
---|
| 244 | is the <application>Pango</application> integration library
|
---|
[4c24eb0a] | 245 | for <application>Cogl</application>
|
---|
[a2912ff] | 246 | </para>
|
---|
[aea89388] | 247 | <indexterm zone="cogl libcogl-pango">
|
---|
| 248 | <primary sortas="c-libcogl-pango">libcogl-pango.so</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
| 253 | <varlistentry id="libcogl">
|
---|
[948dc10] | 254 | <term><filename class="libraryfile">libcogl.so</filename></term>
|
---|
[aea89388] | 255 | <listitem>
|
---|
[a2912ff] | 256 | <para>
|
---|
[4c24eb0a] | 257 | is an object oriented GL/GLES Abstraction/Utility Layer library
|
---|
[a2912ff] | 258 | </para>
|
---|
[aea89388] | 259 | <indexterm zone="cogl libcogl">
|
---|
| 260 | <primary sortas="c-libcogl">libcogl.so</primary>
|
---|
| 261 | </indexterm>
|
---|
| 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
| 264 |
|
---|
| 265 | </variablelist>
|
---|
| 266 |
|
---|
| 267 | </sect2>
|
---|
| 268 |
|
---|
| 269 | </sect1>
|
---|