How to run Qt application from windows commandline?
-
wrote on 26 Apr 2012, 04:30 last edited by
I developed Qt application using "Qt Creator 2.3.0 Based on Qt 4.7.4 (32 bit)".
I got its ".exe" file which run perfectly after double click on it.
But I want users of this application to run it from their windows command line.
How can i do that? what command they must type to run the application? -
wrote on 26 Apr 2012, 05:15 last edited by
I QT SDK and this is how I get to a command line:
go to:
All Programs
->QT SDK
->Desktop
-> Qt 4.8.1 for Desktop (MinGWNot sure if this is what you are looking for.
-
wrote on 26 Apr 2012, 05:32 last edited by
I use QT SDK ....
-
wrote on 26 Apr 2012, 05:45 last edited by
No.....i want to know how to run a application(which is already developed using QT SDK) using command line....
-
wrote on 26 Apr 2012, 05:49 last edited by
have you tried:
qmake -project
qmake file.pro -
wrote on 26 Apr 2012, 06:01 last edited by
qmake is windows?? no id didnt try....
i thought its only for windows....
ok...whats the procedure? -
wrote on 26 Apr 2012, 06:06 last edited by
I am new to all this so I am guessing..
if you go to:
All Programs ->QT SDK ->Desktop -> Qt 4.8.1 for Desktop (MinGW)This will give you a command line option. Once you have that open, CD to your project directory and do the following:
qmake -project
qmake file.proI am not sue if this is what you were looking for, sorry if I led you on a wild goose chase.
-
wrote on 26 Apr 2012, 06:11 last edited by
oh...i think u misunderstood my words.....i want user of the Qt application(which i developed) should able to run through the commandline....they wont be having QT SDK.....
Hope it make sense to u...
Anyway thank u for your reply...:) -
wrote on 26 Apr 2012, 06:16 last edited by
ah..sorry I misunderstood.
-
wrote on 26 Apr 2012, 07:02 last edited by
Hi aurora,
if you put all neededs stuff in the correct location (search for distribution on DevNet or the docs) it makes no difference if you run it from command line or from desktop.
-
wrote on 26 Apr 2012, 19:17 last edited by
if you have all the required libraries in the directory, including the Qt dll's for your library, then you can just use the explicit path to run your application (unless you have a Qt license and built it statically, then you dont need the dll's)...
c:\path\to\your\application\file.exe
1/11