Author Topic: (windows7 )How to use the c::b building QT setup the development environment。  (Read 8225 times)

hnzmdzcm

  • Guest
thanks everybody!! :)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
thanks everybody!! :)
You're welcome... whatever that "thanks" was for... ???
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
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. ;/

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
What QT plugin? We don't have such in svn.
(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 scarphin

  • Lives here!
  • ****
  • Posts: 644
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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
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!]

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
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.