Results 1 to 3 of 3

Thread: Using a static library

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Using a static library

    you just add this to your .pro file:

    for windows:
    LIBS += path/to/your/lib/libnewmat.a

    for unix:

    LIBS += -L/usr/local/lib -lnewmat

    Make sure you put that new lib in /usr/local/lib for the example above.

    I find it useful to do the following command on the final executable:

    ldd ./mynewapp

    this will give you a list of all libs the app needs and whether it was able to find them all.

  2. The following user says thank you to schnitzel for this useful post:

    Cruz (9th February 2010)

Similar Threads

  1. how to use static library in qt4?
    By hashb in forum Qt Programming
    Replies: 9
    Last Post: 28th October 2009, 12:46
  2. Static library?
    By shiranraviv in forum Qt Programming
    Replies: 4
    Last Post: 15th October 2009, 14:11
  3. Using a Win32 static library
    By jacky in forum Qt Programming
    Replies: 2
    Last Post: 15th April 2009, 04:39
  4. Creating Static library with QT
    By QPlace in forum Qt Programming
    Replies: 2
    Last Post: 21st December 2008, 04:50
  5. Compiling QCA as static library
    By NoRulez in forum Qt Programming
    Replies: 1
    Last Post: 7th December 2008, 17:32

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
  •  
Qt is a trademark of The Qt Company.