Qt project file .pro
-
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?
-
It is rather the '' at the end of line 2 (or at line 7 in your original posting) what seems to be a mistake.
-
you mean, he meant:
@
DEPENDPATH += src
uiINCLUDEPATH += .
src
@ -
What does "I cannot build anything" mean?
what is qmake saying?
what is make saying? -
When I click on build there is nothing active in the menu.
I have just loaded the pro file is this enough
-
Hi Roy_CT,
did you try out what we said?
-
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
-
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.
-
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@ -
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!