3 [![Travis Build Status](https://travis-ci.org/xiph/ogg.svg?branch=master)](https://travis-ci.org/xiph/ogg)
4 [![Jenkins Build Status](https://mf4.xiph.org/jenkins/job/libogg/badge/icon)](https://mf4.xiph.org/jenkins/job/libogg/)
5 [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/xiph/ogg?branch=master&svg=true)](https://ci.appveyor.com/project/rillian/ogg)
7 Ogg project codecs use the Ogg bitstream format to arrange the raw,
8 compressed bitstream into a more robust, useful form. For example,
9 the Ogg bitstream makes seeking, time stamping and error recovery
10 possible, as well as mixing several sepearate, concurrent media
11 streams into a single physical bitstream.
14 This source distribution includes libogg and nothing else. Other modules
15 (eg, the modules libvorbis, vorbis-tools for the Vorbis music codec,
16 libtheora for the Theora video codec) contain the codec libraries for
17 use with Ogg bitstreams.
21 - `src` The source for libogg, a BSD-license inplementation of the public domain Ogg bitstream format
23 - `include` Library API headers
25 - `doc` Ogg specification and libogg API documents
27 - `win32` Win32 projects and build automation
29 - `macosx` Mac OS X project and build files
33 The Ogg homepage is located at https://www.xiph.org/ogg/ .
34 Up to date technical documents, contact information, source code and
35 pre-built utilities may be found there.
39 #### Building from tarball distributions ####
44 and optionally (as root):
48 This will install the Ogg libraries (static and shared) into
49 /usr/local/lib, includes into /usr/local/include and API
50 documentation into /usr/local/share/doc.
52 #### Building from repository source ####
54 A standard svn build should consist of nothing more than:
60 and as root if desired :
64 #### Building on Windows ####
66 Use the project file in the win32 directory. It should compile out of the box.
68 #### Cross-compiling from Linux to Windows ####
70 It is also possible to cross compile from Linux to windows using the MinGW
71 cross tools and even to run the test suite under Wine, the Linux/*nix
74 On Debian and Ubuntu systems, these cross compiler tools can be installed
77 sudo apt-get mingw32 mingw32-binutils mingw32-runtime wine
79 Once these tools are installed its possible to compile and test by
80 executing the following commands, or something similar depending on
83 ./configure --host=i586-mingw32msvc --target=i586-mingw32msvc --build=i586-linux
87 (Build instructions for Ogg codecs such as vorbis are similar and may
88 be found in those source modules' README files)
90 ## Building with CMake ##
92 Ogg supports building using [CMake](http://www.cmake.org/). CMake is a meta build system that generates native projects for each platform.
93 To generate projects just run cmake replacing `YOUR-PROJECT-GENERATOR` with a proper generator from a list [here](http://www.cmake.org/cmake/help/v3.2/manual/cmake-generators.7.html):
95 cmake -G YOUR-PROJECT-GENERATOR .
97 Note that by default cmake generates projects that will build static libraries.
98 To generate projects that will build dynamic library use `BUILD_SHARED_LIBS` option like this:
100 cmake -G YOUR-PROJECT-GENERATOR -DBUILD_SHARED_LIBS=1 .
102 After projects are generated use them as usual
104 #### Building on Windows ####
106 Use proper generator for your Visual Studio version like:
108 cmake -G "Visual Studio 12 2013" .
110 #### Building on Mac OS X ####
112 Use Xcode generator. To build framework run:
114 cmake -G Xcode -DBUILD_FRAMEWORK=1 .
116 #### Building on Linux ####
118 Use Makefile generator which is default one.
125 THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.
126 USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS
127 GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE
128 IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.
130 THE OggVorbis SOURCE CODE IS COPYRIGHT (C) 1994-2015
131 by the Xiph.Org Foundation https://www.xiph.org/