How to install the SDL libraries.

You will need the SDL and SDL_image libraries for building doraemon.

  1. Install the SDL library.

    Download the SDL libary from here: http://www.libsdl.org/

    Navigate to the directory where you downloaded the SDL library, for example:

    bash#  cd /eleague/src/SDL
    

    Modify the file in this directory called configure as follows:
    Find the lines that read:

      exec_prefix=NONE
      prefix=NONE
    
    These should both be changed to point to the directory in which you want to install the SDL library. For our example, we are installing into /eleague, so we change the configure script to read:
      exec_prefix=/eleague
      prefix=/eleague
    

    Next, configure the installation by running:
    bash# ./configure --disable-video-directfb
    
    Note: Without the "--disable-video-directfb", it tries to use something called pgk-config to install something related to video-directfb (whatever that is) and it seems that we don't have pkg-config installed...
    The correct paths should now be set in the Makefile and its subdirectories, so you can simply run:
    bash# make
    bash# make install
    

    SDL should now be installed in the directory specified in the configure script.

  2. Install the SDL_image library.

    Download the SDL_image libary from here: http://www.libsdl.org/projects/SDL_image

    Navigate to the directory where you downloaded the SDL_image library, for example:

    bash#  cd /eleague/src/SDL_image
    
    As with the SDL library, modify the file in this directory called configure as follows:
    Find the lines that read:
      exec_prefix=NONE
      prefix=NONE
      SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
    
    The first two should be changed to point to the directory in which you want to install the SDL_image library. SDL_CONFIG should be modified to point to the directory where you want the sdl-config directory to reside. For our example, we are installing into /eleague, so we change the configure script to read:
     exec_prefix=/eleague
     prefix=/eleague
     SDL_CONFIG=/eleague/bin/sdl-config
    
    Next, configure the installation by running:
    bash# ./configure
    
    The correct paths should now be set in the Makefile and its subdirectories, so you can simply run:
    
    bash# make
    bash# make install
    
    The SDL_image library should now be installed in the directory specified in the configure script.

back to eleague howto page