PDA

View Full Version : compile error



dmartino
5th November 2010, 16:38
Hi,
I'm trying to compile a .exe with qmake command for my first QT application Hello.
My hello.pro is


TEMPLATE = app
TARGET = hello

QT += core gui

HEADERS += hello.h
SOURCES += main.cpp \
hello.cpp
FORMS += hello.ui
RESOURCES +=

CONFIG += qt warn_on release

qmake -project


I get this error in the console:
c:\Users\ ... \workspaceC++\hello\hello.pro:13: Parse Error ('qmake -project')
Error processing project file: hello.pro

What can I do?

Thanks!

tbscope
5th November 2010, 17:07
This is not correct:

RESOURCES +=

Talei
5th November 2010, 18:12
Remove
qmake -project from your pro file.
Use in console/cmd qmake nameOfProjectFiles.pro