Results 1 to 4 of 4

Thread: Including a static library

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 86 Times in 81 Posts

    Default Re: Including a static library

    For include subdirs try with

    Qt Code:
    1. SUBPATH = $$system(ls include)
    2. for(d, SUBPATH):INCLUDEPATH += include/$$d
    To copy to clipboard, switch view to plain text mode 


    The correct syntax for libraries is

    Qt Code:
    1. LIBS += -L$$quote(mydir/lib) -lmesh
    To copy to clipboard, switch view to plain text mode 
    Last edited by mcosta; 5th May 2011 at 16:36. Reason: updated contents
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. Replies: 2
    Last Post: 19th February 2011, 11:26
  2. Problem including library (dllimport)
    By cae in forum Qt Programming
    Replies: 9
    Last Post: 28th May 2010, 06:53
  3. Using a static library
    By Cruz in forum Newbie
    Replies: 2
    Last Post: 26th January 2010, 17:00
  4. how to use static library in qt4?
    By hashb in forum Qt Programming
    Replies: 9
    Last Post: 28th October 2009, 12:46
  5. Static library?
    By shiranraviv in forum Qt Programming
    Replies: 4
    Last Post: 15th October 2009, 14:11

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.