Menu

#5 can't compile on Archlinux

open
nobody
None
5
2009-07-05
2009-07-05
Eric F.
No

Archlinux, like many linux distributions, provides kde4/qt4 by default. I have qt3 installed though, in /opt/
After changing the makefile to point INCPATH to /opt/qt/include, I got this:

g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I/opt/qt/include -I. -o agiplay.o agiplay.cpp
In file included from /opt/qt/include/qmultilineedit.h:42,
from preview.h:36,
from resources.h:33,
from wordsedit.h:39,
from menu.h:41,
from agiplay.cpp:44:
/opt/qt/include/qtextedit.h:456:2: error: #error "Some functions need to be changed to virtual for Qt 4.0"
In file included from /opt/qt/include/qmenudata.h:43,
from /opt/qt/include/qpopupmenu.h:43,
from menu.h:31,
from agiplay.cpp:44:
/opt/qt/include/qiconset.h:52: error: variable 'Q_EXPORT QIconSet' has initializer but incomplete type
/opt/qt/include/qiconset.h:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
/opt/qt/include/qiconset.h:54: error: expected primary-expression before 'public'
/opt/qt/include/qiconset.h:54: error: expected '}' before 'public'
/opt/qt/include/qiconset.h:54: error: expected ',' or ';' before 'public'
/opt/qt/include/qiconset.h:60: error: expected constructor, destructor, or type conversion before ';' token
/opt/qt/include/qiconset.h:61: error: 'Size' has not been declared
/opt/qt/include/qiconset.h:61: error: 'Automatic' was not declared in this scope
/opt/qt/include/qiconset.h:61: error: expected constructor, destructor, or type conversion before ';' token
/opt/qt/include/qiconset.h:62: error: expected constructor, destructor, or type conversion before ';' token
/opt/qt/include/qiconset.h:63: error: ISO C++ forbids declaration of 'QIconSet' with no type
/opt/qt/include/qiconset.h:63: error: expected ',' or '...' before '&' token
/opt/qt/include/qiconset.h:63: error: expected constructor, destructor, or type conversion before ';' token
/opt/qt/include/qiconset.h:64: error: expected class-name before '(' token
/opt/qt/include/qiconset.h:66: error: 'Size' has not been declared
/opt/qt/include/qiconset.h:68: error: 'Size' has not been declared
/opt/qt/include/qiconset.h:69: error: 'virtual' outside class declaration
/opt/qt/include/qiconset.h:70: error: 'Size' has not been declared
/opt/qt/include/qiconset.h:71: error: 'virtual' outside class declaration
/opt/qt/include/qiconset.h:72: error: 'Size' was not declared in this scope
/opt/qt/include/qiconset.h:72: error: expected primary-expression before 'mode'
/opt/qt/include/qiconset.h:72: error: expected primary-expression before 'state'
/opt/qt/include/qiconset.h:72: error: expected ',' or ';' before 'const'
/opt/qt/include/qiconset.h:73: error: redefinition of 'QPixmap pixmap'
/opt/qt/include/qiconset.h:72: error: 'QPixmap pixmap' previously declared here
/opt/qt/include/qiconset.h:73: error: 'Size' was not declared in this scope
/opt/qt/include/qiconset.h:73: error: expected primary-expression before 'bool'
/opt/qt/include/qiconset.h:73: error: expected primary-expression before 'state'
/opt/qt/include/qiconset.h:74: error: non-member function 'QPixmap pixmap()' cannot have cv-qualifier
/opt/qt/include/qiconset.h:74: error: 'QPixmap pixmap()' redeclared as different kind of symbol
/opt/qt/include/qiconset.h:72: error: previous declaration of 'QPixmap pixmap'
/opt/qt/include/qiconset.h:75: error: 'Size' was not declared in this scope
/opt/qt/include/qiconset.h:75: error: expected primary-expression before 'mode'
/opt/qt/include/qiconset.h:75: error: expected primary-expression before 'state'
/opt/qt/include/qiconset.h:75: error: initializer expression list treated as compound expression
/opt/qt/include/qiconset.h:75: error: expected ',' or ';' before 'const'
/opt/qt/include/qiconset.h:79: error: non-member function 'bool isNull()' cannot have cv-qualifier
/opt/qt/include/qiconset.h:83: error: expected constructor, destructor, or type conversion before '&' token
/opt/qt/include/qiconset.h:86: error: variable or field 'setIconSize' declared void
/opt/qt/include/qiconset.h:86: error: 'Size' was not declared in this scope
/opt/qt/include/qiconset.h:86: error: expected primary-expression before 'const'
/opt/qt/include/qiconset.h:87: error: 'Size' was not declared in this scope
/opt/qt/include/qiconset.h:93: error: expected unqualified-id before 'private'
/opt/qt/include/qiconset.h:95: error: 'Size' was not declared in this scope
/opt/qt/include/qiconset.h:95: error: expected primary-expression before 'const'
/opt/qt/include/qiconset.h:95: error: initializer expression list treated as compound expression
/opt/qt/include/qiconset.h:95: error: expected ',' or ';' before 'const'
/opt/qt/include/qiconset.h:96: error: 'Size' was not declared in this scope
/opt/qt/include/qiconset.h:96: error: expected primary-expression before 'state'
/opt/qt/include/qiconset.h:96: error: initializer expression list treated as compound expression
/opt/qt/include/qiconset.h:96: error: expected ',' or ';' before 'const'
/opt/qt/include/qiconset.h:99: error: expected declaration before '}' token
make: *** [agiplay.o] Error 1

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.