Hello.
I'm using Qt4.6.3 and Qt Creator 2.0.0.
If I try to compile an animation example e.g. appchooser or states I'll get the message 'No such file or directory'
How can I solve this problem?
Hello.
I'm using Qt4.6.3 and Qt Creator 2.0.0.
If I try to compile an animation example e.g. appchooser or states I'll get the message 'No such file or directory'
How can I solve this problem?
If a moc file is missing, rerun qmake and it should work. (Maybe you also need to clean the directory)
I'm having the same problem. I selected 'Clean Project' in the Build menu, and then 'Run qmake', and I get the same problem. It's builds about 1/2 of the project and then says 'main.moc: No such file or directory'. I can see that there is: '#include "main.moc"' at the end of main.cpp. I can also find the mile in my build directory. So I know that it must just be a directory name mistake. By the way, I am running on a Windows 7 64 bit, and using Qt Creator 2.0.1, Qt 4.7.0 (32 bit).
are you sure you need the explicit include of the moc file in main.cpp? Normally you don't need it. Try without.
How does your files look like?
I found the "main.moc" file, kind of by accident. It was located at "C:\Qt\2010.01\qt\examples\animation\animatedtiles ". I copied the file into the "animated tiles" example. Did a "Clean All", qmake, then a run. It worked fine.
-- Mike
Bookmarks