User forums > Using Code::Blocks
Custom Build file to execute MOC for a file
Feneck91:
I have already read your article and try it...
But the file that need to be generated (source file) are C++ header files (.h) and so, some header need to be compiled as QT moc executable (all header that contains signal / slot / QObject) and some other header files don't need... (grrrr I Hate QT but have no choice to use wxWidgets).
.... But for my own project, I think this wiki will help me a lot (auto-generation of wrapper class to simplify using sqllite3 database !).
Like your wiki explain, I have duplicate gcc compiler to put MOC compiler and after I have tryed to set the compiler as MOC compiler into custom build but it don't remember it, each time I re-open this custom build, it is always gcc compiler (default one).
Feneck91:
No more idea ? Nobody use QT with custom build ?
xunxun:
I usually use QtCreator.
BTW, can you try it in the command line?
scarphin:
Do you mean you can't change the build output of 'moc_$file_name.cpp' in your case?
I also use custom compilation for qobject files with moc compiler. And I include the moc compiled file say 'file_with_qobject_moc.cpp' in the file 'file_with_qobject.cpp'. It works fine besides the fact that you are including a .cpp file in a .cpp file. That's how I manage qt.
MortenMacFly:
--- Quote from: Feneck91 on June 14, 2012, 07:19:50 am ---No more idea ? Nobody use QT with custom build ?
--- End quote ---
In wonder why you don't use one of these QT helper plugins available... They should do the job, too.
I still believe it is possible with a custom build, too. Just I don't have time to try for myself.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version