=Objectives and Overview= ---- This page describes how to install SDL for compiling dvc on Linux or Windows. [[toc]] ==Windows== ---- * Visit the SDL download page: http://www.libsdl.org/download-1.2.php * Download the win32 development library suitable for your version of Visual Studio * Unzip the archive and you will have a folder named //SDL-1.x.x// Next you have two options for installing SDL. You only need to do **one** of the following: # Rename the folder //SDL-1.x.x// to //SDL// and place it into the DVC source tree in the //libraries// folder. Your directory tree will look like this: //dvc\libraries\SDL//. # Place the //SDL-1.x.x// folder anywhere in your file system and set an envrionment variable named **SDLDIR** to indicate where the folder may be found. For example, **SDLDIR=**C:\SDL-1.2.13. Here are [[http://support.microsoft.com/kb/310519| instructions for setting environment variables in Windows]]. At runtime DVC applications need to find SDL.dll. This file is located at SDL\lib\SDL.dll. Copy this dll to a folder that is in your system's search path. The easiest way to accomplish this is to copy SDL.dll to C:\WINDOWS\system32. ==Linux== ---- Most likely you can use your system's package manager to install SDL development libraries. For example, on Ubuntu you can type: [[code]] sudo apt-get install libsdl1.2-dev [[code]] Otherwise, install SDL from source. Download source code at http://www.libsdl.org/download-1.2.php