Thanks for all who helped. I've been experiencing with your suggestion and the current status is:
jmccay, I still need to run the regular make program to build the project. However, the makefile to be used must be the qmake generated makefile, which is created by those three commands I wrote about before. So, changing the make utility will not help, I just need the regular make to be run with the qmake generated makefile.
vri, I could not test this plugin yet. As far as I understood, it must be built together with Code::Blocks, right? I'm running a binary version package by my linux distribution and, if possible, I would like to keep it. It's a little difficult to locate the sources for the last linux version of codeblocks, most of the time the nightly releases are windows-only. However, if I can't find another solution, I'll give it a try.
Philippe, running the qt-prebuild script is almost the same as running "qmake -project; qmake; make" as pre-build steps. However, codeblocks insists on using it's own makefile to build the project, so it's necessary to add manualy the moc_*.cpp files to the project for each source file which has the Q_OBJECT directive. Not very practical but, if there's no other way, it will have to do.
I really would like that CodeBlocks would allow me to specify the commands I would like to execute to build the project without trying to do anything else by itself... However, there's no way to specify build commands when you select the custom makefile option. And if this option is not checked, it always tries to build the project by itself, leading to errors.
Thanks,
Marcelo