PDA

View Full Version : qtmain.lib and QtUiLoader.lib LGPL license question



dpatel
20th May 2010, 06:14
Hi,

I am creating an application which is not open source and want to use LGPL. But under LGPL it says that we cannot link to Qt libs statically. My application uses QtUiLoader and of-course qtmain. I tried to build these libs from source as shared libs but still it generates .lib files only (for others I see .dlls)
Does it mean that I cannot ship any non-open source application under LGPL since for widows I will need qtmain for every application. In case qtmain is an exception what can I do with QtUiLoader so that I don't have to make my application open source?

Thanks,

squidge
20th May 2010, 07:53
DLLs require .LIB files too, so you will always get them. The only difference is that the LIB file will be much smaller, as they will only be thunks rather than the actual code.

The only way to write non-open-source static code under Qt is to buy commercial license.

alokgovil
3rd April 2013, 09:27
@Squidge: If this were the case, what would be the point of the LGPL license at all?

I believe @dpatel has asked a very important question. Linking to Qt dynamically is straight-forward as such except for the said .lib files. It seems to me that these .lib files should be avoided by following the answer here [1] by ComicSansMS.

[1] http://stackoverflow.com/questions/9555375/qt-cmake-vc-produce-a-command-prompt

ChrisW67
3rd April 2013, 13:22
If you read the source for qtmain_win.cpp you will find it is released with a BSD licence.
http://qt.gitorious.org/qt/qt/blobs/4.8/src/winmain/qtmain_win.cpp