[Qt-interest] problems with moc: Warning: No relevant classes found. No output generated.

G. Allegri giohappy at gmail.com
Mon Apr 19 10:51:38 CEST 2010


Ops, sorry, it works now.
But I have another related question: if I have a file which includes headers
with QObjects declarations, should it be "moced"? In other words, is a
not-moced translation unit able to link to a QObjects lib (referred into its
header files)?

thanks again,
giovanni

2010/4/19 G. Allegri <giohappy at gmail.com>

> Hi.
> I'm trying to compile my very first plugin for a qt based application
> (QGis).
> The base file is http://pastebin.com/Vbj0QEmx
>
> As you can see, it includes the application headers (which is made of
> various QObjects), and the plugin is a Q_OBJECT itself.
> The cmake configure has generated the moc_*.cxx_parameters files (like this
> http://pastebin.com/y00VFyk9), but when I run moc.exe manually I get the
> following result:
>
> "Warning: No relevant classes found. No output generated"
>
> I wonder what is happening.
> I'm new to Qt, so I would need a help to understand why moc doesn't find
> "relevant classes" even if a Q_OBJECT is there in my header...
>
> thank a lot,
> giovanni
>
> PS: I'm working with VS 2008, CMake 2.8 and Qt 4.6.2 on Windows XP.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100419/704715b7/attachment.html 


More information about the Qt-interest-old mailing list