Trouble with glib2, pkg-config and cmake under Debian
Thiago Macieira
thiago at kde.org
Tue Aug 21 17:23:57 BST 2007
On Tuesday 21 August 2007 17:27:03 Andreas Pakulat wrote:
> > So when you want to compile your software you have to add both path
> > /usr/include/glib-2.0 _and_ /usr/lib/glib-2.0/include to the -I flag.
>
> Thats a glib-packaging bug in Debian, they obviously don't move that
> header but they should as headers don't belong under /usr/lib.
The file is in the right place.
This problem happens with D-Bus as well. Fortunately, we are not linking to it
directly.
"includedir" is "where include headers should be installed"
Querying variables was never part of the standard pkg-config use. You should
be using pkg-config --cflags-only-I to get the include dirs. The difference
is that you need some string-replacement magic to get rid of the "-I" that
are there: CMake wants a list of directories, not compiler flags.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070821/91b712b9/attachment.sig>
More information about the kde-core-devel
mailing list