From kde-core-devel Tue Aug 21 15:43:41 2007 From: Hans Meine Date: Tue, 21 Aug 2007 15:43:41 +0000 To: kde-core-devel Subject: Re: Trouble with glib2, pkg-config and cmake under Debian Message-Id: <200708211743.41420.hans_meine () gmx ! net> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=118771107326179 Am Dienstag, 21. August 2007 17:27:03 schrieb Andreas Pakulat: > > The current libglib2.0-dev package contains nearly all header files > > under /usr/include/glib-2.0/ but the file glibconfig.h is located under > > /usr/lib/glib-2.0/include. Unfortunately, some header files from > > /usr/include/glib-2.0/ include the glibconfig.h by '#include > > '. > > > > 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. There are probably good reasons to put glibconfig.h there - hint: platform-dependent vs. platform-independent header files. This is the same with qmodules.h and qconfig.h - those should *not* be in $PREFIX/include. Otherwise, it becomes impossible to use --exec-prefix properly for installing software in a multi-platform NFS setup. > > 'includedir'? Shall we ask the Debian maintainer to place the > > glibconfig.h to /usr/include? > > The last thing is the right thing to do. I doubt that. I don't know what the "proper" solution is, but AFAICS, you *do* need two -I paths in CPPFLAGS. The only alternative solution I see is a platform-depend include directory with *all* files duplicated (possibly symlinked). Ciao, / / /--/ / / ANS