Solved

Compliling and running QT and third party libraries.on Linux

Posted on 2011-03-06
1
344 Views
Last Modified: 2012-05-11
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
:

[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.


--------------------------
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 }

Open in new window

0
Comment
Question by:arjoshi77
1 Comment
 

Accepted Solution

by:
arjoshi77 earned 0 total points
Comment Utility
i found the solution mysekf. Thankd for reading.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now