make clean doesn't delete moc files

David Faure faure at kde.org
Thu Feb 5 20:10:37 CET 2009


On Thursday 05 February 2009, Matthias Kretz wrote:
> BTW, deleting the moc files is not important to get a clean build. If you do a 
> make clean automoc will recreate all moc files, regardless of whether they 
> exist already.

Nope, that's not the case. Otherwise I wouldn't have asked for it ;)

-obelix- dfaure 20:09 /d/kde/build/t/kdebase/apps/lib/konq>make
makeobj[0]: Entering directory `/d/kde/build/t/kdebase/apps/lib/konq'
Clearing dependencies in "/d/kde/build/trunk/kdebase/apps/lib/konq/CMakeFiles/konq.dir/depend.make".                      
Scanning dependencies of target konq                                                                                      
[  0%] Building CXX object apps/lib/konq/CMakeFiles/konq.dir/konq_automoc.o                                               
In file included from /d/kde/build/trunk/kdebase/apps/lib/konq/konq_automoc.cpp:4:                                        
/d/kde/build/trunk/kdebase/apps/lib/konq/moc_konq_copytomenu_p.cpp:14:2: error: #error "This file was generated using the moc from 4.4.3. It"                                                                                                       
/d/kde/build/trunk/kdebase/apps/lib/konq/moc_konq_copytomenu_p.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt."                                                                                             
/d/kde/build/trunk/kdebase/apps/lib/konq/moc_konq_copytomenu_p.cpp:16:2: error: #error "(The moc has changed
[...]
make[2]: *** [apps/lib/konq/CMakeFiles/konq.dir/konq_automoc.o] Error 1                                                   
make[1]: *** [apps/lib/konq/CMakeFiles/konq.dir/all] Error 2                                                              
make: *** [all] Error 2                                                                                                   
makeobj[0]: Leaving directory `/d/kde/build/t/kdebase/apps/lib/konq'                                                      

-obelix- dfaure 20:09 /d/kde/build/t/kdebase/apps/lib/konq>make clean
makeobj[0]: Entering directory `/d/kde/build/t/kdebase/apps/lib/konq'
makeobj[0]: Leaving directory `/d/kde/build/t/kdebase/apps/lib/konq'

-obelix- dfaure 20:09 /d/kde/build/t/kdebase/apps/lib/konq>make
makeobj[0]: Entering directory `/d/kde/build/t/kdebase/apps/lib/konq'
[  0%] Built target konq_automoc
[  0%] Building CXX object apps/lib/konq/CMakeFiles/konq.dir/konq_automoc.o
In file included from /d/kde/build/trunk/kdebase/apps/lib/konq/konq_automoc.cpp:4:
/d/kde/build/trunk/kdebase/apps/lib/konq/moc_konq_copytomenu_p.cpp:14:2: error: #error "This file was generated using the moc from 4.4.3. It"
[...]

-- 
David Faure, faure at kde.org, sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Kde-buildsystem mailing list