sdl12-compat-1.2.72

#### Supplemental Linux® From Scratch - Version 13.0

### Chapter 7. Multimedia Libraries

- Prev

  rubberband-4.0.0

- Next

  Graphical Components

- Up
- Home

# sdl12-compat-1.2.72

## Introduction to sdl12-compat

This package provides an SDL-1.2 compatibility layer using SDL-2 as a backend that need it.

### Package Information

- Download: https://github.com/libsdl-org/sdl12-compat/archive/release-1.2.72/sdl12-compat-release-1.2.72.tar.gz

### SDL Dependencies

#### Required

CMake, GLU, and sdl2-compat

## Installation of sdl12-compat

Install sdl12-compat by running the following commands:

    mkdir build &&
    cd    build &&

    cmake -D CMAKE_INSTALL_PREFIX=/usr \
          -D CMAKE_BUILD_TYPE=RELEASE  \
          -D SDL12TESTS=OFF            \
          -W no-dev -G Ninja .. &&
    ninja

Now, as the `root` user:

    ninja install &&
    rm -vf /usr/lib/libSDLmain.a

## Command Explanations

`-D SDL12TESTS=OFF`: This parameter disables building several tests.

## Contents

Installed Program: sdl-config
Installed Libraries: libSDL
Installed Directories: /usr/include/SDL

### Short Descriptions

sdl-config | determines the compile and linker flags that should be used to compile and link programs that use `libSDL`
`libSDL` | contains functions that provide compatibility for SDL 1.2

- Prev

  rubberband-4.0.0

- Next

  Graphical Components

- Up
- Home