News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

(windows7 )How to use the c::b building QT setup the development environment。

Started by hnzmdzcm, May 07, 2012, 11:19:40 AM

Previous topic - Next topic

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

scarphin

I think he's asking how to setup a QT project on CB. QT plugin is giving a version error with the latest nightly btw, maybe it should be disabled by default. ;/

oBFusCATed

(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!]

scarphin

I get a warning box on the bottom right corner saying 'List of failed plugins: qtworkbench.dll' when I start CB rev7932 on win7 x64. My bad if that's not QT plugin but it's sure related with QT, isn't it?

oBFusCATed

If you look here http://svn.berlios.de/wsvn/codeblocks/trunk/src/plugins/contrib/?rev=7954&peg=7954#a7ba921c7773baae2cbfc39a51f9a4584 there is not such plugin.
So this is not a plugin distributed with the nightly build,
thus you've build it yourself or downloaded it from somewhere
and you have to rebuild it yourself or you have to ask the one who have built it to rebuild 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!]

scarphin

I don't remember installing it but it's possible I might have done that. Sry in that case. How does the QT template manage things then if there's no such plugin?

oBFusCATed

Simple squirrel script -> right click on it and you see for yourself.
(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!]

MortenMacFly

For the record: All those qt plugins (qtworkbench and qthelper to my knowledge) are 3rd party plugins. The wizard/template ships with the "official" C::B.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

scarphin

What I meant was, if the projects created with the qt template with sources involving the 'Q_OBJECT' which have to be compiled with the 'moc compiler', can be build successfully or not? Or in a more simple way, is the QT projects created with the template able to build successfully?

MortenMacFly

Quote from: scarphin on May 09, 2012, 02:14:17 PM
What I meant was, if the projects created with the qt template with sources involving the 'Q_OBJECT' which have to be compiled with the 'moc compiler', can be build successfully or not? Or in a more simple way, is the QT projects created with the template able to build successfully?
I don't use QT, so I don't know. But you can always embed the MOC compiler either as tool or pre-build steps / script using macros to make it more generic. This should work.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

scarphin

Last time I checked it didn't, so I thought there must have been a plugin to deal with qt specific stuff helping the template. ;) Anyway I will investigate further later.

For other cb users who have trouble using qt with cb, what I actually do currently is adjust the compilation priority, compile with the moc compiler and include the moc output in the corresponding file including the 'Q_OBJECT'. Seems a better way imo.