QtMMDAIのmakeでエラーが出たけどどうすればいいか分からない。とりあえずここにメモしておく。

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I/usr/include -I/usr/local/include -I/usr/include/bullet -I/usr/local/include/bullet -I/usr/X11R6/include -I. -o main.o main.cc
In file included from main.cc:49:0:
QMAWindow.h:60:74: error: ISO C++ forbids declaration of ‘QApplication’ with no type
QMAWindow.h:61:97: error: ISO C++ forbids declaration of ‘QApplication’ with no type
QMAWindow.h: In constructor ‘QMAApplication::QMAApplication(int&, char**)’:
QMAWindow.h:56:46: error: class ‘QMAApplication’ does not have any field named ‘QApplication’
QMAWindow.h:56:69: error: no matching function for call to ‘QApplication::QApplication()’
/usr/include/qt4/QtGui/qapplication.h:378:5: note: candidates are: QApplication::QApplication(const QApplication&)
/usr/include/qt4/QtGui/qapplication.h:131:5: note:                 QApplication::QApplication(Display*, int&, char**, Qt::HANDLE, Qt::HANDLE, int)
/usr/include/qt4/QtGui/qapplication.h:130:5: note:                 QApplication::QApplication(Display*, Qt::HANDLE, Qt::HANDLE, int)
/usr/include/qt4/QtGui/qapplication.h:128:5: note:                 QApplication::QApplication(int&, char**, QApplication::Type, int)
/usr/include/qt4/QtGui/qapplication.h:127:5: note:                 QApplication::QApplication(int&, char**, bool, int)
/usr/include/qt4/QtGui/qapplication.h:126:5: note:                 QApplication::QApplication(int&, char**, int)
QMAWindow.h: In constructor ‘QMAApplication::QMAApplication(int&, char**, bool)’:
QMAWindow.h:57:63: error: class ‘QMAApplication’ does not have any field named ‘QApplication’
QMAWindow.h:57:98: error: no matching function for call to ‘QApplication::QApplication()’
/usr/include/qt4/QtGui/qapplication.h:378:5: note: candidates are: QApplication::QApplication(const QApplication&)
/usr/include/qt4/QtGui/qapplication.h:131:5: note:                 QApplication::QApplication(Display*, int&, char**, Qt::HANDLE, Qt::HANDLE, int)
/usr/include/qt4/QtGui/qapplication.h:130:5: note:                 QApplication::QApplication(Display*, Qt::HANDLE, Qt::HANDLE, int)
/usr/include/qt4/QtGui/qapplication.h:128:5: note:                 QApplication::QApplication(int&, char**, QApplication::Type, int)
/usr/include/qt4/QtGui/qapplication.h:127:5: note:                 QApplication::QApplication(int&, char**, bool, int)
/usr/include/qt4/QtGui/qapplication.h:126:5: note:                 QApplication::QApplication(int&, char**, int)
QMAWindow.h: In constructor ‘QMAApplication::QMAApplication(int&, char**, QApplication::Type)’:
QMAWindow.h:58:57: error: class ‘QMAApplication’ does not have any field named ‘QApplication’
QMAWindow.h:58:86: error: no matching function for call to ‘QApplication::QApplication()’
/usr/include/qt4/QtGui/qapplication.h:378:5: note: candidates are: QApplication::QApplication(const QApplication&)
/usr/include/qt4/QtGui/qapplication.h:131:5: note:                 QApplication::QApplication(Display*, int&, char**, Qt::HANDLE, Qt::HANDLE, int)
/usr/include/qt4/QtGui/qapplication.h:130:5: note:                 QApplication::QApplication(Display*, Qt::HANDLE, Qt::HANDLE, int)
/usr/include/qt4/QtGui/qapplication.h:128:5: note:                 QApplication::QApplication(int&, char**, QApplication::Type, int)
/usr/include/qt4/QtGui/qapplication.h:127:5: note:                 QApplication::QApplication(int&, char**, bool, int)
/usr/include/qt4/QtGui/qapplication.h:126:5: note:                 QApplication::QApplication(int&, char**, int)
QMAWindow.h: In member function ‘int QMAApplication::QApplication(Display*, Qt::HANDLE, Qt::HANDLE)’:
QMAWindow.h:60:78: error: only constructors take base initializers
QMAWindow.h:60:78: error: class ‘QMAApplication’ does not have any field named ‘QApplication’
QMAWindow.h:60:111: warning: no return statement in function returning non-void
QMAWindow.h: In member function ‘int QMAApplication::QApplication(Display*, int&, char**, Qt::HANDLE, Qt::HANDLE)’:
QMAWindow.h:61:101: error: only constructors take base initializers
QMAWindow.h:61:101: error: class ‘QMAApplication’ does not have any field named ‘QApplication’
In file included from main.cc:49:0:
QMAWindow.h:61:146: warning: no return statement in function returning non-void
make: *** [main.o] エラー 1