[Interest] QTest unit tests can't find .moc files
Thomas Sevaldrud
thomas at silentwings.no
Fri Mar 14 09:02:41 CET 2014
Ah, that was it! I had one build config that built in-source. Thanks a lot
:-)
- Thomas
On Thu, Mar 13, 2014 at 11:54 PM, Thiago Macieira <thiago.macieira at intel.com
> wrote:
> 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
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140314/4953b36b/attachment.html>
More information about the Interest
mailing list