Linux Build Instructions

From AlephWiki

Jump to: navigation, search

Contents

Make sure you have the required libraries installed

Most distributions package these libraries, so you just have to use the package system to make sure they're installed

  • Boost
    • Contains many useful template libraries that haven't made it into mainstream C++ yet
  • SDL
  • SDL_Net
  • SDL_Image
  • (Optional) SDL_ttf
    • For TrueType font rendering
  • (Optional) libmad
    • For mp3 music playback
  • (Optional) libvorbis
    • For Ogg/Vorbis music playback
  • (Optional) libsndfile
    • For improved AIFF/WAV support, including IMA compression
  • (Optional) Speex
    • For realtime audio payback (net-mic)
    • You must use ALSA if you want to transmit with the net-mic
  • (Optional) SMPEG
    • For MPEG movie cutscene playback (rarely used in scenarios)

Get the source (choose one)

Compile

  • If you downloaded from CVS, in the alephone directory, run:
sh autogen.sh

or if you downloaded a tarball, in the alephone directory, run:

./configure
  • Then type:
make

That's all there is to it!

Distro-specific notes

Ubuntu

  • Ubuntu does not install a compiler by default. The easiest way to fix this is to install the build-essentials package. Also, ensure you install package-dev as well as package when dealing with the requirements listed above so you have source as well as binaries
  • One user reported having to pass --build=i686-unknown-linux-gnu into ./configure to get it to build

Fedora

  • smpeg and libmad aren't available in the standard Fedora repository, because they play back mp3s. You can get them by enabling the Livna repository, by installing this RPM.
Personal tools