[kde-linux] cmake hell

Sylviane et Perry White spwhite at freesurf.ch
Wed Dec 19 17:51:45 UTC 2007


On Wednesday 19 December 2007 17:29, Dag Nygren wrote:
> 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
>
Hi Dag,

I had a small experience with Qt quite some time ago.
Normally I would have a xxx.pro file and apply qmake to it in order to 
generate a makefile suitable for Qt. That makefile would create the uic and 
moc files (IIRC, and that was for Qt 3). Then I used make (don't know if 
cmake also works).
So it is possible you didn't follow all the steps to have a working makefile 
or the one you were provided has a problem.
I would also expect that you have to install Qt-devel in order to compile Qt 
programs.

Perhaps you can get more advice from the list or Qt's archives. 
qt-interest at trolltech.com
List archive and information: http://lists.trolltech.com/qt-interest/

Good luck		Perry
-- 
BOFH excuse #313: your process is not ISO 9000 compliant



More information about the kde-linux mailing list