Portál AbcLinuxu, 12. května 2025 09:31

Dotaz: Mam problém při kompilaci s qt4

pepe_ avatar 14.10.2009 22:12 pepe_ | skóre: 48
Mam problém při kompilaci s qt4
Přečteno: 329×
Odpovědět | Admin
zdravim , chtěl sem si zkompilovat qgamex a nejde mi to ikdyž sem doinstaloval vše co mně napadlo.
user@NB-Pepe:~/zdrojaky$ git clone git://git.dolezel.info/qgamex.git
Initialized empty Git repository in /home/user/zdrojaky/qgamex/.git/
remote: Counting objects: 22, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 22 (delta 12), reused 0 (delta 0)
Receiving objects: 100% (22/22), 16.71 KiB, done.
Resolving deltas: 100% (12/12), done.
user@NB-Pepe:~/zdrojaky$ cd qgamex
user@NB-Pepe:~/zdrojaky/qgamex$ qmake
WARNING: Found potential symbol conflict of mainform.cpp (mainform.cpp) in SOURCES
WARNING: Found potential symbol conflict of mainform.h (mainform.h) in HEADERS
user@NB-Pepe:~/zdrojaky/qgamex$ make
Makefile:157: warning: overriding commands for target `moc_mainform.cpp'
Makefile:154: warning: ignoring old commands for target `moc_mainform.cpp'
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o qgamex.o qgamex.cpp
In file included from qgamex.cpp:20:
qgamex.h:22:23: error: QStringList: No such file or directory
qgamex.h:23:16: error: QMap: No such file or directory
In file included from qgamex.cpp:21:
mainform.h:22:19: error: QDialog: No such file or directory
mainform.h:23:25: error: ui_mainform.h: No such file or directory
qgamex.cpp:23:24: error: QApplication: No such file or directory
qgamex.cpp:24:23: error: QMessageBox: No such file or directory
qgamex.cpp:25:16: error: QDir: No such file or directory
qgamex.cpp:26:24: error: QDomDocument: No such file or directory
qgamex.cpp:27:17: error: QFile: No such file or directory
qgamex.cpp:28:26: error: QTemporaryFile: No such file or directory
qgamex.cpp:29:20: error: QProcess: No such file or directory
qgamex.cpp:30:19: error: QtDebug: No such file or directory
In file included from qgamex.cpp:20:
qgamex.h:25: error: ‘QStringList’ does not name a type
qgamex.h:26: error: ‘QString’ was not declared in this scope
qgamex.h:26: error: ‘QMap’ was not declared in this scope
qgamex.h:26: error: ‘QString’ was not declared in this scope
qgamex.h:26: error: ‘QString’ was not declared in this scope
qgamex.h:26: error: ‘data’ was not declared in this scope
qgamex.h:26: error: initializer expression list treated as compound expression
qgamex.h:27: error: ‘QString’ was not declared in this scope
qgamex.h:27: error: expected primary-expression before ‘const’
qgamex.h:27: error: ‘QString’ was not declared in this scope
qgamex.h:27: error: ‘data’ was not declared in this scope
qgamex.h:27: error: initializer expression list treated as compound expression
qgamex.h:28: error: ‘QString’ was not declared in this scope
qgamex.h:29: error: ‘QString’ does not name a type
qgamex.h:30: error: expected ‘,’ or ‘...’ before ‘<’ token
qgamex.h:30: error: ISO C++ forbids declaration of ‘QMap’ with no type
qgamex.h:32: error: expected ‘,’ or ‘...’ before ‘<’ token
qgamex.h:32: error: ISO C++ forbids declaration of ‘QMap’ with no type
qgamex.h:35: error: ‘QString’ does not name a type
In file included from qgamex.cpp:21:
mainform.h:25: error: expected class-name before ‘,’ token
mainform.h:26: error: expected class-name before ‘{’ token
mainform.h:27: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
mainform.h:28: error: expected ‘;’ before ‘public’
mainform.h:32: error: expected `:' before ‘slots’
mainform.h:33: error: expected primary-expression before ‘void’
mainform.h:33: error: ISO C++ forbids declaration of ‘slots’ with no type
mainform.h:33: error: expected ‘;’ before ‘void’
mainform.h:39: error: ‘QListWidgetItem’ has not been declared
mainform.h:44: error: expected ‘,’ or ‘...’ before ‘&’ token
mainform.h:44: error: ISO C++ forbids declaration of ‘QString’ with no type
mainform.h: In member function ‘void MainForm::switchedRunType()’:
mainform.h:42: error: ‘updateByCheckbox’ was not declared in this scope
qgamex.cpp: In function ‘int main(int, char**)’:
qgamex.cpp:40: error: ‘QApplication’ was not declared in this scope
qgamex.cpp:40: error: expected `;' before ‘app’
qgamex.cpp:42: error: ‘class MainForm’ has no member named ‘show’
qgamex.cpp:44: error: ‘app’ was not declared in this scope
qgamex.cpp:48: error: ‘QMap’ was not declared in this scope
qgamex.cpp:48: error: ‘QString’ was not declared in this scope
qgamex.cpp:48: error: ‘params’ was not declared in this scope
qgamex.cpp:49: error: ‘getenv’ was not declared in this scope
qgamex.cpp:51: error: ‘loadProfile’ cannot be used as a function
qgamex.cpp:55: error: ‘QApplication’ was not declared in this scope
qgamex.cpp:55: error: expected `;' before ‘app’
qgamex.cpp:56: error: ‘QMessageBox’ has not been declared
qgamex.cpp: At global scope:
qgamex.cpp:73: error: expected ‘,’ or ‘...’ before ‘<’ token
qgamex.cpp:73: error: ISO C++ forbids declaration of ‘QMap’ with no type
qgamex.cpp: In function ‘void runGame(int, char**, int)’:
qgamex.cpp:77: error: ‘QTemporaryFile’ was not declared in this scope
qgamex.cpp:77: error: expected `;' before ‘file’
qgamex.cpp:78: error: ‘QStringList’ was not declared in this scope
qgamex.cpp:78: error: expected `;' before ‘args’
qgamex.cpp:79: error: ‘QString’ was not declared in this scope
qgamex.cpp:79: error: expected `;' before ‘cmd’
qgamex.cpp:81: error: ‘file’ was not declared in this scope
qgamex.cpp:82: error: ‘filename’ was not declared in this scope
qgamex.cpp:86: error: ‘params’ was not declared in this scope
qgamex.cpp:96: error: ‘params’ was not declared in this scope
qgamex.cpp:98: error: expected `;' before ‘xm’
qgamex.cpp:100: error: ‘xm’ was not declared in this scope
qgamex.cpp:102: error: ‘cmd’ was not declared in this scope
qgamex.cpp:107: error: ‘params’ was not declared in this scope
qgamex.cpp:109: error: ‘cmd’ was not declared in this scope
qgamex.cpp:114: error: ‘params’ was not declared in this scope
qgamex.cpp:116: error: ‘cmd’ was not declared in this scope
qgamex.cpp:120: error: ‘params’ was not declared in this scope
qgamex.cpp:122: error: ‘cmd’ was not declared in this scope
qgamex.cpp:130: error: ‘params’ was not declared in this scope
qgamex.cpp:132: error: ‘cmd’ was not declared in this scope
qgamex.cpp:137: error: ‘params’ was not declared in this scope
qgamex.cpp:141: error: ‘cmd’ was not declared in this scope
qgamex.cpp:146: error: ‘cmd’ was not declared in this scope
qgamex.cpp:149: error: expected `;' before ‘arg’
qgamex.cpp:150: error: ‘arg’ was not declared in this scope
qgamex.cpp:166: error: ‘QProcess’ was not declared in this scope
qgamex.cpp:166: error: expected `;' before ‘process’
qgamex.cpp:169: error: expected `;' before ‘args’
qgamex.cpp:171: error: ‘args’ was not declared in this scope
qgamex.cpp:173: error: ‘qDebug’ was not declared in this scope
qgamex.cpp:175: error: ‘params’ was not declared in this scope
qgamex.cpp:180: error: ‘process’ was not declared in this scope
qgamex.cpp:180: error: ‘QProcess’ is not a class or namespace
qgamex.cpp:181: error: ‘QIODevice’ has not been declared
qgamex.cpp:185: error: ‘process’ was not declared in this scope
qgamex.cpp:185: error: ‘QProcess’ is not a class or namespace
qgamex.cpp:186: error: ‘QIODevice’ has not been declared
qgamex.cpp:189: error: ‘process’ was not declared in this scope
qgamex.cpp:190: error: ‘QMessageBox’ has not been declared
qgamex.cpp: At global scope:
qgamex.cpp:73: warning: unused parameter ‘argv’
qgamex.cpp:73: warning: unused parameter ‘QMap’
qgamex.cpp: In function ‘int getFreeDisplay()’:
qgamex.cpp:199: error: ‘QFile’ has not been declared
qgamex.cpp:199: error: ‘QString’ was not declared in this scope
qgamex.cpp: In function ‘int getCurrentDisplay()’:
qgamex.cpp:207: error: ‘getenv’ was not declared in this scope
qgamex.cpp:212: error: ‘exit’ was not declared in this scope
qgamex.cpp:216: error: ‘strchr’ was not declared in this scope
qgamex.cpp:220: error: ‘exit’ was not declared in this scope
qgamex.cpp:223: error: ‘atoi’ was not declared in this scope
qgamex.cpp: At global scope:
qgamex.cpp:227: error: ‘QString’ does not name a type
qgamex.cpp:240: error: ‘QStringList’ does not name a type
qgamex.cpp:263: error: ‘QString’ does not name a type
qgamex.cpp:273: error: redefinition of ‘bool loadProfile’
qgamex.h:26: error: ‘bool loadProfile’ previously defined here
qgamex.cpp:273: error: ‘QString’ was not declared in this scope
qgamex.cpp:273: error: ‘QMap’ was not declared in this scope
qgamex.cpp:273: error: ‘QString’ was not declared in this scope
qgamex.cpp:273: error: ‘QString’ was not declared in this scope
qgamex.cpp:273: error: ‘data’ was not declared in this scope
make: *** [qgamex.o] Error 1
user@NB-Pepe:~/zdrojaky/qgamex$ 
Nenapadá někoho co tomu chybí ?
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

14.10.2009 22:19 Andrej Herceg | skóre: 43
Rozbalit Rozbalit vše Re: Mam problém při kompilaci s qt4
Odpovědět | | Sbalit | Link | Blokovat | Admin
Nie je to náhodou určené len pre Qt4? (s Qt4 sa mi to skompilovalo bez problémov a okrem Qt4 to pravdepodobne nič iné nepotrebuje)
14.10.2009 22:22 Andrej Herceg | skóre: 43
Rozbalit Rozbalit vše Re: Mam problém při kompilaci s qt4
A ak máš nainštalované aj Qt4 (aj devel balíčky) tak pravdepodobne používaš nesprávny program qmake (lebo ti to vygenerovalo Makefile pre Qt3).
pepe_ avatar 14.10.2009 22:27 pepe_ | skóre: 48
Rozbalit Rozbalit vše Re: Mam problém při kompilaci s qt4
jj jen pro qt4 a jak ja to ovlivnim ? mam oba qt3 i qt4
pepe_ avatar 14.10.2009 22:33 pepe_ | skóre: 48
Rozbalit Rozbalit vše Re: Mam problém při kompilaci s qt4
Odpovědět | | Sbalit | Link | Blokovat | Admin
Vyřešeno , místo qmake jen dát qmake-qt4

to je teda věc , díky za bleskovou odpověď !

tak to jdu testnout neb sauerbraten mi chodil moc pomalu s metacity kompozitorem a ja chci pruhlednosti ...

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.