Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
QtWorkbench plugin
lgarrido:
I have tried to get this plugin running in Fedora Core 4. The steps I followed were:
- Install latest rpm (CB_20060407_rev2321_fc4.rpm) It fails with the following error:
06:03:18 PM: XRC resource 'pnlCB' (class 'wxPanel') not found!
06:03:18 PM: Cannot find container for unknown control 'txtSearch'.
- Then I installed codeblocks-1.0_0.svn.2212-0.fc4.i386.rpm Seems to work OK.
- Downloaded and unzipped QtWorkbench-0.3.1alpha.zip to ~/devel/testCodeBlocks
- Checked out matching SVN to ~/devel/testCodeBlocks/cb:
svn checkout --revision 2212 svn://svn.berlios.de/codeblocks/trunk cb
When I load the QtWB project it asks me to fill the value of cb. According to
http://wiki.codeblocks.org/index.php?title=Recommended_global_variables
I set cb to ~/devel/testCodeBlocks/cb/src
Now I hit the build button and get a bunch of errors. This gets solved by adding
/usr/include/wx-2.6
~/devel/testCodeBlocks/cb/src
to the " Project | Build options | Directories | Compiler " tab.
I get some
cc1plus: note: obsolete option -I- used, please use -iquote instead
messages, but it seems to build correctly. As root I install it
cp -r devel/testCodeBlocks/QtWorkbench/out/share /usr/
Then I restart CB and I get the following error
05:49:34 PM: XML parsing error: 'not well-formed (invalid token)' at line 23
05:49:34 PM: Cannot load resources from file '/usr/share/codeblocks/QtWorkbench.
zip#zip:qtworkbench_menu.xrc'.
05:49:34 PM: XML parsing error: 'not well-formed (invalid token)' at line 23
05:49:34 PM: Cannot load resources from file '/usr/share/codeblocks/QtWorkbench.
zip#zip:qtworkbench_menu.xrc'.
05:49:34 PM: XML parsing error: 'not well-formed (invalid token)' at line 23
05:49:34 PM: Cannot load resources from file '/usr/share/codeblocks/QtWorkbench.
zip#zip:qtworkbench_menu.xrc'.
05:49:34 PM: XML parsing error: 'not well-formed (invalid token)' at line 23
05:49:34 PM: Cannot load resources from file '/usr/share/codeblocks/QtWorkbench.
zip#zip:qtworkbench_menu.xrc'.
05:49:35 PM: XML parsing error: 'not well-formed (invalid token)' at line 23
05:49:35 PM: Cannot load resources from file '/usr/share/codeblocks/QtWorkbench.
zip#zip:qtworkbench_menu.xrc'.
05:49:35 PM: XML parsing error: 'not well-formed (invalid token)' at line 23
05:49:35 PM: Cannot load resources from file '/usr/share/codeblocks/QtWorkbench.
zip#zip:qtworkbench_menu.xrc'.
05:49:35 PM: XRC resource 'qtworkbench_menu' (class 'wxMenu') not found!
05:49:35 PM: XML parsing error: 'not well-formed (invalid token)' at line 23
05:49:35 PM: Cannot load resources from file '/usr/share/codeblocks/QtWorkbench.
zip#zip:qtworkbench_menu.xrc'.
05:49:35 PM: XML parsing error: 'not well-formed (invalid token)' at line 23
05:49:35 PM: Cannot load resources from file '/usr/share/codeblocks/QtWorkbench.
zip#zip:qtworkbench_menu.xrc'.
05:49:35 PM: XML parsing error: 'not well-formed (invalid token)' at line 23
05:49:35 PM: Cannot load resources from file '/usr/share/codeblocks/QtWorkbench.
zip#zip:qtworkbench_menu.xrc'.
I passed the xrc files through dos2unix, rebuilt and reinstalled with the same results.
Thoughts, anyone?
Cheers,
Luis
briahn06:
I got a much simpler error, I hope.
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26u
collect2: ld returned 1 exit status
The rest of the plugin compiled successfully except for this one error. Any ideas?
MortenMacFly:
--- Quote from: briahn06 on April 09, 2006, 08:00:06 pm ---C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26u
--- End quote ---
A quick search through the forum for "cannot find -lwxmsw26u" would have revealed the reason multiple times: You either have not the wxWidgets SDK installed or the directories for the linker are not setup correctly.
With regards, Morten.
briahn06:
Sorry... I'm usually diligent with the search, but I figured this was a QTWorkBench ony problem... guess not, thanks for the info though.
I HAVE SUCCESSFULLY gotten it to build and at least show up/work as a plugin in my cb. I have yet to see if the functions actually work though, but I am nonetheless excited.
yop:
@ lgarrido: Did you open up the qtworkbench-linux.cbp or the qtworkbench.cbp? AFAIR the later has these problems on linux that's why I seperated them.
@ briahn06: Hope you find it useful ;)
@morten: Thanks for the support :) My pc at home is emerging kde so I don't really have a pc ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version