Where is sdl config




















After I read top answer above, I installed python-dev, libsdl-image1. Then I got Hunting dependencies SDL : found 1. This error showed up once again in Pygame SDL : found 2. Techno 31 6 6 bronze badges. Lorin Lorin 21 3 3 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete?

Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile. Linked 1. Related Hot Network Questions. Create a free Team What is Teams? Learn more. Why i get this error while installing graphics file and how can solve it? Ask Question. Asked 1 year, 1 month ago. Active 1 year, 1 month ago. Viewed times. Improve this question. N0rbert Divyaranjan Parida Divyaranjan Parida 11 1 1 bronze badge.

What is your Ubuntu version? Did you install the appropriate libsdl development package? Add a comment. Here's the explanation. Be gentle, report bugs , leave feedback on pages , or just edit them yourself!

How to install SDL varies depending on your platform. You will need to download the source code first for most of them, unless prebuilt binaries are available. SDL 1. Some of these installation instructions happen to work with 1. SDL 2. You are completely allowed to do that. You may not statically link SDL 1. SDL supports most popular flavors of Unix: Linux 2. Do you need to compile SDL yourself? It's possible your distribution's package manager already did it for you!

Debian-based systems including Ubuntu can simply do "sudo apt-get install libsdl Red Hat-based systems including Fedora can simply do "sudo yum install SDL2" to get the library installed system-wide, or "sudo yum install SDL2-devel" to get headers and other build requirements ready for compiling your own SDL programs.

You can change this to a different location with the --prefix option to the configure script. In fact, there are a LOT of good options you can use with configure! Be sure to check out its --help option for details. SDL tries to do the right thing by default, though, so you can usually get away with no options at all. A good rule of thumb for Linux is the number of cores plus two, so you use all the processing resources possible, and if a process or two is competing for the disk, those two extra jobs might be able to put the otherwise-idle CPU cores to work in the meantime so on a four-core system?

Try "make -j6". An experimental! It works on similar principles to the configure script, but you might find that you enjoy it more, if this is the sort of thing you generally enjoy in the first place. Driving that is left as an exercise for the reader. Once you have the library installed, you can use the sdl2-config program to help you compile your own code:. SDL on Unix should only link against the C runtime glibc. This means it is possible to build an SDL that has support for all sorts of targets built in, and it will examine the system at runtime to decide what should be used for example, if Xlib isn't available, it might try to load Wayland support, etc.

In that respect, if you plan to ship the SDL binary that you build, it is to your benefit to make sure your system has development headers for as many targets as possible, regardless of what you plan to personally use, so your final library is as robust as possible. SteamOS is literally a Linux system, and uses the same binaries you distribute to generic Linux Steam users, so generally speaking, all the other Linux advice applies.

The Steam Client will set up the dynamic loader path so that a known-good copy of SDL is available to any program that needs it before launching a game.

Steam provides both SDL 1. Link against SDL as normal, and expect it to be available on the player's system. This allows Valve to make fixes and improvements to their SDL and those fixes to flow on to your game. In fact, it's not a bad idea to just copy the SDL build out of the Steam Runtime if you plan to ship a Linux game for non-Steam platforms, too, since you know it's definitely built sanely.



0コメント

  • 1000 / 1000