Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-14-2006, 07:27 PM   #1
Senior Member
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
Qt tool for gcc flags

I have forgotten the name of some tool that can output the necessary flags for g++ to compile a qt program. That is, I can use it like this:
$ g++ -o output `someqttool --libdir --includedir` sources.cpp
I'm not sure if the correct flags were libdir and includedir but something like that. Can someone help me remember the name of it?

Old 01-14-2006, 08:01 PM   #2
Registered: Jul 2003
Distribution: OpenSuse 10, Debian
Posts: 152

Rep: Reputation: 30
Sorry, I can't remember off hand but personally I just use qmake. It really makes working with qt projects a breeze.

Old 01-14-2006, 11:26 PM   #3
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
pkg-config is the tool you were trying to remember:

Zackarya is right, however: qmake is probably your best bet.

Cheers .. PSM
Old 01-15-2006, 01:11 AM   #4
Senior Member
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
maybe qt-config ? or qtconfig

I thought i had used `qt-config --libs .... etc` before.. not sure though.. it does not seem to work now when i test..

regardless though .. i too have to second, well i guess third the motion to use qmake
Old 01-15-2006, 01:28 AM   #5
Senior Member
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Original Poster
Rep: Reputation: 49
Yes. While waiting for replies here I checked out qmake. It didn't work for me before but after I found out that my application was using Qt4 which forced me to use qmake-qt4 instead of just qmake I could finally enjoy using qmake. And it works great.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
flags for compiling Xlib.h in gcc Maidros Programming 2 06-15-2005 05:00 AM
GCC 3.4/3.3 Optimization Flags monohouse Linux - Software 0 10-28-2004 10:48 AM
gcc optimization flags: rules of thumb elyk Linux - Software 3 08-04-2004 11:49 PM
gcc Pentium3 flags in menuconfig Kristian2 Slackware - Installation 2 06-11-2004 09:49 AM
mplayer - wrong gcc flags crashmeister Linux - Software 2 11-19-2002 06:25 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration