problem with moc when Qt built as framework

Alexander Neundorf neundorf at
Tue May 27 01:00:01 CEST 2008


I don't know how to get moc to work on OSX as we want if Qt is built as 
frameworks (i.e. the Qt 4.4.0 dmg file from Trolltech ftp).

Let's say I have this header file foo.h:

#include <QtCore/QObject>

#ifdef Q_OS_UNIX

class Foo:public QObject
      void fooChanged();


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> ?


P.S. now since Leopard ktrace doesn't exist anymore, how do I check now what 
moc tries to do ?

More information about the Kde-buildsystem mailing list