Difference between revisions of "Fs2 open on Linux/Installing the Development Libraries"

From FreeSpace Wiki
Jump to: navigation, search
(Add switch to emerge command.)
(Added readline as a dependency)
Line 9: Line 9:
 
{{Note|: <b>Redhat</b>, <b>Slackware</b>, <b>Archlinux</b>, <b>SuSE</b>, and all the other distributions should have their instructions on installing the needed libraries added here, if your distribution is not listed below and you are familiar with how to install the needed libraries on it, please add it to this section. }}
 
{{Note|: <b>Redhat</b>, <b>Slackware</b>, <b>Archlinux</b>, <b>SuSE</b>, and all the other distributions should have their instructions on installing the needed libraries added here, if your distribution is not listed below and you are familiar with how to install the needed libraries on it, please add it to this section. }}
  
You will also need [http://www.libsdl.org/ SDL], [http://www.openal.org/ OpenAL], [http://vorbis.com/ libvorbis], [http://www.theora.org/ libtheora] and OpenGL(most likely provided with your video card driver) development packages. And of course the [http://gcc.gnu.org/ GNU Compiler Collection] and required [http://sourceware.org/autobook/ make] tools.
+
You will also need [http://www.libsdl.org/ SDL], [http://www.openal.org/ OpenAL], [http://vorbis.com/ libvorbis], [http://www.theora.org/ libtheora], readline, and OpenGL(most likely provided with your video card driver) development packages. And of course the [http://gcc.gnu.org/ GNU Compiler Collection] and required [http://sourceware.org/autobook/ make] tools.
 
<br>
 
<br>
 
'''Debian/Ubuntu''' users want to:
 
'''Debian/Ubuntu''' users want to:
 
{{Note| The [http://packages.debian.org/unstable/devel/build-essential build-essential] package is a meta package that install the essential build tools. Follow the link for information.}}
 
{{Note| The [http://packages.debian.org/unstable/devel/build-essential build-essential] package is a meta package that install the essential build tools. Follow the link for information.}}
  $ apt-get install libopenal-dev libvorbis-dev build-essential automake1.9 autoconf libsdl-dev libtheora-dev
+
  $ apt-get install libopenal-dev libvorbis-dev build-essential automake1.9 autoconf libsdl-dev libtheora-dev libreadline5-dev
  
'''Fedora Core 6 (Zod)''' users (and most likely Redhat users too) want to:
+
'''Fedora Core''' users (and most likely Redhat users too) want to:
  $ yum install openal-devel libvorbis-devel gcc gcc-c++ automake autoconf SDL-devel libtheora-devel
+
  $ yum install openal-devel libvorbis-devel gcc gcc-c++ automake autoconf SDL-devel libtheora-devel readline-devel
  
 
'''Gentoo''' users want to:
 
'''Gentoo''' users want to:
 
{{Note| media-libs/openal needs the <b>"alsa"</b> USE-flag if you intend to use ALSA, and media-libs/libsdl needs the <b>"X"</b>,<b>"opengl"</b> and <b>"xv"</b> USE-flags.}}
 
{{Note| media-libs/openal needs the <b>"alsa"</b> USE-flag if you intend to use ALSA, and media-libs/libsdl needs the <b>"X"</b>,<b>"opengl"</b> and <b>"xv"</b> USE-flags.}}
  
  $ emerge -va openal libvorbis libsdl libtheora
+
  $ emerge -va openal libvorbis libsdl libtheora readline
  
 
'''Mandriva''' users want to:
 
'''Mandriva''' users want to:

Revision as of 18:56, 10 June 2009

« Installing Subversion The fs2_open on Linux Guide
Installing the Development Libraries
Acquiring_the_Code »

Note: This step is only for those who want the bleeding-edge source code to compile on their own. You can skip this if you intend to use a provided binary executable.

Note: : Redhat, Slackware, Archlinux, SuSE, and all the other distributions should have their instructions on installing the needed libraries added here, if your distribution is not listed below and you are familiar with how to install the needed libraries on it, please add it to this section.

You will also need SDL, OpenAL, libvorbis, libtheora, readline, and OpenGL(most likely provided with your video card driver) development packages. And of course the GNU Compiler Collection and required make tools.
Debian/Ubuntu users want to:

Note: The build-essential package is a meta package that install the essential build tools. Follow the link for information.
$ apt-get install libopenal-dev libvorbis-dev build-essential automake1.9 autoconf libsdl-dev libtheora-dev libreadline5-dev

Fedora Core users (and most likely Redhat users too) want to:

$ yum install openal-devel libvorbis-devel gcc gcc-c++ automake autoconf SDL-devel libtheora-devel readline-devel

Gentoo users want to:

Note: media-libs/openal needs the "alsa" USE-flag if you intend to use ALSA, and media-libs/libsdl needs the "X","opengl" and "xv" USE-flags.
$ emerge -va openal libvorbis libsdl libtheora readline

Mandriva users want to:

$ urpmi libsdl-devel libopenal-devel libvorbis-devel libtheora-devel gcc gcc-c++ automake autoconf