Skip to content

Installation

Amir Hossein Seyhani edited this page Apr 12, 2018 · 14 revisions

In order to use RSDL you have to install SDL2 library on your system.

Mac OS users:

  1. Download the latest SDL2 development library dmg file from the SDL website (currently latest version is 2.0.6)

  2. Download SDL2_image development library from this page

  3. Download SDL2_ttf development library from this page

  4. Now open these dmg files and copy SDL2.framework,SDL2_ttf.framework and SDL2_image.framework files to /Library/Frameworks

Linux users:

  1. Make sure you have the following apt-get repo:‍ http://us.archive.ubuntu.com/ubuntu and your apt-get packages list is up to date.

1.1. Open your repos list with the following command:

   sudo nano /etc/apt/sources.list

1.2. Ensure that following line exists in the file, if it does not exists, add it to the file:

   deb http://us.archive.ubuntu.com/ubuntu trusty main universe

1.3. Update your apt-get packages list:

  sudo apt-get update
  1. Run command below to install SDL2, SDL2_image and SDL2_ttf packages

    sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev 
    
Clone this wiki locally