Qmake project mode "problem"
-
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!
-
Just run qmake help...
You need to run this in your project directory:
@
qmake -project
@ -
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....
-
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.
-
i've windows 7 and qt is installed in C:\
and this is the qmake path C:\Qt\4.8.4\qmake
-
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
@ -
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... -
another question, how i pass the directory to process???
-
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.
-
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