2024-05-13 17:06:32 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!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;
|
|
|
|
|
|
|
|
<!ENTITY libogg-download-http "https://downloads.xiph.org/releases/ogg/libogg-&libogg-version;.tar.xz">
|
|
|
|
<!ENTITY libogg-download-ftp " ">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="libogg" xreflabel="libogg-&libogg-version;">
|
|
|
|
<?dbhtml filename="libogg.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>libogg-&libogg-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="libogg">
|
|
|
|
<primary sortas="a-Libogg">Libogg</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to libogg</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>libogg</application> package contains the Ogg file
|
|
|
|
structure. This is useful for creating (encoding) or playing (decoding) a
|
|
|
|
single physical bit stream.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
&lfs121_checked;
|
|
|
|
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&libogg-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&libogg-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of libogg</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>libogg</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
|
|
--disable-static \
|
2024-05-13 19:47:31 +08:00
|
|
|
--docdir=/usr/share/doc/libogg-&libogg-version;
|
|
|
|
|
2024-05-13 17:06:32 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>make check</command>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2024-05-13 19:47:31 +08:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>32-bit Installation of libogg</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
First clean the directory:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>make distclean</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install lib32-<application>libogg</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>CC="gcc -m32" CXX="g++ -m32" \
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--host=i686-pc-linux-gnu \
|
|
|
|
--disable-static
|
|
|
|
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make DESTDIR=$PWD/DESTDIR install
|
|
|
|
cp -vr DESTDIR/usr/lib32/* /usr/lib32
|
|
|
|
rm -rf DESTDIR
|
|
|
|
ldconfig</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
2024-05-13 17:06:32 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>libogg.so</seg>
|
|
|
|
<seg>/usr/include/ogg and /usr/share/doc/libogg-&libogg-version;</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="libogg-lib">
|
|
|
|
<term><filename class="libraryfile">libogg.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
provides the functions required for programs to
|
|
|
|
read or write Ogg formatted bit streams
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libogg libogg-lib">
|
|
|
|
<primary sortas="c-libogg">libogg.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|