FindQt4.cmake

Benjamin Reed rangerrick at befunk.com
Wed Feb 1 20:42:27 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Kümmel wrote:

> It seems include/Qt intend is only to provide the qt3 way of including things:
> #include "qstring.h", all in one directory (qstring.h is also in QtCore).
> 
> We could drop this folder if we add all(?) of the Qt... folders to the include path.

The correct fix is to include the header as you're supposed to:

  #include <QtCore/QtGlobal>

The reason it makes a difference is that on UNIX, this gets turned into:

  #include </path/to/qtdir/include/QtCore/QtGlobal>

...but on Mac OS X, it gets turned into:

  #include </Library/Frameworks/QtCore.framework/Headers/QtGlobal>


On OSX, frameworks are a special kind of container for an API that
includes the headers and libraries.  The preprocessor knows how to find
things inside these folders.

The best way to reliably be sure everything works everywhere is to do it
the recommended way.  :)

- --
Benjamin Reed a.k.a. Ranger Rick
http://ranger.befunk.com/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD4Q8iUu+jZtP2Zf4RAoz9AJ9ujvBVqvHGN/wIEa7odRI4HZf9ZACeJAdi
ReolssafFbAlHSvxQTK1HGA=
=7ngt
-----END PGP SIGNATURE-----


More information about the Kde-buildsystem mailing list