[QT] hello world
Добавлено: 2009-11-08 15:37:21
Откуда берется hello.o
Как я понял ошибка из-за него.
Как я понял ошибка из-за него.
Код: Выделить всё
malutka# ls -l
total 2
-rwxr-xr-x 1 gloft gloft 201 16 июн 2008 hello.cpp
malutka# cat hello.cpp
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}
malutka# qmake -project
malutka# ls -l
total 4
-rwxr-xr-x 1 gloft gloft 201 16 июн 2008 hello.cpp
-rw-r--r-- 1 root gloft 286 8 ноя 14:41 hello.pro
malutka# qmake hello.pro
malutka# ls -l
total 8
-rw-r--r-- 1 root gloft 2850 8 ноя 14:41 Makefile
-rwxr-xr-x 1 gloft gloft 201 16 июн 2008 hello.cpp
-rw-r--r-- 1 root gloft 286 8 ноя 14:41 hello.pro
malutka# make
g++34 -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/local/share/qt/mkspecs/freebsd-g++34 -I. -I. -I../../../../local/include -I/include -o hello.o hello.cpp
g++34:No such file or directory
*** Error code 1
Stop in /usr/home/gloft/projects/hello.