LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-14-2006, 08:27 PM   #1
Ephracis
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?

Thanks.
 
Old 01-14-2006, 09:01 PM   #2
zackarya
Member
 
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.

Zack
 
Old 01-15-2006, 12:26 AM   #3
paulsm4
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:

http://pkgconfig.freedesktop.org/wiki/

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

Cheers .. PSM
 
Old 01-15-2006, 02:11 AM   #4
xhi
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, 02:28 AM   #5
Ephracis
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.
 
  


Reply


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 06:00 AM
GCC 3.4/3.3 Optimization Flags monohouse Linux - Software 0 10-28-2004 11:48 AM
gcc optimization flags: rules of thumb elyk Linux - Software 3 08-05-2004 12:49 AM
gcc Pentium3 flags in menuconfig Kristian2 Slackware - Installation 2 06-11-2004 10:49 AM
mplayer - wrong gcc flags crashmeister Linux - Software 2 11-19-2002 07:25 AM


All times are GMT -5. The time now is 12:24 AM.

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