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

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


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/867b457d/attachment.html 


More information about the Qt-interest-old mailing list