Problem with detection of KDE version (why is $KDEDIR/bin/kde-config used?)

Alexander Neundorf neundorf at kde.org
Sat May 13 22:14:03 CEST 2006


Hi,

On Saturday 13 May 2006 20:22, Frank Osterfeld wrote:
> Hi,
>
> when I tried to configure kdepim after the latest snapshot update, I got
> the following error:
>
> ERROR: the installed kdelibs version 3.5.2 is too old, at least version
> 3.9.0 is required
>
> This is because the kde-config from my 3.5 installation is used instead of
> the one in the KDE4 path:
...
> For compiling, I use my main user running KDE 3.5, but with KDEDIRS, PATH
> and LD_LIBRARY_PATH set to my kdelibs4 snapshot installation. Well, I
> forgot to set KDEDIR accordingly, and that's the reason: CMake looks for
> KDE4_KDECONFIG_EXECUTABLE in $KDEDIR/bin. Setting KDEDIR to opt2/kde4 fixes
> the problem.
>
> Is this the intended behavior? 

Not really. But we have to live with this for the next weeks.

> Isn't KDEDIR deprecated? 

Yes.

> Could it just use the kde-config found in PATH, as it apparently does for
> the other executables? Note that my setup worked just fine before the latest
> snapshot update.

I'm not quite sure why it worked fine before the update.
Did you update cmake together with the snapshot ?
The behaviour changed here a bit.

In FindKDE4.cmake which comes with cmake, which is the one which searches 
FindKDE4Internal.cmake, in cmake 2.4.1 at first CMAKE_INSTALL_PREFIX, then 
KDEDIR and then some other dirs are searched.
In cmake 2.4.3 which will probably be the next we will require in some weeks, 
this will be corrected (it is already in the cmake 2.4 branch).

But since we require 2.4.1, please don't update to cmake cvs, since then you 
might introduce things which work only with current cmake cvs but not the 
version we rely on.

So, for now, either unset KDEDIR, or set KDEDIR to point to the KDE 4 
installation, or use -DCMAKE_INSTALL_PREFIX=<where_you_installed_kde4>.

All this should work.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list