User forums > Using Code::Blocks
Program Qt application with CB
yop:
There are problems compiling qt apps with code blocks, if you search the forum you'll find some work arounds to compile qt apps. The main thing is that qt creates some intermediate code out of the code you write using a meta object compiler as Trolltech names it. The design desision in c::b seems to be that you should already provide everything needed for syccesfull compilation, something that doesn't really fit with qt. I am working on a patch that will let you use qmake as a makefile genarator that automates the process of meta source code generation, source code needed for resources, ui files etc. etc. I've allready acheived some basic integration and now I'm working on the advanced and the custom compiler settings.
Now if you want to compile qt projects and have all the c::b functionality there's only one way to go:
generate the moc source files running moc (Meta Object Compiler) on every source file of your project
run uic (User Interface Compiler) on every .ui file of your project
run rcc (Resource Compiler) on every recource file of your project
add all the generated source files to your c::b project
include the qt headers path
set the options so that you can link against qt libs
build...
I believe that you can automate the above with some preprocessing steps or something but haven't tried it cause now I am compiling qt apps using my patched CVS version of c::b :wink:
Navigation
[0] Message Index
[*] Previous page
Go to full version