Dobrý den,
Prosím vás o radu, jak si mám nainstalovat QT 4, abych v něm mohl něco naprogramovat, všude se píše že stačí nainstalovat pouze to z těch repozitářů. Ovšem po nainstalování všeho mi to neustále nejde.
Příkazy pro kompilaci programu jsou O.K.
qmake -project
qmake -unix
g++ hello.cpp
-to vypíše :
hello.cpp:1:25: error: QApplication: není souborem ani adresářem
hello.cpp:2:24: error: QPushButton: není souborem ani adresářem
hello.cpp: In function ‘int main(int, char**)’:
hello.cpp:6: error: ‘QApplication’ was not declared in this scope
hello.cpp:6: error: expected `;' before ‘app’
hello.cpp:8: error: ‘QPushButton’ was not declared in this scope
hello.cpp:8: error: expected `;' before ‘hello’
hello.cpp:9: error: ‘hello’ was not declared in this scope
hello.cpp:12: error: ‘app’ was not declared in this scope