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
Forum Updated to NodeBB v4.3 + New Features

Qt project file .pro

Scheduled Pinned Locked Moved General and Desktop
11 Posts 6 Posters 10.5k Views 1 Watching
  • 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.
  • 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