I am probably missing something obvious here but how do I install the wxSmith in Linux? I opened the project and it compiled fine. The update script failed the first time due to permissions but appeared to run OK after I ran C::B as root. What do I do now?
If You have compiled wxSmith, all You need is to copy the result to proper directories:
cp -R CB_SRC_DIR/src/devel/share/CodeBlocks/* /usr/local/share/codedblocks
But unfortunately It fails to load :oops:. I don't know why, perhaps some undefined references or something like that (I don't know exactly since C::B doesn't show error messages when loading plugins, there's only notification that it failed).
So maybe You'll have to wait some time for Linux-compatible wxSmith :(
...
But I've copied and checked - files were where in right place. The same happen inside profiler plugin. Is there any way to get error message ? Any ideas ?
I try investigate it yesterday. I have low experience, then I can't understand.
Results of my investigate see below:
In sdk/pluginmanager.cpp:
in cbPlugin* PluginManager::LoadPlugin(const wxString& pluginName)
I comment line:
// wxLogNull zero; // no need for error messages; we check everything ourselves...
And I see next message box on start C::B:
22:39:03: /usr/local/share/codeblocks/plugins/libwxsmith.so: undefined symbol: _ZTV7wxSmith
22:39:03: /usr/local/share/codeblocks/plugins/libprofiler.so: undefined symbol: _ZTV10CBProfiler
As I see, cbprofiler has a similar problem, too. :o
I look libwxsmith.o, and look an empty list, wow!
Unstrupped version libwxsmith.so content list, but _ZTV7wxSmith haven't address.
I don't understand this. Anybody can help?
Makefile.unix for wxSmith is very very different from (for example) the codestat plugin.
I used SuSE 10.
./configure <adlasdf> --with-contrib-plugins=all
Pass this option and rebuild.