Results 1 to 2 of 2

Thread: Linking Third party Libraries

  1. #1
    Join Date
    Apr 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Cool Linking Third party Libraries

    Hi,
    I am using Qt creator and I have to include .h and lib files provided by third party. Now i am including these file paths in Makefile. But problem is every time i have to include them in Make file. Suppose i dont want to include them manually. Is there any provision to do automatically including these paths in Makefile.

    Please help me.
    Thanks in advance.

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Linking Third party Libraries

    Quote Originally Posted by jsmith View Post
    Is there any provision to do automatically including these paths in Makefile.
    Yes.
    You should not do anything in makefiles, use .pro files instead. You need to set paths and all in .pro file and when you run the qmake, make files will be generated with given options.
    Your .pro file should look like this:

    INCLUDEPATH += 3rd/Party/Lib/Path/Headers
    LIBS += -L3rd/Party/Lib/Path
    LIBS += -l3rdPartyLib1 -l3rdPartyLib2

Similar Threads

  1. Problem when linking with own static libraries
    By herveT in forum Qt Programming
    Replies: 4
    Last Post: 6th May 2009, 08:23
  2. Replies: 0
    Last Post: 2nd March 2009, 12:49
  3. Link errors when linking chained libraries on windows
    By darkadept in forum Qt Programming
    Replies: 5
    Last Post: 26th May 2008, 14:52
  4. Qt 3.3 libraries
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st December 2006, 17:25
  5. linking libraries
    By JustaStudent in forum Newbie
    Replies: 29
    Last Post: 2nd May 2006, 08:30

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.