Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, March 2002
problems on MacOS X building qt app


Message 1 in thread

I've downloaded the 3.0.2 eval for MacOS X and am trying to build a qt app. I run into problems with
the first #include of qt.h. I get the following:

In file included from /Downloads/QtMacEval/include/qt.h:311,
                 from foo.cc:11:
/Downloads/QtMacEval/include/private/qaquastyle_p.h: In function `void qAquaPixmap(const QString &,
QPixmap &)':
/Downloads/QtMacEval/include/private/qaquastyle_p.h:12147: `QAquaStyle' undeclared (first use this
function)
/Downloads/QtMacEval/include/private/qaquastyle_p.h:12147: (Each undeclared identifier is reported
only once
/Downloads/QtMacEval/include/private/qaquastyle_p.h:12147: for each function it appears in.)
/Downloads/QtMacEval/include/private/qaquastyle_p.h:12147: parse error before `::'
/Downloads/QtMacEval/include/private/qaquastyle_p.h:12989: confused by earlier errors, bailing out

The error makes sense because QAquaStyle is defined in qaquastyle.h, which is #included by qt.h after
it #includes qaquastyle_p.h. If I reverse the order of the #includes, I get passed this problem, but
then have the following problem while compiling the file generated by moc:

In file included from moc_foo.cc:15:
/Downloads/QtMacEval/include/private/qucomextra_p.h:53: parse error before `{'
/Downloads/QtMacEval/include/private/qucomextra_p.h:55: non-member function `desc()' cannot have
`const' method qualifier
/Downloads/QtMacEval/include/private/qucomextra_p.h:60: type specifier omitted for parameter
/Downloads/QtMacEval/include/private/qucomextra_p.h:60: parse error before `*'
...

moc_foo.cc contains the following:

#undef QT_NO_COMPAT
#include "qt.h"
#include "QtComponentPeer.h"
#include <qmetaobject.h>
#include <qapplication.h>
#include <private/qucomextra_p.h>

This one I haven't tracked down yet, but I suspect QUType isn't being defined before gcc sees the
definition of QUType_QVariant.

Are these bugs or am I just going about this all wrong? BTW, I'm building with the Apple gcc-based
tools and I'm using the qplatformdefs.h for macx-g++. I'm not using qmake. If I'm doing something
really stupid, I apologize. This is my first experience with qt on any platform.

Chris