How To Install mingw32-sdl12-compat on Fedora 36

In this tutorial we learn how to install mingw32-sdl12-compat in Fedora 36. mingw32-sdl12-compat is MinGW 32-bit Windows port of SDL 1.2 compatibility library using SDL 2.0

Introduction

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

What is mingw32-sdl12-compat

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 binary-compatible API for Windows 32-bit programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes. 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 mingw32-sdl12-compat on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mingw32-sdl12-compat.

Install mingw32-sdl12-compat 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 mingw32-sdl12-compat using dnf by running the following command:

sudo dnf -y install mingw32-sdl12-compat

Install mingw32-sdl12-compat 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 mingw32-sdl12-compat using yum by running the following command:

sudo yum -y install mingw32-sdl12-compat

How To Uninstall mingw32-sdl12-compat on Fedora 36

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

sudo dnf remove mingw32-sdl12-compat

mingw32-sdl12-compat Package Contents on Fedora 36

/usr/i686-w64-mingw32/sys-root/mingw/bin/SDL.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/sdl-config
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_active.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_audio.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_byteorder.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_cdrom.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_config.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_copying.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_cpuinfo.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_endian.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_error.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_events.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_getenv.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_joystick.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_keyboard.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_keysym.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_loadso.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_main.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_mouse.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_mutex.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_name.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_opengl.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_platform.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_quit.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_rwops.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_stdinc.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_syswm.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_thread.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_timer.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_types.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_version.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/SDL_video.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/begin_code.h
/usr/i686-w64-mingw32/sys-root/mingw/include/SDL/close_code.h
/usr/i686-w64-mingw32/sys-root/mingw/lib/libSDL.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libSDLmain.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/sdl12_compat.pc
/usr/share/doc/mingw32-sdl12-compat
/usr/share/doc/mingw32-sdl12-compat/BUGS.txt
/usr/share/doc/mingw32-sdl12-compat/README.md
/usr/share/licenses/mingw32-sdl12-compat
/usr/share/licenses/mingw32-sdl12-compat/LICENSE.txt

References

Summary

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