problem with phonon-4.1 and cmake/FindG*.cmake

Ben Taylor bentaylor.solx86 at
Mon Nov 3 19:47:34 GMT 2008

On Mon, Nov 3, 2008 at 1:55 PM, Helio Chissini de Castro <helio at> wrote:
> I know is a bit confusing, but for KDE 4.1, you need to have phonon 4.2
> []'s
> On Quinta 30 Outubro 008 13:38:08 Ben Taylor wrote:
>> I am working on Solaris 10, and have a more recent version of glib2
>> and gstreamer compiled and working (both 32-bit and 64-bit)
>> When I try to build phonon-4.1, it appears that the FindG*.cmake files
>> use the proper PKG_CONFIG_PATH, and then rewrite it using the
>> system includes (which are really ancient).
>> I added some debugging to FindGLIB2.cmake and found this:
>> WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
>> Just set _LibGLIB2IncDir to value /opt/foss/include
>> Just set _LibGLIB2LinkDir to value /opt/foss/lib/amd64
>> Just set _LibGLIB2LinkFlags to value -L/opt/foss/lib/amd64 -lglib-2.0
>> -lintl -liconv
>> Just set _LibGLIB2Cflags to value -I/opt/foss/include/glib-2.0
>> -I/opt/foss/lib/amd64/glib-2.0/include
>> *** This is what I expect these values to be ****
>> Just set GLIB2_MAIN_INCLUDE_DIR to value /usr/include/glib-2.0
>> Just set GLIB2_LIBRARIES to value /usr/lib/
>> Just set glib2LibDir to value /usr/lib
>> Just set GLIB2_INTERNAL_INCLUDE_DIR to value /usr/lib/glib-2.0/include
>> Just set GLIB2_INCLUDE_DIR to value /usr/include/glib-2.0
>> Just set GLIB2_INCLUDE_DIR to value
>> /usr/include/glib-2.0/usr/lib/glib-2.0/include
>> Found GLIB2: /usr/lib/
>> Just set GLIB2 to value
>> Then FindGLIB2.cmake goes merrily rewriting the variables ignoring the
>> information from pkg-config and making my 64-bit build fail.
>> Anyone have a clue why cmake is ignoring the information pkg-config
>> provided?

Well,  as it turned out, by add NO_DEFAULT_PATH to several of the
find_path and find_library calls, in the various CMAKE files, I got a
successful build.



More information about the kde-multimedia mailing list