kde and moc files
neundorf at kde.org
Mon May 12 22:10:59 BST 2008
On Monday 12 May 2008, Michael Jansen wrote:
> On Monday 12 May 2008 14:04:09 Alexander Neundorf wrote:
> > Which module is it ?
> > I couldn't reproduce the problem with kdepimlibs.
> > Alex
> It would have helped if you answered my question :
Matthias did most of the automoc work, so he can answer better...
Anyway, which version of cmake are you using ?
> I checked somewhere yesterday and found in build.make dependency rules for
> .moc files. Is this correct? Do they belong there? Because now i'm unable
> to find thode dependencies anywhere.
> But i can reproduce with kdepimlibs.
> [ kde4dev @ xavier ][ None ][ 15:14:13 ][
> ~/build/src/kde/trunk/kdepimlibs/kblog ] [ bash : 1016 ] $ ll blogger1.*
> -rw-r--r-- 1 kde4dev users 17101 2008-05-09 18:13 blogger1.cpp
> -rw-r--r-- 1 kde4dev users 6439 2008-01-27 18:01 blogger1.h
> [ kde4dev @ xavier ][ None ][ 15:14:17 ][
> ~/build/src/kde/trunk/kdepimlibs/kblog ] [ bash : 1017 ] $ touch blogger1.*
> [ kde4dev @ xavier ][ None ][ 15:14:31 ][
> ~/build/src/kde/trunk/kdepimlibs/kblog ] [ bash : 1019 ] $ pushd +1
> ~/build/kde/trunk/kdepimlibs/kblog ~/build/src/kde/trunk/kdepimlibs/kblog
> [ kde4dev @ xavier ][ None ][ 15:14:39 ][
> ~/build/kde/trunk/kdepimlibs/kblog ] [ bash : 1019 ] $ make verbose=1
> Linking CXX shared library ../lib/libkpimutils.so
> Linking CXX shared library ../lib/libkcal.so
> Scanning dependencies of target kblog
> [ 0%] Building CXX object kblog/CMakeFiles/kblog.dir/blogger1.o
> [ 2%] Building CXX object kblog/CMakeFiles/kblog.dir/metaweblog.o
> [ 2%] Building CXX object kblog/CMakeFiles/kblog.dir/movabletype.o
> [ 2%] Building CXX object kblog/CMakeFiles/kblog.dir/wordpressbuggy.o
Hmm, works for me, both with cmake 2.4.5 and current cvs HEAD, after touching
hammer:~/src/kde4-svn/build dir/kdepimlibs-cmake-24/kblog$ make
[ 9%] Built target kmime
[ 9%] Built target kxmlrpcclient
[ 34%] Built target syndication
[ 34%] Built target ical-headers
[ 40%] Built target kresources
[ 46%] Built target kldap
[ 62%] Built target kabc
[ 65%] Built target kpimutils
[ 96%] Built target kcal
[ 96%] Generating kblog_automoc.cpp
Scanning dependencies of target kblog
[ 96%] Building CXX object kblog/CMakeFiles/kblog.dir/kblog_automoc.o
[ 96%] Building CXX object kblog/CMakeFiles/kblog.dir/blogger1.o
[100%] Building CXX object kblog/CMakeFiles/kblog.dir/metaweblog.o
[100%] Building CXX object kblog/CMakeFiles/kblog.dir/movabletype.o
[100%] Building CXX object kblog/CMakeFiles/kblog.dir/wordpressbuggy.o
Ahh, this was a fresh build with cmake 2.4.5 and kdesupport-automoc. Before I
already tested a kdelibs-automoc/cmake 2.6 build with kdesupport-automoc
enabled later on. This worked too.
Can you please describe the exact steps (which built with what and what was
changed then) ?
More information about the kde-core-devel