On Wed, Sep 07, 2011 at 01:41:53PM +0000, Jaco Naude wrote: > Hi All > > Just upgraded to latest Qt SDK with Qt Creator 2.3 and a project which build > previously stopped building all of a sudden. > > The problem is during compilation of the moc_ file. It stops with a bunch of > errors like this: > > ..\..\..\trunk\build\tmp\DesignCoreLib\moc_FileAssociationDatabaseDetailWidget.cpp:10:87: > error: > ../../../libraries/DesignCore/sources/FileAssociationDatabaseDetailWidget.h: > No such file or directory > > ..\..\..\trunk\build\tmp\DesignCoreLib\moc_FileAssociationDatabaseDetailWidget.cpp:12:2: > error: #error "The header file 'FileAssociationDatabaseDetailWidget.h' > doesn't include <QObject>." > > ..\..\..\trunk\build\tmp\DesignCoreLib\moc_FileAssociationDatabaseDetailWidget.cpp:20: > error: expected constructor, destructor, or type conversion before 'static' > > ..\..\..\trunk\build\tmp\DesignCoreLib\moc_FileAssociationDatabaseDetailWidget.cpp:46: > error: 'QMetaObject' does not name a type > > ..\..\..\trunk\build\tmp\DesignCoreLib\moc_FileAssociationDatabaseDetailWidget.cpp:55: > error: expected initializer before '*' token > > - That file is there. If I open the moc_ file in Creator I can Alt-Click on > it and it opens it. > - Also, it does include QObject. > > Something clearly goes wrong. I then re-installed Qt Creator 2.2.1 and set > my Qt version to 4.7.4 in the SDK install and everything works fine again. > > Any suggestions would be appreciated...
In "strange" cases like that, it often helps to re-built after removing all build artifacts, i.e. something like git's "git clean -dxf" (careful!), and in case of "shadow build" an "rm -rf" on the build directory. Andre' _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
