No, the yuv_player_automoc.cpp file is not removed on a clean (nor are the other moc_*.cpp files). Having just modified ctrlBasic.cpp and ctrlBasic.h:<br><br>$ ls -ltr moc* ../ctrlMenu/ctrlBasic.*<br>-rwxr-xr-x+ 1 glenn.coombs Domain Users 4366 Apr 25 15:04 moc_ctrlBasic.cpp*<br>
-rwxr-xr-x+ 1 glenn.coombs Domain Users 11912 Apr 25 15:04 moc_ctrlmenu.cpp*<br>-rwxr-xr-x+ 1 glenn.coombs Domain Users 8203 Apr 25 15:04 moc_infoWin.cpp*<br>-rwxr-xr-x+ 1 glenn.coombs Domain Users 3508 Apr 25 15:04 moc_qglDisplay.cpp*<br>
-rwxr-xr-x+ 1 glenn.coombs Domain Users 6493 Apr 25 15:04 moc_qglMultiWindow.cpp*<br>-rwxr-xr-x+ 1 glenn.coombs Domain Users 2529 Apr 25 15:04 moc_qglWindow.cpp*<br>-rwxr-xr-x+ 1 glenn.coombs Domain Users 4242 Apr 25 15:04 moc_videoGeneric.cpp*<br>
-rwxr-xr-x+ 1 glenn.coombs Domain Users 8513 Apr 26 08:27 ../ctrlMenu/ctrlBasic.cpp*<br>-rwxr-xr-x+ 1 glenn.coombs Domain Users 1237 Apr 26 08:28 ../ctrlMenu/ctrlBasic.h*<br><br> I would expect the moc_ctrlBasic.cpp file to be regenerated but it isn't. In fact, if I manually delete moc_ctrlBasic.cpp then the build fails:<br>
<br>1>------ Build started: Project: yuv_player, Configuration: Debug Win32 ------<br>1> yuv_player_automoc.cpp<br>1>yuv_player_automoc.cpp(2): fatal error C1083: Cannot open include file: 'moc_ctrlBasic.cpp': No such file or directory<br>
<br>The only way to get moc_ctrlBasic.cpp regenerated that I have found so far is to manually delete both it and yuv_player_automoc.cpp.<br><br>--<br>Glenn<br><br><div class="gmail_quote">On 25 April 2013 21:23, Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thursday 25 April 2013, Glenn Coombs wrote:<br>
> Hi,<br>
><br>
> I have a Qt4 program that I'm working on and ran into an issue yesterday<br>
> with the automoc cpp files. I had added a new slot and connected a<br>
> comboxbox currentIndexChanged signal to it but when I ran the program I<br>
> could see messages on stdout complaining that my slot didn't exist. I<br>
> tracked the problem down to the fact that the moc_ctrlBasic.cpp file was<br>
> not being regenerated. If I look in my cmake build directory I currently<br>
> have 8 moc cpp files:<br>
><br>
> ./moc_ctrlBasic.cpp<br>
> ./moc_ctrlmenu.cpp<br>
> ./moc_infoWin.cpp<br>
> ./moc_qglDisplay.cpp<br>
> ./moc_qglMultiWindow.cpp<br>
> ./moc_qglWindow.cpp<br>
> ./moc_videoGeneric.cpp<br>
> ./yuv_player_automoc.cpp<br>
><br>
> I am using CMake 2.8.10.1 with Visual Studio 11 and when I do a clean<br>
> solution these 8 moc cpp files are not deleted.<br>
<br>
</div>That's ok so far.<br>
automoc should create a file yuv_player_automoc.cpp, and this file should be<br>
removed when you clean.<br>
Is that the case ?<br>
This missing file should then trigger a rerun of automoc.<br>
<br>
Alex<br>
</blockquote></div><br>