Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qmake project mode "problem"

Qmake project mode "problem"

Scheduled Pinned Locked Moved Qt Creator and other tools
10 Posts 2 Posters 3.4k 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.
  • C Offline
    C Offline
    ceora
    wrote on last edited by
    #1

    Hi all, recently i've discovered that qmake can auto generate a Qt project file parsing a directory. i'e searched on web but didn't find any tutorial, so some one can explain me how to do that?? i would like to import a project and let qmake build the project for me.

    thanks in advance!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Just run qmake help...

      You need to run this in your project directory:
      @
      qmake -project
      @

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ceora
        wrote on last edited by
        #3

        hi thanks for th e ansewer! but can you give a more detailed explanation?? because i've tried to run qmake by passing -project on command line but it said that the command is unknown....

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          You need to have qmake in PATH. If you want instructions, you need to tell me what OS are you on and how have you installed Qt.

          (Z(:^

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ceora
            wrote on last edited by
            #5

            i've windows 7 and qt is installed in C:\

            and this is the qmake path C:\Qt\4.8.4\qmake

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Why oh why are pople using Windows? It's a mystery to me.

              Ok, on with the show: either add "C:\Qt\4.8.4\bin\qmake" to PATH in Control Panel->System->Advanced->Environmental Variables (this will make this change globally).

              On in cmd (this will only be valid for a single session. When you close cmd.exe, the change is gone):
              @
              export PATH=C:\Qt\4.8.4\bin\qmake;%PATH%
              qmake -project
              @

              (Z(:^

              1 Reply Last reply
              0
              • C Offline
                C Offline
                ceora
                wrote on last edited by
                #7

                i've to write in cmd the two line you write??
                i've tried to write the first but it sais that the export command is unkown...

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  ceora
                  wrote on last edited by
                  #8

                  another question, how i pass the directory to process???

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #9

                    Sorry, I'm too unix-centic.
                    @
                    set PATH=C:\Qt\4.8.4\bin\qmake;%PATH%
                    qmake -project
                    @

                    For your second question - please open a new thread for this.

                    (Z(:^

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      ceora
                      wrote on last edited by
                      #10

                      Ok thanks! now i'm able to do it! but it scan all c++ and h file on computer. So as you said i'll open a new thread for this. thanks again

                      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