Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
QtWorkbench plugin
Methedrine:
--- Quote from: zithen on November 01, 2006, 03:57:35 am ---Hi, I'm pretty new to programming and I would like to learn via Qt and Code::Blocks.
I'm trying to build the files for the Qtworkbench plugin, but I'm getting build errors, where it says that it can't find certain header files, such as
#include <sys/utsname.h>
#endif
#include <wx/tokenzr.h>
#include <sdk.h>
#include <settings.h>
#include <cbproject.h>
#include <compiler.h>
#include <wx/dir.h>
etc.
Sorry, I'm pretty green, but I'd appreciate the help. What am I doing wrong and how do I config Code::Blocks to load the files?
Thanks
Adam
--- End quote ---
You have to make sure that your include paths are correct and contain the files listed above. Apart from that, however, it is unlikely that QtWorkbench will compile because codeblock's plug-in interface recently changed.
zithen:
Hi,
I appreciate you answering my question. Since I'm new to all this, I having trouble finding out how to set these files. How do you set up the include files in code::blocks? I'm using Windows.
Thanks again...
Adam
yop:
Hi zithen,
did you use the provided code::blocks project or did you try to set up your own? The needed directories are already included in that project file so you shouldn't have to do anything. Also the <sys/utsname.h> is a *nix specific inclusion used to determine what kind of *nix flavor you are running on, it shouldn't be included in a windows compilation. Use the provided project file (qtworkbench.cbp) and it hould compile out of the box. I haven't used windows for quite a while though so I 'm not 100% sure that it will but I can take a look at it and get back to you.
Generally for the plugin, I tried to use the actual qmake sources for the parser but I have to reinvent the wheel in many cases (provide a hash table, directory browser, regular expressions etc) that are already there and provided for Qt, so I kind of gave up on the thought and returned to the one I had about using a lexer/parser. I am really stressed at work (and it seems that this will be the case until Christmas) so I don't really know when I 'll be able to pick it up again...
Sepidar:
hi yop;
after reading all of discussions you made, at last i could not compile qtworkbench with your plugin. so i want to suggest you a bad-but-working way to solve these build-problems specially for dummies like me: just upload files are needed to install the plugin (DLL, ZIP, setup.bat and etc.).
Thanks
stahta01:
FYI:
The code::blocks SVN 3222 caused an compile issue patch below:
Tim S
PS: If you can NOT compile code::blocks from SVN, do NOT ask me any questions about this patch because you can NOT use this patch without knowing how to compile code::blocks from SVN.
Index: src/qtwprogenerator.cpp
===================================================================
--- src/qtwprogenerator.cpp (revision 13)
+++ src/qtwprogenerator.cpp (working copy)
@@ -951,7 +951,7 @@
DoAddProOptions(TargetProBuffer,target);
DoAddConfiguration(TargetProBuffer,target);
- Manager::Get()->GetMacrosManager()->ReplaceMacros(TargetProBuffer, true);
+ Manager::Get()->GetMacrosManager()->ReplaceMacros(TargetProBuffer);
wxFile file(TargetProFilenameString, wxFile::write);
cbWrite(file,TargetProBuffer);
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version