[kde-linux] cmake hell

Dag Nygren dag at newtech.fi
Wed Dec 19 16:29:55 UTC 2007


Hi,

Just trying to compile rc2 of KDE4 and really having a
h... with cmake.
I am not at all convinced that converting to cmake
was a very good idea.

The main problem seems to be a big lack of tracing
possibilities if (WHEN) something goes wrong and
cmake doesn't detect you package or feature.

At the moment I have the following:

bash-3.1$ cmakekde
-- Qt's moc NOT found!
-- Qt's uic NOT found!
CMake Error: Qt libraries, includes, moc, uic or/and rcc NOT found!
-- Configuring done
bash-3.1$     moc -v
Qt Meta Object Compiler version 59 (Qt 4.3.3)
bash-3.1$  uic -v
Qt User Interface Compiler version 4.3.3
bash-3.1$ rcc -v
Qt Resource Compiler version 4.3.3
bash-3.1$ 

With a decent trace ala "sh -x configure" it would be very easy to see
what wasn't found...

And don't tell me to check the CmakeFiles/*.log files, they tell me a lot of 
failed
tests, but not about the ones reported.

And it took me quite some time and an strace (!!) to find out that
some of my libraries "didn't exist" as the permissions on the include
directory was 750 , and not 755.

Any hints on how to trace cmake decision making are very welcome.

Best
Dag




More information about the kde-linux mailing list