On Thursday 25 April 2013, Glenn Coombs wrote: > Hi, > > I have a Qt4 program that I'm working on and ran into an issue yesterday > with the automoc cpp files. I had added a new slot and connected a > comboxbox currentIndexChanged signal to it but when I ran the program I > could see messages on stdout complaining that my slot didn't exist. I > tracked the problem down to the fact that the moc_ctrlBasic.cpp file was > not being regenerated. If I look in my cmake build directory I currently > have 8 moc cpp files: > > ./moc_ctrlBasic.cpp > ./moc_ctrlmenu.cpp > ./moc_infoWin.cpp > ./moc_qglDisplay.cpp > ./moc_qglMultiWindow.cpp > ./moc_qglWindow.cpp > ./moc_videoGeneric.cpp > ./yuv_player_automoc.cpp > > I am using CMake 2.8.10.1 with Visual Studio 11 and when I do a clean > solution these 8 moc cpp files are not deleted.
That's ok so far. automoc should create a file yuv_player_automoc.cpp, and this file should be removed when you clean. Is that the case ? This missing file should then trigger a rerun of automoc. Alex -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake