How To Install sdl12-compat-static on Fedora 36

In this tutorial we learn how to install sdl12-compat-static in Fedora 36. sdl12-compat-static is Static library to develop SDL 1.2 applications using SDL 2.0

title: “How To Install sdl12-compat-static on Fedora 36” linkTitle: “sdl12-compat-static” type: “docs” lastmod: “2022-08-17” #image: /images/fedora/36/sdl12-compat-static-featured.png description: “In this tutorial we learn how to install sdl12-compat-static in Fedora 36. sdl12-compat-static is Static library to develop SDL 1.2 applications using SDL 2.0”

Introduction

In this tutorial we learn how to install sdl12-compat-static on Fedora 36.

What is sdl12-compat-static

Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide fast access to the graphics frame buffer and audio device. This code is a compatibility layer; it provides a static link library for programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes. Note that applications that use this library will need to declare SDL2 as a dependency manually, as the library is dlopen()’d to preserve APIs between SDL-1.2 and SDL-2.0. If you are writing new code, please target SDL 2.0 directly and do not use this layer.

We can use yum or dnf to install sdl12-compat-static on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install sdl12-compat-static.

Install sdl12-compat-static on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install sdl12-compat-static using dnf by running the following command:

sudo dnf -y install sdl12-compat-static

Install sdl12-compat-static on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install sdl12-compat-static using yum by running the following command:

sudo yum -y install sdl12-compat-static

How To Uninstall sdl12-compat-static on Fedora 36

To uninstall only the sdl12-compat-static package we can use the following command:

sudo dnf remove sdl12-compat-static

sdl12-compat-static Package Contents on Fedora 36

/usr/lib64/libSDL.a
/usr/lib64/libSDLmain.a
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/sdl12-compat-static-featured.png
---

## Introduction

In this tutorial we learn how to install `sdl12-compat-static` on Fedora 36.

### What is `sdl12-compat-static`

> Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide fast access to the graphics frame buffer and audio device.  This code is a compatibility layer; it provides a static link library for programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes. Note that applications that use this library will need to declare SDL2 as a dependency manually, as the library is dlopen()'d to preserve APIs between SDL-1.2 and SDL-2.0.  If you are writing new code, please target SDL 2.0 directly and do not use this layer.  

We can use `yum` or `dnf` to install `sdl12-compat-static` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install sdl12-compat-static.

## Install sdl12-compat-static on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

After updating yum database, We can install sdl12-compat-static using dnf by running the following command:

sudo dnf -y install sdl12-compat-static

Install sdl12-compat-static on Fedora 36 Using yum



Update yum database with `yum` using the following command.
## References


```bash
* [sdl12-compat-static website](https://github.com/libsdl-org/sdl12-compat)
sudo yum makecache --refresh

Summary

After updating yum database, We can install sdl12-compat-static using yum by running the following command:

In this tutorial we learn how to install `sdl12-compat-static` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).

sudo yum -y install sdl12-compat-static

How To Uninstall sdl12-compat-static on Fedora 36

To uninstall only the sdl12-compat-static package we can use the following command:

sudo dnf remove sdl12-compat-static

sdl12-compat-static Package Contents on Fedora 36

/usr/lib/libSDL.a
/usr/lib/libSDLmain.a

References

Summary

In this tutorial we learn how to install sdl12-compat-static on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).