On Nov 14, 2007, at 11:30 PM, Yvan Barthélemy wrote:
Le 14 nov. 07 à 22:56, Benoit Sigoure a écrit :
I don't understand what you mean here. $(QT_CPPFLAGS) doesn't do
what you want? It contains all the -I's and -D's needed to
#include/use Qt headers.
No, for what I saw it only contains headers and libs for compiling
for the simple project written by the configure script. And it does
not link against all libraries in Qt include path (I might miss the
point since I didn't extensively tested it) and sets defines
accordingly (though in fact, defines are only for Trolltech
internal use).
Defines are required when qmake sets them.
Not sure if it automaticalally links against all of :
/opt/local/lib/libQt3Support.dylib
/opt/local/lib/libQtCore.dylib
/opt/local/lib/libQtGui.dylib
/opt/local/lib/libQtNetwork.dylib
/opt/local/lib/libQtOpenGL.dylib
/opt/local/lib/libQtScript.dylib
/opt/local/lib/libQtSql.dylib
/opt/local/lib/libQtSvg.dylib
/opt/local/lib/libQtTest.dylib
/opt/local/lib/libQtXml.dylib
The QT_LDFLAGS should give you the right -L flags so that all you
need to do is to use -lQtWhatever -or- you can tweak the .pro files
used to guess the flags to automatically get the libraries you need.