Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Compliling and running QT and third party libraries.on Linux

Posted on 2011-03-06
1
Medium Priority
?
356 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

704 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