cmake 2.4.* does not create moc files in kdepimlibs

Alexander Neundorf neundorf at kde.org
Fri Aug 11 23:09:05 CEST 2006


On Friday 11 August 2006 22:55, Friedrich W. H. Kossebau wrote:
> 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/em
> > >ai l. cpp skip: NOTFOUND
> > > --
> > > file:
> > > /home/koder/Programmieren/kdesvn/trunk/KDE/kdepimlibs/kxmlrpcclient/ser
> > >ve r. cpp skip: NOTFOUND
> > > --
> > > file:
> > > /home/koder/Programmieren/kdesvn/trunk/KDE/kdepimlibs/kxmlrpcclient/que
> > >ry .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/CMakeLi
>sts.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? ;)

It might have to do with some escaping, so that some variable is not escaped 
correctly and gets interpreted as cmake command or something like this.

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