User forums > Help

Pre-build steps doesn't not execute if using of a cutom Makefile enabled

(1/1)

Mazay:
Firstly, a field "Pre-build steps" in "Project build options" disabled when using of a cutom Makefile enabled.
Secondly, if I write some commands in this field (I disabled using of a custom Makefile, entered pre-build commands, enabled custom Makefile), this commands doesn't execute  anyway.

If this is not a bug, how should I use Qt with CodeBlocks? I want to write pre-build steps for generating of Makefile ("qmake -project"; "qmake") but the IDE doesn't allow me to do it :( .

stahta01:
I always assumed you can build using a custom makefile(s) or using the C::B (code block) process NOT both. http://wiki.codeblocks.org/index.php?title=The_build_process_of_Code::Blocks

But, I would try to use C::B process and Builtin variables see http://wiki.codeblocks.org/index.php?title=Builtin_variables

Might also look at http://wiki.codeblocks.org/index.php?title=Build_scripts
and http://wiki.codeblocks.org/index.php?title=Scripting_commands

I have NEVER done the above, but it looks like what you want to do MAY be possible. Also, I know very very little about QT and nothing about qmake. But, I don't think it is if you use a custom makefile unless you do it all in the custom makefile.

Personally, I could do it with just the custom makefile and Builtin variables the faster than learning the code block process and scripting. But, I would not because I think it would be harder to modify and maintain. It would be easier to convert makefiles to be used by something other than C::B. So, the way I would go would depend on if I planned to use C::B to maintain the project or to be IDE independent. This is based on the idea that qmake is just like regular make as gmake is.

Tim S

Navigation

[0] Message Index

Go to full version