ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi. I was just wondering if anyone knew of a Linux SDL setup guide. I was just getting into SDL when I switched to Linux several weeks ago and all I can find are a bunch of Windows SDL setup guides.
Thanks.
basically just download either SDL 1.2 or... uh... whatever the other version is as source, ./configure, make, make install... you can also probably get it as an rpm on http://www.rpmfind.net
frozen bubble (http://www.frozen-bubble.org) is an open source game for example linux SDL code (I would assume it's basically the same as Windoze though).
Originally posted by Megaman X unconnected but..... hmmmm, your signature is from..... Mortal Kombat? I love that game...
Heh, yes! That quote from the Mortal Kombat 3 start up screen has always stuck with me after playing that game for countless hours as a kid.
Anyways, back on topic. Hmm, just download and install, huh? I did that already but I was wondering. Coming from a Windows background and all... Is that it? I had to go through a 30 minute process to enable SDL in my projects on Windows. How to I go about that on Linux?
add the SDL libary path to /etc/ld.so.conf if it is not already and make sure when you compile your code the dir with the SDL header files are included with the -I flag (IE: gcc -I/usr/local/sdl/include -o mysdlapp mysdlapp.c)
Beyond that you're out of the scope of my knowledge for C/C++. I understand the perl bindings for SDL are very good.
More or less . If you were choosing to code using DirectX it should be pretty simple. Even Visual Basic supports DirectX . But hey, you've done a great choice picking SDL . Portability always .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.