Difference between revisions of "Fs2 open on Linux/Installing the Development Libraries"
From FreeSpace Wiki
(gentoo lua package called "lua" not "liblua") |
(Update development packages so SDL2 gets installed instead of SDL1) |
||
(14 intermediate revisions by 6 users not shown) | |||
Line 2: | Line 2: | ||
BookName=[[The fs2_open on Linux Guide]]| | BookName=[[The fs2_open on Linux Guide]]| | ||
CurrentPage=Installing the Development Libraries|Installing the Development Libraries| | CurrentPage=Installing the Development Libraries|Installing the Development Libraries| | ||
− | PrevPage=[[Fs2_open on Linux/Installing | + | PrevPage=[[Fs2_open on Linux/Installing Git|Installing Git]]| |
NextPage=[[Fs2_open on Linux/Acquiring the Code|Acquiring the Code]]}} | NextPage=[[Fs2_open on Linux/Acquiring the Code|Acquiring the Code]]}} | ||
<p></p> | <p></p> | ||
{{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| 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.}} | ||
<p></p> | <p></p> | ||
− | {{Note| | + | {{Note| If your distribution is not listed below and you are familiar with how to install the needed libraries on it, please add that information to this section. }} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | ' | + | To build FS2 Open, you'll need the [http://www.libsdl.org/ SDL], [http://www.openal.org/ OpenAL], [http://www.xiph.org/ogg/ libogg], [http://vorbis.com/ libvorbis], [http://www.theora.org/ libtheora], [http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html readline], [http://www.lua.org liblua (version 5.1.3 or higher)], [http://www.digip.org/jansson/ Jansson], and OpenGL (most likely provided with your video card driver) development packages. And of course, you'll need the [http://gcc.gnu.org/ GNU Compiler Collection] and [http://sourceware.org/autobook/ make]. |
− | |||
− | |||
− | |||
− | |||
− | '''Gentoo''' users | + | '''Ubuntu''' and '''Linux Mint (except for Debian Edition)''' users should run: |
+ | $ apt-get install libopenal-dev libogg-dev libvorbis-dev build-essential automake1.10 autoconf libsdl2-dev libtheora-dev libreadline6-dev libpng12-dev libjpeg62-dev liblua5.1-0-dev libjansson-dev libtool | ||
+ | {{Note| The [http://packages.debian.org/unstable/devel/build-essential build-essential] package is a metapackage that installs the essential build tools.}} | ||
+ | |||
+ | |||
+ | '''Debian''' and '''Linux Mint Debian Edition''' users should run: | ||
+ | $ apt-get install libopenal-dev libvorbis-dev build-essential automake1.10 autoconf libsdl2-dev libtheora-dev libreadline6-dev libpng12-dev liblua5.1-0-dev libjansson-dev libtool | ||
+ | {{Note| The [http://packages.debian.org/unstable/devel/build-essential build-essential] package is a metapackage that installs the essential build tools.}} | ||
+ | |||
+ | |||
+ | '''Fedora 22+''' users should run: | ||
+ | $ dnf install openal-devel libvorbis-devel gcc gcc-c++ automake autoconf SDL2-devel libtheora-devel readline-devel compat-lua-devel libpng-devel libjpeg-devel jansson-devel libtool | ||
+ | |||
+ | |||
+ | '''Fedora Core''' users (and most likely Red Hat users too) should run: | ||
+ | $ yum install openal-devel libvorbis-devel gcc gcc-c++ automake autoconf SDL2-devel libtheora-devel readline-devel lua-devel libpng-devel libjpeg-devel jansson-devel libtool | ||
+ | |||
+ | |||
+ | '''Gentoo''' users should run: | ||
+ | $ emerge -va openal libvorbis libsdl2 libtheora readline lua jansson | ||
{{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.}} | ||
− | |||
− | '''Mandriva''' users | + | '''Mandriva''' users should run: |
− | $ urpmi | + | $ urpmi libsdl2-devel libopenal-devel libvorbis-devel libtheora-devel gcc gcc-c++ automake autoconf liblua-devel jansson-devel |
+ | |||
+ | '''OpenSUSE''' users should run: | ||
+ | $ sudo zypper install -t pattern devel_C_C++ | ||
+ | $ sudo zypper install libSDL2-devel libogg-devel libvorbis-devel libtheora-devel openal-soft-devel lua51-devel libjpeg8-devel libjansson-devel | ||
+ | |||
+ | '''FreeBSD 10''' users should run: | ||
+ | $ sudo pkg install autotools openal-soft lua51 jansson readline libogg libtheora libvorbis png jpeg sdl2 libtool | ||
+ | {{Note| Everything after 'lua51' is already installed on PC-BSD 10.1, and likely any other FreeBSD distro with a full desktop environment.}} | ||
+ | |||
[[Category:FreeSpace Open on Linux|Installing the Development Libraries]] | [[Category:FreeSpace Open on Linux|Installing the Development Libraries]] |
Latest revision as of 12:05, 18 July 2016
« Installing Git | 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: If your distribution is not listed below and you are familiar with how to install the needed libraries on it, please add that information to this section.
To build FS2 Open, you'll need the SDL, OpenAL, libogg, libvorbis, libtheora, readline, liblua (version 5.1.3 or higher), Jansson, and OpenGL (most likely provided with your video card driver) development packages. And of course, you'll need the GNU Compiler Collection and make.
Ubuntu and Linux Mint (except for Debian Edition) users should run:
$ apt-get install libopenal-dev libogg-dev libvorbis-dev build-essential automake1.10 autoconf libsdl2-dev libtheora-dev libreadline6-dev libpng12-dev libjpeg62-dev liblua5.1-0-dev libjansson-dev libtool
Note: The build-essential package is a metapackage that installs the essential build tools.
Debian and Linux Mint Debian Edition users should run:
$ apt-get install libopenal-dev libvorbis-dev build-essential automake1.10 autoconf libsdl2-dev libtheora-dev libreadline6-dev libpng12-dev liblua5.1-0-dev libjansson-dev libtool
Note: The build-essential package is a metapackage that installs the essential build tools.
Fedora 22+ users should run:
$ dnf install openal-devel libvorbis-devel gcc gcc-c++ automake autoconf SDL2-devel libtheora-devel readline-devel compat-lua-devel libpng-devel libjpeg-devel jansson-devel libtool
Fedora Core users (and most likely Red Hat users too) should run:
$ yum install openal-devel libvorbis-devel gcc gcc-c++ automake autoconf SDL2-devel libtheora-devel readline-devel lua-devel libpng-devel libjpeg-devel jansson-devel libtool
Gentoo users should run:
$ emerge -va openal libvorbis libsdl2 libtheora readline lua jansson
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.
Mandriva users should run:
$ urpmi libsdl2-devel libopenal-devel libvorbis-devel libtheora-devel gcc gcc-c++ automake autoconf liblua-devel jansson-devel
OpenSUSE users should run:
$ sudo zypper install -t pattern devel_C_C++ $ sudo zypper install libSDL2-devel libogg-devel libvorbis-devel libtheora-devel openal-soft-devel lua51-devel libjpeg8-devel libjansson-devel
FreeBSD 10 users should run:
$ sudo pkg install autotools openal-soft lua51 jansson readline libogg libtheora libvorbis png jpeg sdl2 libtool
Note: Everything after 'lua51' is already installed on PC-BSD 10.1, and likely any other FreeBSD distro with a full desktop environment.