cmake 2.4.* does not create moc files in kdepimlibs

William A. Hoffman billlist at nycap.rr.com
Fri Aug 11 17:26:24 CEST 2006


At 11:00 AM 8/11/2006, Friedrich W. H. Kossebau wrote:
>Hi Bill,
>
>Am Freitag, 11. August 2006 15:05, schrieb William A. Hoffman:
>> The dashboard for kdelibs looks good:
>
>Yes, kdebase, kdeutils and kdelibs do fine for me. But kdepimlibs does not. 
>Brad Hards on irc reported the same problems for kdegraphics.
>
>> http://public.kitware.com/KDE/Testing/Dashboard/20060811-0100-Nightly/Dashb
>>oard.html
>>
>> Mingw is the only platform not building.  The error you are getting
>> usual comes from generated moc sources not being added to the target
>> they are used in (even if they are header files).
>
>With the help of Tobias König I managed to reduce the problem to the following 
>line in "MACRO (KDE4_AUTOMOC)" in KDE4Macros.cmake:
>      if (EXISTS ${_abs_FILE} AND NOT _skip)
>
>Usually EXISTS ${_abs_FILE} returns true and _skip is "NOTFOUND", like 
>debugging with message() tells.
>
>For whatever(!) reason in kdepimlibs the full expression returns false, in 
>kde{libs,base,utils} returns true for the same values!
>
>We are lost. What is happening here?


Add some message("looking for: [${_abs_FILE}] ") calls into the macro and re-run
cmake.  Maybe it will shed some light on the issue.

-Bill



More information about the Kde-buildsystem mailing list