User forums > Help
QT and C::B problem - header files not found
yop:
For now you will need to have the means to build a Code::Blocks plugin in order to build my plugin. It's like saying that you want to build a plugin for QtFoo application without having Qt and QtFoo's SDK installed, it's just impossible. I do plan on releasing the plugin in binary form but that is can only happen with the next C::B release as it would just become useless after a few night-builds. I have worked on it quite a lot (though not so much in the last 15 days) and it's pretty useable (I built a large proprietary project from work without any problems). For now AFAIK C::B with the plugin are the only opensource tools for Qt development under windows.
Thanks for trying (to try :)) the plugin out,
Yorgos
Piotr:
In the meantime I have found this thread:
http://forums.codeblocks.org/index.php/topic,615.0.html
I followed this solution (simplified slightly) and it works :)
To summarize it, first one needs to add pre-build commands":
qmake - project
qmake
and run the project (There still will be errors)
Then in project properties check the makefile option and run again.
Anyway, the build options should be improved. It looks like this problem has nothing to do with QT itself, but rather path settings. As I mentioned, include paths were visible in the list, but except for $QTDIR\include\Qt they have not effect. This is a little confusing.
I look forward to next official RC. The nightly builds come without mingw and I do like to have everything installed after single button-click :)
Thanks for prompt replies. Code::blocks in nice anyway :)
Piotr
Piotr:
I would like to add 2 things
1. The path settings for QT template are wrong: instead of \include\QT\QTGui or \include\QT\QTCore should be \include\QTGui and \include\QTCore.
2. With these paths corrected, the official release is able to find all header files, these without .h extension as well.
On the other hand, the latest nightly build can't find ANY header file for QT project, even those with good old .h extension.
Piotr
yop:
Finding the correct path to the Qt headers is the least of the problems when building a Qt project. Meta compilation is the major issue.
Michael:
--- Quote from: yop on March 31, 2006, 11:11:03 am ---Meta compilation is the major issue.
--- End quote ---
Would not be possible to use some kind of pre-build step in C::B for meta-compilation?
Best wishes,
Michael
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version