You are not logged in.

#1 2008-01-20 10:27:08

Emess
Member
From: Tokyo, Japan
Registered: 2008-01-20
Posts: 21

[SOLVED] IceMC Building

Hey, after installing IceWM I realised I had to configure it and attempted to install IceCC from the AUR, which then wanted IceMC. I have all the dependencies for it, but it fails to build, looking like some kind of error with Qt, any help is appreciated. Here's what happens when  I attempt to build:

[matt@Misuzu ~]$ makepkg
==> Making package: icemc 2.1-1  (Sun Jan 20 19:08:12 WST 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found icemc-2.1.tar.bz2 in build dir
==> Validating source files with md5sums...
    icemc-2.1.tar.bz2 ... Passed
==> Extracting Sources...
  -> bsdtar -x -f icemc-2.1.tar.bz2
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -D_REENTRANT -Wall -W -DVERSION="2.1" -DPREFIX="/usr/local" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -I. -I. -o icemc.o icemc.cpp
icemc.cpp:24:20: error: qaccel.h: No such file or directory
In file included from icemc.cpp:27:
icemc.h:22:18: error: qapp.h: No such file or directory
icemc.h:26:24: error: qpopupmenu.h: No such file or directory
icemc.h:33:21: error: qmsgbox.h: No such file or directory
In file included from icemc.cpp:28:
qcentralwidget.h:24:19: error: qdict.h: No such file or directory
qcentralwidget.h:25:25: error: qvaluestack.h: No such file or directory
In file included from icemc.cpp:27:
icemc.h:101: error: ISO C++ forbids declaration of 'QPopupMenu' with no type
icemc.h:101: error: expected ';' before '*' token
icemc.h:103: error: ISO C++ forbids declaration of 'QPopupMenu' with no type
icemc.h:103: error: expected ';' before '*' token
icemc.h:105: error: ISO C++ forbids declaration of 'QPopupMenu' with no type
icemc.h:105: error: expected ';' before '*' token
icemc.h:107: error: ISO C++ forbids declaration of 'QPopupMenu' with no type
icemc.h:107: error: expected ';' before '*' token
In file included from icemc.cpp:28:
qcentralwidget.h:42: error: expected class-name before '{' token
qcentralwidget.h: In constructor 'IceListViewItem::IceListViewItem(IceListViewItem*, IceListViewItem*, QString, QString, QString, QString, QString, QString, QString, QString)':
qcentralwidget.h:49: error: class 'IceListViewItem' does not have any field named 'QListViewItem'
qcentralwidget.h: In constructor 'IceListViewItem::IceListViewItem(QListView*, QString, QString, QString, QString, QString, QString, QString, QString)':
qcentralwidget.h:58: error: class 'IceListViewItem' does not have any field named 'QListViewItem'
qcentralwidget.h: At global scope:
qcentralwidget.h:192: error: ISO C++ forbids declaration of 'QDict' with no type
qcentralwidget.h:192: error: expected ';' before '<' token
qcentralwidget.h:197: error: ISO C++ forbids declaration of 'QValueStack' with no type
qcentralwidget.h:197: error: expected ';' before '<' token
qcentralwidget.h:249: error: 'QListViewItem' has not been declared
qcentralwidget.h: In member function 'void QCentralWidget::loadMainMenuFromFile(QString&)':
qcentralwidget.h:291: error: 'stEditedFiles' was not declared in this scope
qcentralwidget.h: In member function 'void QCentralWidget::saveMenuAs(QString&)':
qcentralwidget.h:299: error: 'stEditedFiles' was not declared in this scope
icemc.cpp: In constructor 'IcemcApp::IcemcApp()':
icemc.cpp:39: error: expected `)' before numeric constant
icemc.cpp:49: error: 'homeDirPath' is not a member of 'QDir'
icemc.cpp:54: error: 'qApp' was not declared in this scope
icemc.cpp:59: error: 'setCaption' was not declared in this scope
icemc.cpp:62: error: 'class QAction' has no member named 'setOn'
icemc.cpp:63: error: 'class QAction' has no member named 'setOn'
icemc.cpp: In member function 'void IcemcApp::initActions()':
icemc.cpp:79: error: 'QAccel' has not been declared
icemc.cpp:85: error: 'QAccel' has not been declared
icemc.cpp:90: error: no matching function for call to 'QAction::QAction(QString, QString, int, IcemcApp* const)'
/usr/include/QtGui/qaction.h:206: note: candidates are: QAction::QAction(const QAction&)
/usr/include/QtGui/qaction.h:182: note:                 QAction::QAction(QActionPrivate&, QObject*)
/usr/include/QtGui/qaction.h:85: note:                 QAction::QAction(const QIcon&, const QString&, QObject*)
/usr/include/QtGui/qaction.h:84: note:                 QAction::QAction(const QString&, QObject*)
/usr/include/QtGui/qaction.h:83: note:                 QAction::QAction(QObject*)
icemc.cpp:96: error: 'QAccel' has not been declared
icemc.cpp:102: error: 'QAccel' has not been declared
icemc.cpp:108: error: 'QAccel' has not been declared
icemc.cpp:114: error: 'QAccel' has not been declared
icemc.cpp:120: error: 'QAccel' has not been declared
icemc.cpp:125: error: no matching function for call to 'QAction::QAction(QString, QString, int, IcemcApp* const, int, bool)'
/usr/include/QtGui/qaction.h:206: note: candidates are: QAction::QAction(const QAction&)
/usr/include/QtGui/qaction.h:182: note:                 QAction::QAction(QActionPrivate&, QObject*)
/usr/include/QtGui/qaction.h:85: note:                 QAction::QAction(const QIcon&, const QString&, QObject*)
/usr/include/QtGui/qaction.h:84: note:                 QAction::QAction(const QString&, QObject*)
/usr/include/QtGui/qaction.h:83: note:                 QAction::QAction(QObject*)
icemc.cpp:130: error: no matching function for call to 'QAction::QAction(QString, QString, int, IcemcApp* const, int, bool)'
/usr/include/QtGui/qaction.h:206: note: candidates are: QAction::QAction(const QAction&)
/usr/include/QtGui/qaction.h:182: note:                 QAction::QAction(QActionPrivate&, QObject*)
/usr/include/QtGui/qaction.h:85: note:                 QAction::QAction(const QIcon&, const QString&, QObject*)
/usr/include/QtGui/qaction.h:84: note:                 QAction::QAction(const QString&, QObject*)
/usr/include/QtGui/qaction.h:83: note:                 QAction::QAction(QObject*)
icemc.cpp:135: error: no matching function for call to 'QAction::QAction(QString, QString, int, IcemcApp* const)'
/usr/include/QtGui/qaction.h:206: note: candidates are: QAction::QAction(const QAction&)
/usr/include/QtGui/qaction.h:182: note:                 QAction::QAction(QActionPrivate&, QObject*)
/usr/include/QtGui/qaction.h:85: note:                 QAction::QAction(const QIcon&, const QString&, QObject*)
/usr/include/QtGui/qaction.h:84: note:                 QAction::QAction(const QString&, QObject*)
/usr/include/QtGui/qaction.h:83: note:                 QAction::QAction(QObject*)
icemc.cpp: In member function 'void IcemcApp::initMenuBar()':
icemc.cpp:148: error: 'fileMenu' was not declared in this scope
icemc.cpp:148: error: expected type-specifier before 'QPopupMenu'
icemc.cpp:148: error: expected `;' before 'QPopupMenu'
icemc.cpp:149: error: 'class QAction' has no member named 'addTo'
icemc.cpp:151: error: 'class QAction' has no member named 'addTo'
icemc.cpp:152: error: 'class QAction' has no member named 'addTo'
icemc.cpp:154: error: 'class QAction' has no member named 'addTo'
icemc.cpp:156: error: 'class QAction' has no member named 'addTo'
icemc.cpp:158: error: 'editMenu' was not declared in this scope
icemc.cpp:158: error: expected type-specifier before 'QPopupMenu'
icemc.cpp:158: error: expected `;' before 'QPopupMenu'
icemc.cpp:159: error: 'class QAction' has no member named 'addTo'
icemc.cpp:160: error: 'class QAction' has no member named 'addTo'
icemc.cpp:161: error: 'class QAction' has no member named 'addTo'
icemc.cpp:165: error: 'viewMenu' was not declared in this scope
icemc.cpp:165: error: expected type-specifier before 'QPopupMenu'
icemc.cpp:165: error: expected `;' before 'QPopupMenu'
icemc.cpp:167: error: 'class QAction' has no member named 'addTo'
icemc.cpp:168: error: 'class QAction' has no member named 'addTo'
icemc.cpp:172: error: 'helpMenu' was not declared in this scope
icemc.cpp:172: error: expected type-specifier before 'QPopupMenu'
icemc.cpp:172: error: expected `;' before 'QPopupMenu'
icemc.cpp:173: error: 'class QAction' has no member named 'addTo'
icemc.cpp:177: error: 'class QMenuBar' has no member named 'insertItem'
icemc.cpp:178: error: 'class QMenuBar' has no member named 'insertItem'
icemc.cpp:179: error: 'class QMenuBar' has no member named 'insertItem'
icemc.cpp:180: error: no matching function for call to 'QMenuBar::insertSeparator()'
/usr/include/QtGui/qmenubar.h:78: note: candidates are: QAction* QMenuBar::insertSeparator(QAction*)
icemc.cpp:181: error: 'class QMenuBar' has no member named 'insertItem'
icemc.cpp: In member function 'void IcemcApp::initToolBar()':
icemc.cpp:188: error: no matching function for call to 'QToolBar::QToolBar(IcemcApp* const, const char [16])'
/usr/include/QtGui/qtoolbar.h:159: note: candidates are: QToolBar::QToolBar(const QToolBar&)
/usr/include/QtGui/qtoolbar.h:76: note:                 QToolBar::QToolBar(QWidget*)
/usr/include/QtGui/qtoolbar.h:75: note:                 QToolBar::QToolBar(const QString&, QWidget*)
icemc.cpp:189: error: 'class QAction' has no member named 'addTo'
icemc.cpp:190: error: 'class QAction' has no member named 'addTo'
icemc.cpp:191: error: 'class QAction' has no member named 'addTo'
icemc.cpp:193: error: 'class QAction' has no member named 'addTo'
icemc.cpp:194: error: 'class QAction' has no member named 'addTo'
icemc.cpp:195: error: 'class QAction' has no member named 'addTo'
icemc.cpp:197: error: 'whatsThisButton' is not a member of 'QWhatsThis'
icemc.cpp:199: error: 'class QAction' has no member named 'addTo'
icemc.cpp: In member function 'void IcemcApp::slotFileOpen()':
icemc.cpp:208: error: 'class QStatusBar' has no member named 'message'
icemc.cpp:210: error: no matching function for call to 'QFileDialog::getOpenFileName(QString&, int, IcemcApp* const)'
/usr/include/QtGui/qfiledialog.h:172: note: candidates are: static QString QFileDialog::getOpenFileName(QWidget*, const QString&, const QString&, const QString&, QString*, QFlags<QFileDialog::Option>)
icemc.cpp:213: error: 'setCaption' was not declared in this scope
icemc.cpp:216: error: 'class QStatusBar' has no member named 'message'
icemc.cpp:222: error: 'class QStatusBar' has no member named 'message'
icemc.cpp: In member function 'void IcemcApp::slotFileSave()':
icemc.cpp:228: error: 'class QStatusBar' has no member named 'message'
icemc.cpp:232: error: 'setCaption' was not declared in this scope
icemc.cpp:238: error: 'class QStatusBar' has no member named 'message'
icemc.cpp: In member function 'void IcemcApp::slotFileSaveAs()':
icemc.cpp:243: error: 'class QStatusBar' has no member named 'message'
icemc.cpp:244: error: no matching function for call to 'QFileDialog::getSaveFileName(QString&, int, IcemcApp* const)'
/usr/include/QtGui/qfiledialog.h:179: note: candidates are: static QString QFileDialog::getSaveFileName(QWidget*, const QString&, const QString&, const QString&, QString*, QFlags<QFileDialog::Option>)
icemc.cpp:248: error: 'setCaption' was not declared in this scope
icemc.cpp:253: error: 'class QStatusBar' has no member named 'message'
icemc.cpp:255: error: 'class QStatusBar' has no member named 'message'
icemc.cpp: In member function 'void IcemcApp::slotFileQuit()':
icemc.cpp:260: error: 'class QStatusBar' has no member named 'message'
icemc.cpp:264: error: 'qApp' was not declared in this scope
icemc.cpp:265: error: 'class QStatusBar' has no member named 'message'
icemc.cpp: In member function 'void IcemcApp::slotViewToolBar(bool)':
icemc.cpp:270: error: 'class QStatusBar' has no member named 'message'
icemc.cpp:283: error: 'class QStatusBar' has no member named 'message'
icemc.cpp: In member function 'void IcemcApp::slotViewStatusBar(bool)':
icemc.cpp:288: error: 'class QStatusBar' has no member named 'message'
icemc.cpp:301: error: 'class QStatusBar' has no member named 'message'
icemc.cpp: In member function 'void IcemcApp::slotHelpAbout()':
icemc.cpp:307: error: expected `)' before numeric constant
icemc.cpp: In member function 'void IcemcApp::contentChanged()':
icemc.cpp:324: error: 'setCaption' was not declared in this scope
icemc.cpp: In member function 'void IcemcApp::menuFileChanged(const QString&)':
icemc.cpp:336: error: 'setCaption' was not declared in this scope
make: *** [icemc.o] Error 1
==> ERROR: Build Failed.
    Aborting...
[matt@Misuzu ~]$

Apologies for the large paste.

E~http://a240.ac-images.myspacecdn.com/images01/83/l_6582617c1dd5972f777eccc7c723750f.jpg

Last edited by Emess (2008-01-21 07:39:37)

Offline

#2 2008-01-20 19:46:50

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [SOLVED] IceMC Building

Do you have qt3 installed?

Offline

#3 2008-01-21 02:04:41

Emess
Member
From: Tokyo, Japan
Registered: 2008-01-20
Posts: 21

Re: [SOLVED] IceMC Building

Yes, I do. I finally sorted out the problem, and that was that the PKGBUILD was pointed at qt, which for me was using qt4. After editing it, I still had compile errors because the source was old, but after some patching it all works and I'm happily in IceWM.

Thanks,
E~

Offline

Board footer

Powered by FluxBB