[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">
|
---|
[ca4f834] | 12 | <!ENTITY cogl-md5sum "d53b708ca7c4af03d7254e46945d6b33">
|
---|
[7ea83d7] | 13 | <!ENTITY cogl-size "1.6 MB">
|
---|
[ca4f834] | 14 | <!ENTITY cogl-buildsize "64 MB">
|
---|
| 15 | <!ENTITY cogl-time "0.8 SBU (additional 0.4 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 |
|
---|
[484d2d8b] | 42 | &lfs81_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"/>,
|
---|
[7a395d1] | 85 | <xref linkend="mesa"/>, and
|
---|
[742b99e] | 86 | <xref linkend="pango"/>
|
---|
| 87 | </para>
|
---|
[aea89388] | 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[742b99e] | 90 | <para role="recommended">
|
---|
| 91 | <xref linkend="gobject-introspection"/>
|
---|
| 92 | </para>
|
---|
[b9a819c8] | 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[742b99e] | 95 | <para role="optional">
|
---|
[a27a478] | 96 | <xref linkend="gst10-plugins-base"/>,
|
---|
[7ea83d7] | 97 | <xref linkend="gtk-doc"/>,
|
---|
| 98 | <xref linkend="sdl"/>,
|
---|
[36aeaf9a] | 99 | <xref linkend="sdl2"/>, and
|
---|
[11c9ff3] | 100 | <xref linkend="wayland"/>
|
---|
[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 |
|
---|
[84a9efa] | 126 | <note revision="systemd">
|
---|
| 127 | <para>
|
---|
| 128 | If you are building <application>GNOME</application>, this packages
|
---|
| 129 | needs to be built with the additional options "--enable-cogl-gst",
|
---|
| 130 | "--enable-{kms,wayland,xlib}-egl-platform", and
|
---|
| 131 | "--enable-wayland-egl-server".
|
---|
| 132 | </para>
|
---|
| 133 | </note>
|
---|
| 134 |
|
---|
[747db59e] | 135 | <screen><userinput>sed -i 's/^#if COGL/#ifdef COGL/' cogl/winsys/cogl-winsys-egl.c &&
|
---|
| 136 |
|
---|
| 137 | ./configure --prefix=/usr --enable-gles1 --enable-gles2 &&
|
---|
[aea89388] | 138 | make</userinput></screen>
|
---|
| 139 |
|
---|
[a2912ff] | 140 | <para>
|
---|
[7ea83d7] | 141 | To test the results, issue: <command>make check</command>. The
|
---|
[ff84517] | 142 | tests should be run from an X terminal on the hardware accelerated
|
---|
| 143 | Xorg Server.
|
---|
[a2912ff] | 144 | </para>
|
---|
[aea89388] | 145 |
|
---|
[a2912ff] | 146 | <para>
|
---|
| 147 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 148 | </para>
|
---|
[aea89388] | 149 |
|
---|
| 150 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
[b9a819c8] | 154 | <sect2 role="commands">
|
---|
| 155 | <title>Command Explanations</title>
|
---|
| 156 |
|
---|
[7ea83d7] | 157 | <para>
|
---|
| 158 | <parameter>--enable-gles1</parameter>: This switch enables support
|
---|
| 159 | for OpenGL ES 1.1.
|
---|
| 160 | </para>
|
---|
| 161 |
|
---|
| 162 | <para>
|
---|
| 163 | <parameter>--enable-gles2</parameter>: This switch enables support
|
---|
| 164 | for OpenGL ES 2.0.
|
---|
| 165 | </para>
|
---|
| 166 |
|
---|
[a27a478] | 167 | <para>
|
---|
| 168 | <option>--enable-cogl-gst</option>: This switch enables gstreamer support.
|
---|
| 169 | </para>
|
---|
| 170 |
|
---|
[bed608b0] | 171 | <para>
|
---|
[f7841987] | 172 | <option>--enable-{kms,wayland,xlib}-egl-platform</option>: These
|
---|
[bed608b0] | 173 | switches enable support for KMS, Wayland and Xlib EGL platforms. They
|
---|
| 174 | are required for <application>GNOME</application> Wayland support.
|
---|
| 175 | </para>
|
---|
| 176 |
|
---|
| 177 | <para>
|
---|
[f7841987] | 178 | <option>--enable-wayland-egl-server</option>: This switch
|
---|
[bed608b0] | 179 | enables <application>Cogl</application>'s Wayland Server API
|
---|
| 180 | which is required for <application>GNOME</application> Wayland
|
---|
| 181 | support.
|
---|
| 182 | </para>
|
---|
| 183 |
|
---|
[b9a819c8] | 184 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[a2912ff] | 185 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[b9a819c8] | 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
[aea89388] | 189 | <sect2 role="content">
|
---|
| 190 | <title>Contents</title>
|
---|
| 191 |
|
---|
| 192 | <segmentedlist>
|
---|
[7ea83d7] | 193 | <segtitle>Installed Programs</segtitle>
|
---|
[aea89388] | 194 | <segtitle>Installed Libraries</segtitle>
|
---|
[742b99e] | 195 | <segtitle>Installed Directories</segtitle>
|
---|
[aea89388] | 196 |
|
---|
| 197 | <seglistitem>
|
---|
[0913f48] | 198 | <seg>
|
---|
[7ea83d7] | 199 | None
|
---|
| 200 | </seg>
|
---|
| 201 | <seg>
|
---|
[f3429309] | 202 | libcogl-gles2.so,
|
---|
[b9edd3d5] | 203 | libcogl-pango.so,
|
---|
[f3429309] | 204 | libcogl-path.so, and
|
---|
[a27a478] | 205 | libcogl.so, and optional libraries
|
---|
| 206 | libcogl-gst.so and /usr/lib/gstreamer-1.0/libgstcogl.so
|
---|
[0913f48] | 207 | </seg>
|
---|
| 208 | <seg>
|
---|
[983fc68] | 209 | /usr/include/cogl and
|
---|
| 210 | /usr/share/cogl
|
---|
[0913f48] | 211 | </seg>
|
---|
[aea89388] | 212 | </seglistitem>
|
---|
| 213 | </segmentedlist>
|
---|
| 214 |
|
---|
| 215 | <variablelist>
|
---|
| 216 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 217 | <?dbfo list-presentation="list"?>
|
---|
| 218 | <?dbhtml list-presentation="table"?>
|
---|
| 219 |
|
---|
[7ea83d7] | 220 | <varlistentry id="libcogl-gles2">
|
---|
| 221 | <term><filename class="libraryfile">libcogl-gles2.so</filename></term>
|
---|
| 222 | <listitem>
|
---|
| 223 | <para>
|
---|
| 224 | is the OpenGL ES 2.0 integration library for
|
---|
| 225 | <application>Cogl</application>.
|
---|
| 226 | </para>
|
---|
| 227 | <indexterm zone="cogl libcogl-gles2">
|
---|
| 228 | <primary sortas="c-libcogl-gles2">libcogl-gles2.so</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
[aea89388] | 233 | <varlistentry id="libcogl-pango">
|
---|
[948dc10] | 234 | <term><filename class="libraryfile">libcogl-pango.so</filename></term>
|
---|
[aea89388] | 235 | <listitem>
|
---|
[a2912ff] | 236 | <para>
|
---|
| 237 | is the <application>Pango</application> integration library
|
---|
| 238 | for <application>Cogl</application>.
|
---|
| 239 | </para>
|
---|
[aea89388] | 240 | <indexterm zone="cogl libcogl-pango">
|
---|
| 241 | <primary sortas="c-libcogl-pango">libcogl-pango.so</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="libcogl">
|
---|
[948dc10] | 247 | <term><filename class="libraryfile">libcogl.so</filename></term>
|
---|
[aea89388] | 248 | <listitem>
|
---|
[a2912ff] | 249 | <para>
|
---|
| 250 | is an object oriented GL/GLES Abstraction/Utility Layer library.
|
---|
| 251 | </para>
|
---|
[aea89388] | 252 | <indexterm zone="cogl libcogl">
|
---|
| 253 | <primary sortas="c-libcogl">libcogl.so</primary>
|
---|
| 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
| 258 | </variablelist>
|
---|
| 259 |
|
---|
| 260 | </sect2>
|
---|
| 261 |
|
---|
| 262 | </sect1>
|
---|