cmake 2.4.* does not create moc files in kdepimlibs

Friedrich W. H. Kossebau Friedrich.W.H at kossebau.de
Fri Aug 11 22:55:21 CEST 2006


Taking the list back into address (sorry for not checking before):

Am Freitag, 11. August 2006 22:37, schrieb Alexander Neundorf:
> On Friday 11 August 2006 22:23, Friedrich W. H. Kossebau wrote:
> > Hi Alex,
>
> ...
>
> > and run cmake:
> > ---8< ---
> > --
> > file:
> > /home/koder/Programmieren/kdesvn/trunk/KDE/kdepimlibs/emailfunctions/emai
> >l. cpp skip: NOTFOUND
> > --
> > file:
> > /home/koder/Programmieren/kdesvn/trunk/KDE/kdepimlibs/kxmlrpcclient/serve
> >r. cpp skip: NOTFOUND
> > --
> > file:
> > /home/koder/Programmieren/kdesvn/trunk/KDE/kdepimlibs/kxmlrpcclient/query
> >.c pp skip: NOTFOUND
> > ---8< ---
> > and so on...
> >
> > But with e.g. kdeutils I get
> > ---8< ---
> > -- file: /home/koder/Programmieren/kdesvn/trunk/KDE/kdeutils/ark/main.cpp
> > skip: NOTFOUND
> > -- if condition meet.
> > -- file:
> > /home/koder/Programmieren/kdesvn/trunk/KDE/kdeutils/ark/arkapp.cpp skip:
> > NOTFOUND
> > -- if condition meet.
>
> Now this is really strange.
> Do you have symlinks in the path maybe ?

Not that I know of. No.

> Can you please try this:
>
>
>   message(STATUS "file: ${_abs_FILE} skip: ${_skip}")
>
>   if (EXISTS ${_abs_FILE} )
>      message(STATUS "file exists")
>   endif (EXISTS ${_abs_FILE})
>
>   if (NOT _skip)
>      message(STATUS "not skip")
>   endif (NOT _skip)
>
>   if (EXISTS ${_abs_FILE} AND NOT _skip)
>   message(STATUS "if condition meet.")

:) Tried before, and yes, both conditions are always met if used separatly.

Even worse, as written in the other email to Bill, after splitting the AND 
into two IFs the inner part is reached but cmake soon stops with an error 
with a wrong message:
--- 8< ---
CMake Error: Error in cmake code at
\nMissing Requirements:${_requirements}:180:
MESSAGE In the 
file "/home/koder/Programmieren/kdesvn/trunk/KDE/kdepimlibs/kxmlrpcclient/server.cpp" 
the moc file "server.moc" is included, 
but "/home/koder/Programmieren/kdesvn/trunk/KDE/kdepimlibs/kxmlrpcclient/server.h" 
doesn't exist.
Current CMake 
stack: /home/koder/Programmieren/kdesvn/trunk/KDE/kdepimlibs/kxmlrpcclient/CMakeLists.txt
--- 8< ---
"\nMissing Requirements:${_requirements}" is sometimes a different, random 
string. The line number 180 is not matching the line in svn due to a lot of 
debug messages and tests, was somewhere in the middle of the inner part of 
the ifs. 
And /home/koder/Programmieren/kdesvn/trunk/KDE/kdepimlibs/kxmlrpcclient/server.h 
does(!) exist.

But: no crash for kdelibs, kdebase, kdeutils, there it runs fine.

From what I see cmake 2.4.* itself has some broken inner state here. Perhaps 
someone could attach a a debugger to it? ;)

Regards
Friedrich


More information about the Kde-buildsystem mailing list