PHONON_INCLUDE_DIR in FindPhonon.cmake ignores $KDEDIR

Friedrich W. H. Kossebau kossebau at kde.org
Fri Apr 9 22:45:41 CEST 2010


Hi Alex,

Vendredi, le 9 avril 2010, à 21:46, vous avez écrit:
> On Friday 09 April 2010, Friedrich W. H. Kossebau wrote:
> > Hi,
> > 
> > TechBase [TB] teaches to install Phonon to $KDEDIR (!=$QTDIR). So I have
> > done. But I cannot get kdelibs to compile then, it only finds the system
> > one, which is an older one.
> > 
> > [TB]
> > http://techbase.kde.org/Getting_Started/Build/KDE4/Prerequisites#Phonon
> > 
> > FindPhonon.cmake uses
> > 
> > find_path(PHONON_INCLUDE_DIR NAMES phonon/phonon_export.h
> > 
> >   HINTS
> >   ${KDE4_INCLUDE_INSTALL_DIR}
> >   ${QT_INCLUDE_DIR}
> >   ${INCLUDE_INSTALL_DIR}
> >   ${QT_LIBRARY_DIR})
> > 
> > But both KDE4_INCLUDE_INSTALL_DIR and INCLUDE_INSTALL_DIR are empty at
> > this moment,
> > 
> > message(STATUS "${INCLUDE_INSTALL_DIR}###${KDE4_INCLUDE_INSTALL_DIR}")
> > 
> > gives only ###. What is wrong here? Why are both vars empty?
> 
> You could set CMAKE_PREFIX_PATH, this will be prefered over everything
> else. 

Not a prefered solution though, right?

> Maybe they are not set yet, because maybe FindQt4.cmake and
> FindKDE4.cmake have not yet been executed completely ?

FindKDE4Internal.cmake calls find_package( Phonon) but

################### try to find Phonon 
############################################

# we do this here instead of above together with the checks for Perl etc.
# since FindPhonon.cmake also uses ${KDE4_LIB_INSTALL_DIR} to check for 
Phonon,
# which helps with finding the phonon installed as part of kdesupport:
find_package(Phonon 4.3.80 ${_REQ_STRING_KDE4})

Well, ${KDE4_LIB_INSTALL_DIR} is not set, too, in boottrap mode. Because 
KDELibsDependencies.cmake is not generated yet, which seems the place where 
these vars are defined. And it is included only if not in boottrap mode, 
anyway:

else (_kdeBootStrapping)
  [...]
   # This file contains information about the installed kdelibs, Alex
   include(${kde_cmake_module_dir}/KDELibsDependencies.cmake)

Original-Quote that is ;)

If I looked corrently none of the vars from KDELibsDependencies.cmake are set 
in the if( _kdeBootStrapping) branch. Is this correct?
So this defeats the usage of ${KDE4_INCLUDE_INSTALL_DIR} and 
${KDE4_LIB_INSTALL_DIR} in FindPhonon.cmake actually.

If the solution would be to actually set at least these two vars in the 
boottrap branch, too, where would I get the actual values from?

Cheers
Friedrich
-- 
KDE Okteta - a simple hex editor - http://utils.kde.org/projects/okteta


More information about the Kde-buildsystem mailing list