Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: VRonin on February 10, 2011, 12:16:15 pm
-
Hello everybody, I'm new here but I've used C::B for some time. I searched this forum and other places too to find a way to make Qt fully integrate in C::B.
Here is what I figured out I should do so far:
created 2 tools for qmake with arguments -project and -makefile (they work)
set up C::B to use custom makefile and changed make commands like this:
- Bulid Project/Target: $make -f $makefile.$target
- Compile Single File: $make -f $makefile $file
- Clean Project/Target: $make -f $makefile.$target clean
- Ask if rebuild is needed: $make -q -f $makefile.$target
- Silent Build: $make -f $makefile.$target distclean
problem is, when I try to build I get Execution of 'make.exe -s -f Makefile Debug' in 'C:\blablabla\pathname' failed.
I even tried with 2 (no more supported) plugins: http://code.google.com/p/qtworkbench/ and http://code.google.com/p/qthelper/ but with no luck.
Can anybody write a complete guide to integrate qt into C::B?
Thanks in advance.
P.S.
If you can tell me a way to integrate qt designer too I'd be your slave forever :P
-
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Does the same make command works from console (cmd.exe)?
If it works in the console, but fails in c::b you have some configuration problem.
If it doesn't work in the console ... fix it :)
-
Where do you get this make-command from ?, it seems not to be in your templates.
Check per project and per target make-commands.
If one of them is empty it will not be used.
-
the make commands are taken from http://code.google.com/p/qtworkbench/wiki/QtWorkbenchProjects but even with the default ones the result is the same.
if I try to use cmd "C:\Program Files (x86)\CodeBlocks\MinGW\bin\mingw32-make.exe" -f Makefile
from the project folder (where the makefile exist indeed) it invokes g++ and cmq says it's not a valid command.
I even tryed installing MinGW separately but the result is the same
Are you actually able tu build Qt projects with C::B? and if so what compiler are you using? how did you configure it?