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