🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

SDL lgpl

Started by
1 comment, last by Ronin Magus 21 years, 9 months ago
SDL is released under the LGPL license, right? I''ve read about the licensing on the SDL site but I just don''t have a very legal mind and it''s hard for me to understand all the requirements. Basically, my question is: Am I able to use SDL in a closed commercial project? What are the restrictions?
Advertisement
Yes. The restriction is that if you compile and link the code into your app, then your app counts as an "enhancement" of the code, and you''ve gotta make your source code available.

However, if SDL is compiled separately from your app (i.e. you use SDL.DLL), then your app is not considered an enhancement to the SDL code, and you can have your own code under an entirely different license, as you want to do.

In short, if you keep SDL in a DLL, you can keep your source closed and use it in a commercial product.

There was some question a while back about the SDL_Main.c file, which MUST be compiled into your own code, but the SDL folks have since made it clear that that particular file is an exception to their own license.

---
John Hattan
The Code Zone
Sweet software for a saturnine world

(my byline from the Gamedev Collection series, which I co-edited) John Hattan has been working steadily in the casual game-space since the TRS-80 days and professionally since 1990. After seeing his small-format games turned down for what turned out to be Tandy's last PC release, he took them independent, eventually releasing them as several discount game-packs through a couple of publishers. The packs are actually still available on store-shelves, although you'll need a keen eye to find them nowadays. He continues to work in the casual game-space as an independent developer, largely working on games in Flash for his website, The Code Zone (www.thecodezone.com). His current scheme is to distribute his games virally on various web-portals and widget platforms. In addition, John writes weekly product reviews and blogs (over ten years old) for www.gamedev.net from his home office where he lives with his wife and daughter in their home in the woods near Lake Grapevine in Texas.

The ''spirit'' behind the LGPL license is this: the library is free and open, therefore the user must be able to upgrade from the version you supply to a newer version, and more importantly, a newer version that they are able to compile from the source code. This means you have two basic obligations - firstly, make sure they can get the library source that you used freely and easily, and secondly make sure that, given the correct development tools, they are able to link your program with newer or modified versions of the library covered by the LGPL.

The license itself is a bit more detailed than that, but if you remember the above rules of thumb you should be ok.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files | My stuff ]

This topic is closed to new replies.

Advertisement