problem with moc when Qt built as framework

Thiago Macieira thiago at kde.org
Tue May 27 11:51:15 CEST 2008


On Tuesday 27 May 2008 01:00:01 Alexander Neundorf wrote:
> Let's say I have this header file foo.h:
>
> #include <QtCore/QObject>
>
> #ifdef Q_OS_UNIX
>
> class Foo:public QObject
> {

add here:
	Q_OBJECT

>    signals:
>       void fooChanged();
> };
>
> #endif
>
>
> Now if I run moc on a Mac on this, I get "No relevant classes found":
> $ moc -I/Library/Frameworks/QtCore.framework/Headers foo.h
>
> How do I do this so that it works, i.e. so that moc finds and reads
> <QObject> ?


-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20080527/a86a1d1e/attachment.pgp 


More information about the Kde-buildsystem mailing list