Results 1 to 4 of 4

Thread: qtmain.lib and QtUiLoader.lib LGPL license question

  1. #1
    Join Date
    Feb 2010
    Posts
    99
    Thanks
    31
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default qtmain.lib and QtUiLoader.lib LGPL license question

    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,

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qtmain.lib and QtUiLoader.lib LGPL license question

    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.

  3. #3
    Join Date
    Apr 2013
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: qtmain.lib and QtUiLoader.lib LGPL license question

    @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/9...command-prompt

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: qtmain.lib and QtUiLoader.lib LGPL license question

    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/...qtmain_win.cpp

Similar Threads

  1. lgpl license and commercial software..
    By tgreaves in forum Newbie
    Replies: 10
    Last Post: 7th January 2013, 13:52
  2. LGPL License is sufficient or not for the below scenario
    By khan in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd April 2010, 11:33
  3. Commercial license vs LGPL license
    By JovianGhost in forum Installation and Deployment
    Replies: 4
    Last Post: 5th April 2010, 03:16
  4. Replies: 1
    Last Post: 21st May 2009, 22:26
  5. Is this true, Qt lgpl license..
    By tgreaves in forum General Discussion
    Replies: 5
    Last Post: 8th March 2009, 11:34

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.