Oczywiście tworzę makefile qmake'iem:
Kod: Zaznacz cały
qmake -project
qmake
make
Kod: Zaznacz cały
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o main.cpp
main.cpp:1:24: error: QApplication: No such file or directory
main.cpp:2:18: error: QLabel: No such file or directory
main.cpp:6: error: ‘QApplication’ was not declared in this scope
main.cpp:6: error: expected ‘;’ before ‘a’
main.cpp:7: error: ‘QLabel’ was not declared in this scope
main.cpp:7: error: expected ‘;’ before ‘label’
main.cpp:9: error: ‘label’ was not declared in this scope
main.cpp:11: error: ‘a’ was not declared in this scope
main.cpp: At global scope:
main.cpp:4: warning: unused parameter ‘argc’
main.cpp:4: warning: unused parameter ‘argv’
make: *** [main.o] Błąd 1