Author Topic: Qt Integration in C::B  (Read 4207 times)

Offline VRonin

  • Single posting newcomer
  • *
  • Posts: 2
  • C++ king of n00bs
Qt Integration in C::B
« 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
La mort n’est rien; mais vivre vaincu et sans gloire c’est mourir tous les jours.
- Napoléon Bonaparte
[Death is nothing, but to live defeated and inglorious is to die daily]

Online oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11816
    • Travis build status
Re: Qt Integration in C::B
« Reply #1 on: February 10, 2011, 10:55:06 pm »
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 :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Qt Integration in C::B
« Reply #2 on: February 11, 2011, 08:10:47 am »
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.

Offline VRonin

  • Single posting newcomer
  • *
  • Posts: 2
  • C++ king of n00bs
Re: Qt Integration in C::B
« Reply #3 on: February 11, 2011, 03:37:39 pm »
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?
La mort n’est rien; mais vivre vaincu et sans gloire c’est mourir tous les jours.
- Napoléon Bonaparte
[Death is nothing, but to live defeated and inglorious is to die daily]