Em qui 13 mar 2014, às 22:25:16, Thomas Sevaldrud escreveu: > Hi, > > I've a very strange problem with my QTest unit tests. I use the QTest > project wizard from Qt Creator and end up with a class that includes a moc > file at the bottom of the source just like in the QTest documentation > examples, typically something like this: > > debug\tst_foo.moc: C:\Qt\5.2.1\msvc2010_opengl\include\QtCore\QString \
> <path to source tree>\tst_foo.moc \ > In the cases where it works, the .moc file is not in the dependency list > > I really can't see what triggers this, it seems completely random. Some > times it happens, other times it doesn't.... > > Any ideas? The source tree should not have a tst_foo.moc file. Please make sure that your source tree is absolutely clean, with no extra files, then run qmake again. Hint: git clean -x -d -f and then always use out-of-source builds. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
