I'm running QT 4.5.2 on Windows XP
I'm trying to make a simple HelloWorld application, but have run into a puzzling problem with qmake.
My .pro file (MyHelloWorld.pro) looks thus:
######################################################################
# Automatically generated by qmake (2.01a) Do 9. Jul 14:51:28 2009
######################################################################
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += helloWorld.cpp
######################################################################
# Automatically generated by qmake (2.01a) Do 9. Jul 14:51:28 2009
######################################################################
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += helloWorld.cpp
To copy to clipboard, switch view to plain text mode
My only source file (helloWorld.cpp) looks thus:
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
label->show();
return app.exec();
}
#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();
}
To copy to clipboard, switch view to plain text mode
when running qmake MyHelloWorld.pro
the result is:
qmake MyHelloWorld.pro
WARNING: Failure to find: ../HelloWorld/main.cpp
WARNING: Failure to find: ../HelloWorld/hellowin.cpp
WARNING: Failure to find: ../HelloWorld/hellounix.cpp
WARNING: Failure to find: ../HelloWorld/hello.cpp
WARNING: Failure to find: ../HelloWorld/hello.h
WARNING: Failure to find: ../HelloWorld/main.cpp
WARNING: Failure to find: ../HelloWorld/hellowin.cpp
WARNING: Failure to find: ../HelloWorld/hellounix.cpp
WARNING: Failure to find: ../HelloWorld/hello.cpp
WARNING: Failure to find: ../HelloWorld/hello.h
qmake MyHelloWorld.pro
WARNING: Failure to find: ../HelloWorld/main.cpp
WARNING: Failure to find: ../HelloWorld/hellowin.cpp
WARNING: Failure to find: ../HelloWorld/hellounix.cpp
WARNING: Failure to find: ../HelloWorld/hello.cpp
WARNING: Failure to find: ../HelloWorld/hello.h
WARNING: Failure to find: ../HelloWorld/main.cpp
WARNING: Failure to find: ../HelloWorld/hellowin.cpp
WARNING: Failure to find: ../HelloWorld/hellounix.cpp
WARNING: Failure to find: ../HelloWorld/hello.cpp
WARNING: Failure to find: ../HelloWorld/hello.h
To copy to clipboard, switch view to plain text mode
Where do all those files come from? They're certainly not mentioned in the .pro file.
Any hints? Also: Any links to tutorials that actually explain the build process (not only the parameters of qmake) would be greatly appreciated!
Robert
Bookmarks