Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt project file .pro
QtWS25 Last Chance

Qt project file .pro

Scheduled Pinned Locked Moved General and Desktop
11 Posts 6 Posters 10.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roy_CT
    wrote on last edited by
    #1

    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 @

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      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?

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vcsala
        wrote on last edited by
        #3

        It is rather the '' at the end of line 2 (or at line 7 in your original posting) what seems to be a mistake.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          you mean, he meant:

          @
          DEPENDPATH += src
          ui

          INCLUDEPATH += .
          src
          @

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dialingo
            wrote on last edited by
            #5

            What does "I cannot build anything" mean?
            what is qmake saying?
            what is make saying?

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Roy_CT
              wrote on last edited by
              #6

              When I click on build there is nothing active in the menu.

              I have just loaded the pro file is this enough

              1 Reply Last reply
              0
              • G Offline
                G Offline
                giesbert
                wrote on last edited by
                #7

                Hi Roy_CT,

                did you try out what we said?

                Nokia Certified Qt Specialist.
                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Roy_CT
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    florent.revelut
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      florent.revelut
                      wrote on last edited by
                      #10

                      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@

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on last edited by
                        #11

                        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!

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved