kde and moc files

Michael Jansen kde at michael-jansen.biz
Mon May 12 14:20:01 BST 2008


On Monday 12 May 2008 14:04:09 Alexander Neundorf wrote:
> On Monday 12 May 2008, you wrote:
> > On Monday 12 May 2008 11:29:34 Alexander Neundorf wrote:
> > > On Monday 12 May 2008, Michael Jansen wrote:
> > > > Hi
> > > >
> > > > It looks like cmake doesn't generate dependency rules for moc files
> > > > anymore. They should be in build.cmake afaik.
> > > >
> > > > I and some others on irc had to make clean and completely rebuild a
> > > > modules just because of changes that required a regeneration of one moc
> > > > file. That's not pretty :-)
> > > >
> > > > Someone and idea why that doesn't work anymore? I'm on kdesupport
> > > > automoc4 btw. . The others too afaict.
> > >
> > > I guess because of moving automoc to kdesupport.
> > >
> > > So what did you exactly do ?
> > >
> > > You had a module != kdelibs with an existing build tree, then updated and
> > > installed kdesupport, the updated and installed kdelibs, and then
> > > continued to work on your module ?
> >
> > I'm using kdesvn-build. kdesupport configured to be manually build. I've
> > done that yesterday. kdelibs was just rebuild with kdesvn-build. I can't
> > tell you if it picked up automac4 then because i made a kdesvn-build
> > --reconfigure after experiencing these problems. Now it get's the new
> > automoc4 from kdesupport but it still doesn't generate those .moc
> > depencies.
> 
> Which module is it ?
> I couldn't reproduce the problem with kdepimlibs.
> 
> Alex

It would have helped if you answered my question :

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
In file included from /home/kde4dev/build/src/kde/trunk/kdepimlibs/kblog/wordpressbuggy.cpp:23:
/home/kde4dev/build/src/kde/trunk/kdepimlibs/kblog/blogger1_p.h:49: warning: ‘virtual void KBlog::Blogger1Private::slotCreatePost(const QList<QVariant>&, const QVariant&)’ was hidden
/home/kde4dev/build/src/kde/trunk/kdepimlibs/kblog/wordpressbuggy_p.h:52: warning:   by ‘virtual void KBlog::WordpressBuggyPrivate::slotCreatePost(KJob*)’
/home/kde4dev/build/src/kde/trunk/kdepimlibs/kblog/blogger1_p.h:50: warning: ‘virtual void KBlog::Blogger1Private::slotModifyPost(const QList<QVariant>&, const QVariant&)’ was hidden
/home/kde4dev/build/src/kde/trunk/kdepimlibs/kblog/wordpressbuggy_p.h:54: warning:   by ‘virtual void KBlog::WordpressBuggyPrivate::slotModifyPost(KJob*)’
Linking CXX shared library ../lib/libkblog.so

[ kde4dev @ xavier ][ None ][ 15:15:00 ][ ~/build/kde/trunk/kdepimlibs/kblog ]
[ bash : 1019 ] $ ll blogger1.moc
-rw-r--r-- 1 kde4dev users 4850 2008-05-04 18:19 blogger1.moc



Mike

-- 
Michael Jansen
Available for contract work ( Development / Configuration Management )
http://www.michael-jansen.biz




More information about the kde-core-devel mailing list