I was just building several 3rd Party CB Plugins and I wondered why the wxscintilla_cb is a static Library in Windows?
And, if it needs to be a static Library in Windows could we ship it will the CB Windows Installer?
Its seems to be the main/only Library missing for building 3rd Party CB Plugins.
The others are shipped as DLLs and you can link directly to them.
I am working on making CB Plugin wizard better from at least my view point (for Windows Users).
Tim S.
I'd first check if the 3rd Party Plugins really have to be linked against wxscintilla_cb. If you search the C::B source tree, only 'Codeblocks-SDK' and 'Tools Plus' are explicitly linked against it. Even 'Tools Plus' builds and links fine without it (just tested on linux).
Grep *.cbp for "library=\"wxscintilla_cb\"":
$ grep "library=\"wxscintilla_cb\"" $(find . -name "*.cbp")
./CodeBlocks-unix.cbp: <Add library="wxscintilla_cb" />
./CodeBlocks.cbp: <Add library="wxscintilla_cb" />
./CodeBlocks_wx29-unix.cbp: <Add library="wxscintilla_cb" />
./CodeBlocks_wx29.cbp: <Add library="wxscintilla_cb" />
./CodeBlocks_wx29_64.cbp: <Add library="wxscintilla_cb" />
./CodeBlocks_wx30-unix.cbp: <Add library="wxscintilla_cb" />
./CodeBlocks_wx30.cbp: <Add library="wxscintilla_cb" />
./CodeBlocks_wx30_64.cbp: <Add library="wxscintilla_cb" />
./plugins/contrib/ToolsPlus/ToolsPlus-unix.cbp: <Add library="wxscintilla_cb" />
./plugins/contrib/ToolsPlus/ToolsPlus.cbp: <Add library="wxscintilla_cb" />
./plugins/contrib/ToolsPlus/ToolsPlus_wx29-unix.cbp: <Add library="wxscintilla_cb" />
./plugins/contrib/ToolsPlus/ToolsPlus_wx30-unix.cbp: <Add library="wxscintilla_cb" />
- osdt
The static libs wxscintilla_cb and tinyxml are both part of the CodeBlocks library therefore the linking and dependency on them should not exist outside of building the CodeBlocks library. One known exception is the CB Config Share standalone executable.
The sdk/propgrid library search folder should NOT be used in wxWidgets 3.0 CB Projects.
I am testing patches to fix these issues right now.
Likely take an hour or two to finish testing.
Will attach patches to this post later today.
Tested Windows wx30 32-bit projects ONLY.
Index: src/CodeBlocks_wx30.cbp
===================================================================
--- src/CodeBlocks_wx30.cbp (revision 9521)
+++ src/CodeBlocks_wx30.cbp (working copy)
@@ -166,7 +166,6 @@
<Add library="gdi32" />
<Add directory="devel30" />
<Add directory="sdk/scripting/lib" />
- <Add directory="sdk/propgrid" />
</Linker>
<ExtraCommands>
<Add before="build_tools/autorevision/autorevision30 +wx +int +t . include/autorevision.h" />
Index: src/CodeBlocks_wx30_64.cbp
===================================================================
--- src/CodeBlocks_wx30_64.cbp (revision 9521)
+++ src/CodeBlocks_wx30_64.cbp (working copy)
@@ -166,7 +166,6 @@
<Add library="gdi32" />
<Add directory="devel30_64" />
<Add directory="sdk/scripting/lib" />
- <Add directory="sdk/propgrid" />
</Linker>
<ExtraCommands>
<Add before="build_tools/autorevision/autorevision30_64 +wx +int +t . include/autorevision.h" />
Removed deleted patch(es) that was applied to SVN.
Tim S.