Qt project file .pro
-
wrote on 24 Mar 2011, 10:52 last edited by
I am trying to load a project file .pro however when it is loaded I cannot build anything. I have set the directory correctly is there any other reason why I can't build the files.
@ #####################################################################
Automatically generated by qmake (2.01a) Wed Jan 6 08:42:00 2010
TEMPLATE = app
TARGET =
DEPENDPATH += src
ui
INCLUDEPATH
+=
.
srcInput
HEADERS += src/about.h
src/angleprop.h
src/dimprops.h
src/drawing.h
src/drawingset.h
src/email.h
src/gridset.h
src/mainwindow.h
src/measprops.h
src/namedview.h
src/new.h
src/progset.h
src/propbar.h
src/surveyprop.h
src/surveyset.h
src/symbols.h
src/tableprop.h
src/viewports.h
src/hatchprops.h
src/qtcolorpicker.h
src/emailset.h
src/layers.h
src/backgroundprop.h
src/globals.h
FORMS += ui/about.ui
ui/angleprop.ui
ui/dimprops.ui
ui/drawingset.ui
ui/email.ui
ui/gridset.ui
ui/hatchprops.ui
ui/mainwindow.ui
ui/measprops.ui
ui/namedview.ui
ui/new.ui
ui/progset.ui
ui/propbar.ui
ui/surveyprop.ui
ui/surveyset.ui
ui/symbols.ui
ui/tableprop.ui
ui/viewports.ui
ui/emailset.ui
ui/layers.ui
ui/backgroundprop.ui
SOURCES += src/about.cpp
src/angleprop.cpp
src/dimprops.cpp
src/drawing.cpp
src/drawingset.cpp
src/email.cpp
src/gridset.cpp
src/main.cpp
src/mainwindow.cpp
src/measprops.cpp
src/namedview.cpp
src/new.cpp
src/progset.cpp
src/propbar.cpp
src/qrc_temp.cpp
src/surveyprop.cpp
src/surveyset.cpp
src/symbols.cpp
src/tableprop.cpp
src/viewports.cpp
src/hatchprops.cpp
src/qtcolorpicker.cpp
src/emailset.cpp
src/layers.cpp
src/backgroundprop.cpp
RESOURCES += icons.qrc
QT += svg
win32:RC_FILE = appicon.rc @ -
wrote on 24 Mar 2011, 11:28 last edited by
You should define a target, eg
@
TARGET = egon
@I think, otrherwise you exe/dll will have no name which makes no sense.
@
DEPENDPATH += src
ui
INCLUDEPATH
+=
.
src
@What does the *+= * mean in line 4?
-
wrote on 24 Mar 2011, 11:58 last edited by
It is rather the '' at the end of line 2 (or at line 7 in your original posting) what seems to be a mistake.
-
wrote on 24 Mar 2011, 12:01 last edited by
you mean, he meant:
@
DEPENDPATH += src
uiINCLUDEPATH += .
src
@ -
wrote on 24 Mar 2011, 12:31 last edited by
What does "I cannot build anything" mean?
what is qmake saying?
what is make saying? -
wrote on 24 Mar 2011, 12:38 last edited by
When I click on build there is nothing active in the menu.
I have just loaded the pro file is this enough
-
wrote on 24 Mar 2011, 12:55 last edited by
Hi Roy_CT,
did you try out what we said?
-
wrote on 24 Mar 2011, 13:06 last edited by
Yes . My one thought is it isn't a PRO file. When I try and save it it only gives me an option to save it as a txt file. When I see it in the editor it does not have any highlight colours .
Thanks
-
wrote on 24 Mar 2011, 14:45 last edited by
Well, just try to run
@qmake@
in your current folder. Depending on your platform it will create a makefile that you can then try to build using
@make@(on windows, use qmake -tp vc and then open visual project)
=> if qmake complains, you can post its log here
=> if make complains, you can post its log hereIf you work inside QtCreator, can't help you however.
-
wrote on 24 Mar 2011, 14:48 last edited by
Note that a .pro IS a simple text file. Extension is just a meaningful way to identify it and syntax highlighting is highly dependant of your editor.
=> If you're on windows, it might be that it has a hidden extension (dor a dir in command line in this folder)
=> you can still build it using qmake by specifying full name : this will try to evaluate toto.txt as a project file.
@qmake toto.txt@ -
wrote on 24 Mar 2011, 18:38 last edited by
And please do not write topics in all caps. It's regarded like "shouting loudly" in a real-world conversation (and hard to read anyways). I've fixed it for now.
Also, a more meaningful topic would help too. The one you've chosen is quite general.
Please keep this in mind for future threads. Thanks.
For your problem: look at VCsala's and Gerolfs answers, as well as on florent's, they're right!
1/11