Asperamanca
9th July 2009, 14:47
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
My only source file (helloWorld.cpp) looks thus:
#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();
}
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
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
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
My only source file (helloWorld.cpp) looks thus:
#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();
}
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
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