[cfe-dev] Qt 4.7.3 moc and libc++
Stephen Kelly
steveire at gmail.com
Wed Sep 12 04:33:20 PDT 2012
Ashok Nalkund wrote:
> Hi All,
> I've compiled Qt 4.7.3 (yes, its an older version but 4.8 has a few
> issues) with clang + libc++. When I compile one of my resource files
> using Qt's moc, it reports:
>> ...x86_64-centos-linux-clang-libcxx/include/QtCore/QObjec:0: Warning: No
>> relevant classes found. No output generated.
>
> I traced it to the presence of libc++ include path in the compilation:
>
>> -Ix86_64-centos-linux-clang-libcxx/include
>
> which is the location of libc++ headers. If I remove that include path,
> moc works fine and generates the expected output.
>
> Has anybody seen this? I'm posting to the Qt's forums also to see if
> they know about this.
>
> thanks,
> ashok
This probably belongs on the Qt interest mailing list.
'Warning: No relevant classes found. No output generated.' is what you get
when you run moc on a file which has no Q_OBJECT macro. So try to find out
why that is happening.
It's more likely related to your buildsystem than your compiler.
Thanks,
Steve.
More information about the cfe-dev
mailing list