Results 1 to 1 of 1

Thread: Static linkage of the library

  1. #1
    Join Date
    Jun 2010
    Qt products
    Unix/X11 Windows

    Default Static linkage of the library

    Hi everybody!
    I wonder how to link with the Qt standard dlls statically when I am building my own dll-library .
    I have now created the dll and need to deploy it. But I don't want to drag all the Qt system dlls together with mine.
    So I tryed to link it statically with the Qt native libs. I configuerd the copy of the Qt statically and tried to build the dll. This approach failed! What I only managed to do was to link applications statically (all dependencies were resolved inside the application) but when I just change the TEMPLATE from app to lib and point out the dll in CONFIG everything fails. I receive just a dll file with all the dependencies unresolved - just as I do with the dynamic version of the Qt library.
    Is this possible or not? (In Borland C++ Builder for example I just set one flag to move all its native content statically into the dynamic library being built).
    Last edited by Sergei Smirnov; 22nd June 2010 at 18:24.

Similar Threads

  1. Replies: 17
    Last Post: 26th January 2010, 20:21
  2. Using a static library
    By Cruz in forum Newbie
    Replies: 2
    Last Post: 26th January 2010, 17:00
  3. how to use static library in qt4?
    By hashb in forum Qt Programming
    Replies: 9
    Last Post: 28th October 2009, 12:46
  4. Static library?
    By shiranraviv in forum Qt Programming
    Replies: 4
    Last Post: 15th October 2009, 14:11
  5. LNK2005 Static library
    By TheGrimace in forum General Programming
    Replies: 7
    Last Post: 10th July 2007, 15:43


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.