Results 1 to 2 of 2

Thread: compiling QT with third party libraries

  1. #1
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    2

    Default Re: compiling QT with third party libraries

    Hello from a newbie to QT. I have been reading a text that shows me the way to compile and run QT programs using the following steps given that I have a simple helloworld file
    --------------------------
    hello.cpp
    ----------------------------

    1 #include <QApplication>
    2 #include <QLabel>
    3 int main(int argc, char *argv[])
    4 {
    5 QApplication app(argc, argv);
    6 QLabel *label = new QLabel("Hello Qt!");
    7 label->show();
    8 return app.exec();
    9 }
    ----------------------------


    [1] qmake -project
    [2] qmake hello.pro
    [3] make
    [4] ./hello.


    All this is fine and I understand this. But what if I have a yet another third party library that I am using in my application ...say for example the Boost library. WHere am I to specify the include dir (using -I option) and the library dir (using the -Loption) for Boost ??? I am at a loss and editing the Makefile generated by Qmake gives me the shivers because I dont know where to insert what. Any help would be appreciated.


    Added after 29 minutes:


    I found the solution myself. Thanks for reading
    Last edited by arjoshi; 6th March 2011 at 15:35.

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: compiling QT with third party libraries

    In your .pro file.

Similar Threads

  1. Your favourite/recommended third-party libraries
    By agarny in forum General Discussion
    Replies: 4
    Last Post: 27th January 2011, 11:38
  2. Linux vs Windows 3rd party libraries
    By skepticalgeek in forum Newbie
    Replies: 4
    Last Post: 9th August 2010, 01:23
  3. macdeployqt and third party libraries
    By calumcjr in forum Installation and Deployment
    Replies: 0
    Last Post: 10th May 2010, 21:20
  4. Linking Third party Libraries
    By jsmith in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2009, 06:18
  5. Using third-party libraries in qt
    By apj in forum Newbie
    Replies: 1
    Last Post: 15th May 2009, 22:27

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.