Code::Blocks Forums

User forums => Help => Topic started by: hnzmdzcm on May 07, 2012, 11:19:40 am

Title: (windows7 )How to use the c::b building QT setup the development environment。
Post by: hnzmdzcm on May 07, 2012, 11:19:40 am
thanks everybody!! :)
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: MortenMacFly on May 07, 2012, 02:01:36 pm
thanks everybody!! :)
You're welcome... whatever that "thanks" was for... ???
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: scarphin on May 07, 2012, 04:47:35 pm
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. ;/
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: oBFusCATed on May 07, 2012, 04:52:39 pm
What QT plugin? We don't have such in svn.
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: scarphin on May 08, 2012, 08:40:31 pm
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?
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: oBFusCATed on May 08, 2012, 09:19:37 pm
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...
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: scarphin on May 08, 2012, 11:15:36 pm
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?
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: oBFusCATed on May 08, 2012, 11:57:23 pm
Simple squirrel script -> right click on it and you see for yourself.
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: MortenMacFly on May 09, 2012, 11:50:13 am
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.
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: 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?
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: MortenMacFly on May 09, 2012, 04:44:44 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.
Title: Re: (windows7 )How to use the c::b building QT setup the development environment。
Post by: scarphin on May 09, 2012, 06:22:52 pm
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.