[Qt-interest] How should sources in subdir be compiled?

Kārlis Repsons k at 11.lv
Mon Mar 29 14:06:59 CEST 2010


On Monday 29 March 2010 08:53:25 Kārlis Repsons wrote:
> And silly enough the same trouble comes back: "make: *** No rule to make
> target `build/MainWindow.moc', needed by `MainWindow.o'.  Stop." What else
>  is not right?

Well, after building a minimal example and experimenting with it I found:

* with cmake it worked well, but
* with qmake I had to remove #include "MainWindow.moc" from MainWindow.cpp.

Now it works in that level :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100329/9c7369db/attachment.bin 


More information about the Qt-interest-old mailing list