PDA

View Full Version : Problem with Qt Unit Test



rubikon
24th November 2011, 08:56
Hello.

I can't compile a Qt Unit Test Project which was created by the wizard (Qt 4.7.3 / Windows - MinGW 4.4 - QtCreator 2.2).

If I hit the run button I get the message:



[debug/tst_Qtest03Test.moc] Error 1
file not found


What is the problem?

Spitfire
24th November 2011, 09:51
The problem is that the Qtest03Test.moc file was not found - simples :)

And seriously - clear the project and run qmake, most of the time it fixes problems with missing *.moc files.

rubikon
24th November 2011, 11:32
And seriously - clear the project and run qmake, most of the time it fixes problems with missing *.moc files.

Unfortunately not :(

It still doesn't work.

cristeab
25th November 2011, 09:18
Could you post an example with what you are trying to do ?