Results 1 to 3 of 3

Thread: Creating Static library with QT

  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Creating Static library with QT

    I know that one can create static library with QT that will be properly build on all supported platform. But I cannot find any documentation about the specifics or "howtos"

    May be you can point me to the docs somewhere that discuss this issue? Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Creating Static library with QT

    Query the docs for "staticlib".

  3. #3
    Join Date
    Oct 2008
    Posts
    37
    Thanked 2 Times in 2 Posts

    Default Re: Creating Static library with QT

    I've had a bit of experience with this recently...are you attempting to compile inside of an IDE or on the command line? I would recommend compiling from the command line if possible. Mostly so you can see what's going on.

    So if you're going to compile on the command line...the jist of the process is passing the -static flag to configure.exe or just configure on non-Windows systems. By default, configure will produce shared libraries. If you're using the recommended compiler for the platforms GCC for Mac/Linux and Visual C++ for Windows it should go pretty painlessly.

    I'm sure you know but passing the help flag into configure will give you all the options on the platform. Be careful though - not all the options are available on every platform. If you need examples of the configure command line - let me know.

    Hope it helps.

Similar Threads

  1. QMAKE: Building static library without -fPIC
    By rainman110 in forum Qt Programming
    Replies: 1
    Last Post: 2nd May 2012, 17:07
  2. Wrap a static QT library inside an XPCOM component ?
    By Paul_Xul in forum Qt Programming
    Replies: 2
    Last Post: 3rd August 2010, 08:16
  3. Compiling QCA as static library
    By NoRulez in forum Qt Programming
    Replies: 1
    Last Post: 7th December 2008, 18:32
  4. Replies: 16
    Last Post: 23rd May 2008, 11:12
  5. Please Help-->have few doubts with Static build in Windows !
    By Krish in forum Installation and Deployment
    Replies: 1
    Last Post: 17th March 2008, 15:37

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.