Hi There! ^^
I has install Dev-C++ and Qtopia, and my Qt project well complier success.
but, I have one question, does have any way to do this?
in my case, before compiler Qt project, I must run "qmake" first, let it create
Makefile, and next step, use this Makefile to compiler, Now, I add tool shortcut to do this.
can I add this action into compiler?
I'm try to use "Add the following commands when calling compiler",
contents is "qmake <PROJECTNAME>.pro"
but not work, have any idea? @@?
thxs for ur help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think "Add the following commands when calling compiler" is for passing command-line parameters not running external programs.
I'm not sure how to do what you're looking for in Dev. You can customize your makefile to execute an external program first by using "Include the following files into the makefile" option, but you can't do that and also override the generated makefile with a custom one that was generated by the extra file. It seems like you'd be better off using the binaries and editor that came with Dev but compiling externally from a batch file. Or maybe you could write a custom make file that acts like a batch file and simply calls the qmake program followed by invoking Dev's version of make.exe with the qmake-generated make file. You would select the "Use custom makefile" option for that.
I have only messed around with custom makefiles a little, mostly with the help of Clifford, so he'll probably have a better answer for you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi There! ^^
I has install Dev-C++ and Qtopia, and my Qt project well complier success.
but, I have one question, does have any way to do this?
in my case, before compiler Qt project, I must run "qmake" first, let it create
Makefile, and next step, use this Makefile to compiler, Now, I add tool shortcut to do this.
can I add this action into compiler?
I'm try to use "Add the following commands when calling compiler",
contents is "qmake <PROJECTNAME>.pro"
but not work, have any idea? @@?
thxs for ur help.
I think "Add the following commands when calling compiler" is for passing command-line parameters not running external programs.
I'm not sure how to do what you're looking for in Dev. You can customize your makefile to execute an external program first by using "Include the following files into the makefile" option, but you can't do that and also override the generated makefile with a custom one that was generated by the extra file. It seems like you'd be better off using the binaries and editor that came with Dev but compiling externally from a batch file. Or maybe you could write a custom make file that acts like a batch file and simply calls the qmake program followed by invoking Dev's version of make.exe with the qmake-generated make file. You would select the "Use custom makefile" option for that.
I have only messed around with custom makefiles a little, mostly with the help of Clifford, so he'll probably have a better answer for you.