Qt project file .pro



  • 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
    +=
    .
    src

    Input

    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 @



  • 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
    ui

    INCLUDEPATH += .
    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 here

    If 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!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.