Author Topic: Pre-build steps doesn't not execute if using of a cutom Makefile enabled  (Read 4295 times)

Offline Mazay

  • Single posting newcomer
  • *
  • Posts: 5
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 :( .


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7608
    • My Best Post
Re: Pre-build steps doesn't not execute if using of a cutom Makefile enabled
« Reply #1 on: October 17, 2006, 07:30:16 am »
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

« Last Edit: October 17, 2006, 07:40:31 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org