[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 |
|
---|
[48bcac9] | 42 | &lfs90_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 |
|
---|
[742b99e] | 78 | <bridgehead renderas="sect3">Cogl Dependencies</bridgehead>
|
---|
[aea89388] | 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[742b99e] | 81 | <para role="required">
|
---|
[bed608b0] | 82 | <xref linkend="cairo"/>,
|
---|
[742b99e] | 83 | <xref linkend="gdk-pixbuf"/>,
|
---|
[ca4f834] | 84 | <xref linkend="glu"/>,
|
---|
[51dfb3e] | 85 | <xref linkend="mesa"/>,
|
---|
| 86 | <xref linkend="pango"/>, and
|
---|
| 87 | <xref linkend="wayland"/>
|
---|
[742b99e] | 88 | </para>
|
---|
[aea89388] | 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[742b99e] | 91 | <para role="recommended">
|
---|
| 92 | <xref linkend="gobject-introspection"/>
|
---|
| 93 | </para>
|
---|
[b9a819c8] | 94 |
|
---|
| 95 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[742b99e] | 96 | <para role="optional">
|
---|
[a27a478] | 97 | <xref linkend="gst10-plugins-base"/>,
|
---|
[7ea83d7] | 98 | <xref linkend="gtk-doc"/>,
|
---|
[51dfb3e] | 99 | <xref linkend="sdl"/>, and
|
---|
| 100 | <xref linkend="sdl2"/>
|
---|
[742b99e] | 101 | </para>
|
---|
[aea89388] | 102 |
|
---|
| 103 | <para condition="html" role="usernotes">User Notes:
|
---|
[a2912ff] | 104 | <ulink url="&blfs-wiki;/cogl"/>
|
---|
| 105 | </para>
|
---|
[aea89388] | 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="installation">
|
---|
[742b99e] | 109 | <title>Installation of Cogl</title>
|
---|
[ea20da9] | 110 | <!--
|
---|
[83d7e276] | 111 | <note>
|
---|
| 112 | <para>
|
---|
| 113 | This package may occasionally fail when building with multiple
|
---|
| 114 | processors. See <xref linkend="parallel-builds"/> for more
|
---|
| 115 | information.
|
---|
| 116 | </para>
|
---|
| 117 | </note>
|
---|
[ea20da9] | 118 | -->
|
---|
[a2912ff] | 119 | <para>
|
---|
| 120 | Install <application>Cogl</application> by running the following
|
---|
| 121 | commands:
|
---|
| 122 | </para>
|
---|
[aea89388] | 123 |
|
---|
[ea20da9] | 124 | ¶llel_issues;
|
---|
| 125 |
|
---|
[5c8fcb7] | 126 | <screen><userinput>./configure --prefix=/usr --enable-gles1 --enable-gles2 \
|
---|
[bdbc7fa1] | 127 | --enable-{kms,wayland,xlib}-egl-platform \
|
---|
| 128 | --enable-wayland-egl-server &&
|
---|
| 129 | make</userinput></screen>
|
---|
| 130 |
|
---|
[a2912ff] | 131 | <para>
|
---|
[7ea83d7] | 132 | To test the results, issue: <command>make check</command>. The
|
---|
[ff84517] | 133 | tests should be run from an X terminal on the hardware accelerated
|
---|
[979dcbd5] | 134 | Xorg Server. A few tests will use all CPUs in parallel, regardless of
|
---|
| 135 | parallellism settings.
|
---|
[a2912ff] | 136 | </para>
|
---|
[aea89388] | 137 |
|
---|
[a2912ff] | 138 | <para>
|
---|
| 139 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 140 | </para>
|
---|
[aea89388] | 141 |
|
---|
| 142 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 143 |
|
---|
| 144 | </sect2>
|
---|
| 145 |
|
---|
[b9a819c8] | 146 | <sect2 role="commands">
|
---|
| 147 | <title>Command Explanations</title>
|
---|
| 148 |
|
---|
[7ea83d7] | 149 | <para>
|
---|
| 150 | <parameter>--enable-gles1</parameter>: This switch enables support
|
---|
| 151 | for OpenGL ES 1.1.
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
| 154 | <para>
|
---|
| 155 | <parameter>--enable-gles2</parameter>: This switch enables support
|
---|
| 156 | for OpenGL ES 2.0.
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
[a27a478] | 159 | <para>
|
---|
[51dfb3e] | 160 | <parameter>--enable-{kms,wayland,xlib}-egl-platform</parameter>:
|
---|
[bdbc7fa1] | 161 | These switches enable support for KMS, Wayland and Xlib EGL platforms.
|
---|
| 162 | They are required for <application>GNOME</application> Wayland support.
|
---|
[a27a478] | 163 | </para>
|
---|
| 164 |
|
---|
[bed608b0] | 165 | <para>
|
---|
[51dfb3e] | 166 | <parameter>--enable-wayland-egl-server</parameter>: This switch
|
---|
[bdbc7fa1] | 167 | enables <application>Cogl</application>'s Wayland Server API which is
|
---|
| 168 | required for <application>GNOME</application> Wayland support.
|
---|
[bed608b0] | 169 | </para>
|
---|
| 170 |
|
---|
| 171 | <para>
|
---|
[bdbc7fa1] | 172 | <option>--enable-cogl-gst</option>: This switch enables gstreamer support.
|
---|
[bed608b0] | 173 | </para>
|
---|
| 174 |
|
---|
[b9a819c8] | 175 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[a2912ff] | 176 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[b9a819c8] | 177 |
|
---|
| 178 | </sect2>
|
---|
| 179 |
|
---|
[aea89388] | 180 | <sect2 role="content">
|
---|
| 181 | <title>Contents</title>
|
---|
| 182 |
|
---|
| 183 | <segmentedlist>
|
---|
[7ea83d7] | 184 | <segtitle>Installed Programs</segtitle>
|
---|
[aea89388] | 185 | <segtitle>Installed Libraries</segtitle>
|
---|
[742b99e] | 186 | <segtitle>Installed Directories</segtitle>
|
---|
[aea89388] | 187 |
|
---|
| 188 | <seglistitem>
|
---|
[0913f48] | 189 | <seg>
|
---|
[7ea83d7] | 190 | None
|
---|
| 191 | </seg>
|
---|
| 192 | <seg>
|
---|
[f3429309] | 193 | libcogl-gles2.so,
|
---|
[b9edd3d5] | 194 | libcogl-pango.so,
|
---|
[f3429309] | 195 | libcogl-path.so, and
|
---|
[a27a478] | 196 | libcogl.so, and optional libraries
|
---|
| 197 | libcogl-gst.so and /usr/lib/gstreamer-1.0/libgstcogl.so
|
---|
[0913f48] | 198 | </seg>
|
---|
| 199 | <seg>
|
---|
[983fc68] | 200 | /usr/include/cogl and
|
---|
| 201 | /usr/share/cogl
|
---|
[0913f48] | 202 | </seg>
|
---|
[aea89388] | 203 | </seglistitem>
|
---|
| 204 | </segmentedlist>
|
---|
| 205 |
|
---|
| 206 | <variablelist>
|
---|
| 207 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 208 | <?dbfo list-presentation="list"?>
|
---|
| 209 | <?dbhtml list-presentation="table"?>
|
---|
| 210 |
|
---|
[7ea83d7] | 211 | <varlistentry id="libcogl-gles2">
|
---|
| 212 | <term><filename class="libraryfile">libcogl-gles2.so</filename></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>
|
---|
| 215 | is the OpenGL ES 2.0 integration library for
|
---|
| 216 | <application>Cogl</application>.
|
---|
| 217 | </para>
|
---|
| 218 | <indexterm zone="cogl libcogl-gles2">
|
---|
| 219 | <primary sortas="c-libcogl-gles2">libcogl-gles2.so</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
[aea89388] | 224 | <varlistentry id="libcogl-pango">
|
---|
[948dc10] | 225 | <term><filename class="libraryfile">libcogl-pango.so</filename></term>
|
---|
[aea89388] | 226 | <listitem>
|
---|
[a2912ff] | 227 | <para>
|
---|
| 228 | is the <application>Pango</application> integration library
|
---|
| 229 | for <application>Cogl</application>.
|
---|
| 230 | </para>
|
---|
[aea89388] | 231 | <indexterm zone="cogl libcogl-pango">
|
---|
| 232 | <primary sortas="c-libcogl-pango">libcogl-pango.so</primary>
|
---|
| 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
| 236 |
|
---|
| 237 | <varlistentry id="libcogl">
|
---|
[948dc10] | 238 | <term><filename class="libraryfile">libcogl.so</filename></term>
|
---|
[aea89388] | 239 | <listitem>
|
---|
[a2912ff] | 240 | <para>
|
---|
| 241 | is an object oriented GL/GLES Abstraction/Utility Layer library.
|
---|
| 242 | </para>
|
---|
[aea89388] | 243 | <indexterm zone="cogl libcogl">
|
---|
| 244 | <primary sortas="c-libcogl">libcogl.so</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
| 248 |
|
---|
| 249 | </variablelist>
|
---|
| 250 |
|
---|
| 251 | </sect2>
|
---|
| 252 |
|
---|
| 253 | </sect1>
|
---|