Jump to content
  • Advertisement
Sign in to follow this  
Khan2007

No DLL in SDL

This topic is 3038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
It would be possible if you compiled it yourself as a static library. However, as SDL seems to be licensed under the LGPL, distributing a program linking statically to SDL would be a violation of the license as you need to offer the possibility to use another (newer) version of SDL with your program.

Share this post


Link to post
Share on other sites
Quote:
Original post by BitMaster
It would be possible if you compiled it yourself as a static library. However, as SDL seems to be licensed under the LGPL, distributing a program linking statically to SDL would be a violation of the license as you need to offer the possibility to use another (newer) version of SDL with your program.


This seems to be the general consensus, but after reading the license I came to the conclusion you may statically link the _official_ unmodified SDL sources, as those source are ready for download at SDL's site. In case of modified sources, you must also publish the SDL sources and you modifications in it.

I bet I'm wrong with the above unfortunately, as so many people state what BitMaster said...

Share this post


Link to post
Share on other sites
Quote:
by Wikipedia on LGPL
Essentially, if it is a "work that uses the library", then it must be possible for the software to be linked with a newer version of the LGPL-covered program. The most commonly used method for doing so is to use "a suitable shared library mechanism for linking". Alternatively, a statically linked library is allowed if either source code or linkable object files are provided.


There are certainly higher authorities around than Wikipedia but since this pretty much covers everything I have read in the past on that issue, I'll leave uncovering dissenting opinions to others.

Share this post


Link to post
Share on other sites
Quote:
Original post by Decrius
Quote:
Original post by BitMaster
It would be possible if you compiled it yourself as a static library. However, as SDL seems to be licensed under the LGPL, distributing a program linking statically to SDL would be a violation of the license as you need to offer the possibility to use another (newer) version of SDL with your program.


This seems to be the general consensus, but after reading the license I came to the conclusion you may statically link the _official_ unmodified SDL sources, as those source are ready for download at SDL's site. In case of modified sources, you must also publish the SDL sources and you modifications in it.

I bet I'm wrong with the above unfortunately, as so many people state what BitMaster said...


The end user must be able to modify/update the LGPL parts, static linking is fine if you release linkable object files or sourcecode (so that the user can rebuild everything with a modified SDL library) but it is really way too much hassle compared to using dynamic linking.

Share this post


Link to post
Share on other sites
Quote:
Original post by SimonForsman
The end user must be able to modify/update the LGPL parts, static linking is fine if you release linkable object files or sourcecode (so that the user can rebuild everything with a modified SDL library) but it is really way too much hassle compared to using dynamic linking.


Yes, that's what I remember too. But if you _don't_ modify the SDL sources, it means they can just grab it from the internet and adding the sources would be redundant...

Share this post


Link to post
Share on other sites
You might not modify the SDL sources, but by the GPL, the end user needs to be able to modify the GPL'd code that resides in your program.

Because of this, you need to provide YOUR source code so they can recompile with the modified GPL code, or you need to dynamically link so they can create new DLL's and drop them in.

Basically, the GPL part of your game (SDL) needs to be modifiable by the user one way or another.

Dynamically linking is the commonest way to fulfill this because you don't need to give out your source.

hope that helps clear it up...

[Edited by - Atrix256 on August 24, 2010 5:22:09 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!