How to install SDL2 library in Fedora 20

lcsvcn picture lcsvcn · Oct 21, 2014 · Viewed 12k times · Source

There is a question about the SDL package (SDL 1.2) in Fedora in StackOverflow. But I can't found any about SDL2 in Fedora, and I am having troubles to install the SDL2 package.

I search and the command to install SDL2 in Fedora is:

sudo yum install SDL2*

But still having problems to found the #include "SDL2/SDL.h"..

After looking in usr/include/, I wasn't able to found the SDL.h...

So how can I install SDL2 package and make it work in Fedora 20 distro?

Answer

xgdgsc picture xgdgsc · Oct 27, 2014
sudo yum install SDL2-devel

You can search packages here: https://apps.fedoraproject.org/packages/SDL2-devel/