For an open source project, is it legal and acceptable to link to commercial libraries?

For example, an open source application I'm involved in would benefit from using commercial 3rd party user interface library.

  • 2
    It depends on the license of your program only. – zneak Feb 13 '11 at 15:29

Although legality might be something to consider, the bigger question here is related to practicality and usefulness (and, as you said, acceptability).

If you release your product as open source, but no one can use it without purchasing some commercial libraries, how useful is your product going to be? Unless your target audience already has this commercial library installed for some other purpose, I highly doubt that they would buy it just to use your application.

So legality aside, I don't think potential users will consider this acceptable behavior.

  • 2
    +1, but with a proviso. You could say "potential users won't buy a commercial operating system just to..." for example, but there are many open source products available for Windows, because so many people do already have that operating system. Depending on the context, the same might apply to a commercial library that is supplied with some very common commercial product. I expect there's open source tools for Microsoft Office, for example, though I very much doubt GPL ones. Just for a GUI library, though, I don't think so. There's good quality open ones anyway. – Steve314 Feb 13 '11 at 16:15

A lot depends on the specific license - GPL v3 in particular is very strict, whereas BSD is extremely permissive.

GPL is an interesting case. There's specific terms about binary linking intended to prevent people creating an "open source" application that's dependent on a closed plugin for essential functionality. The terms can be interpreted quite broadly, irrespective of their original intent. I've argued elsewhere, for example, that every application can be considered a plugin relative to the operating system based on the description given in the GPL FAQ (data structure sharing etc) - hosting an application on Windows might (in a paranoid frame of mind) just about be considered a violation of the terms of the GPL, even though there are many GPL applications available for Windows.


It matters a great deal what you mean by "involved in" the application. Open source licenses don't restrict the copyright holders, they restrict what others who want to copy and distribute it can do.

It also matters what the commercial license is, and whether you hold the copyright on that or not.

Bottom line, if you hold both copyrights, no problem. If you hold neither copyright, most likely a problem unless the license terms of both are very generous. If you hold only one copyright, it's going to depend on the details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.