News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[wxSmith] How do I install it?

Started by lesnewell, November 06, 2005, 06:39:14 PM

Previous topic - Next topic

lesnewell

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?

cyberkoa

I never try in Linux before but it should be the same . Under menu "Plugins" > Manage Plugins , check the wxSmith v1.0 . You need to restart Code Blocks .

After restart , you can see an extra Menu Item named "wxSmith"  , and you can follow the tutorial in the wiki written by byo to play with wxSmith :)
The tutorial is at http://wiki.codeblocks.org/index.php/WxSmith_Tutorial_%26_Pointers

byo

Quote from: lesnewell on November 06, 2005, 06:39:14 PM
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 :(

Urxae

Quote from: byo on November 07, 2005, 01:30:24 PM
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 :(

If that cp command-line is a copy-paste of what you typed, it might be the fact that you have a typo in there (extra 'd'). Also, I don't use the Linux version, but are you sure it's not /CodeBlocks at the end? (Linux filenames are case-sensitive)

lesnewell

I will experiment further. wxSmith works great on my Windows box. Thanks.

byo

Quote from: Urxae on November 07, 2005, 03:08:12 PM
If that cp command-line is a copy-paste of what you typed, it might be the fact that you have a typo in there (extra 'd'). Also, I don't use the Linux version, but are you sure it's not /CodeBlocks at the end? (Linux filenames are case-sensitive)

Yop, should be CodeBlocks :oops: (I don't know what's going on - I've switched to other keyboard and I sometimes have such additional letters, and keyboard is working properly, so there must be a bug in my head but it's hard to trace ;) ).
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 ?

kisoft

Quote from: byo on November 07, 2005, 06:09:47 PM
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 ?

On my SuSE 10 I see this bug. Plugin can't loaded.
Need open comments (output into a debug window) in pluginmanager.cpp & compile C::B.
Run C::B & see the Debug Log window.
I can't time now, but try test it later (2-3 days).
I use this method early, then try start the svn plugin on my Win.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

kisoft

Quote from: byo on November 07, 2005, 06:09:47 PM
...
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.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

skprog

bump as i too am having an issue installing wxsmith. i have done a compile make install of codeblocks and the program works

but for some reason im missing all the plug ins except built in plug ins.

im missing all the contrib plug ins.

i even rebuilt recompiled codeblocks with make uninstall and other commands to clean it. still to no success

im afraid i have failed.

would appreciate some input on the matter. k thanks

oBFusCATed


./configure <adlasdf> --with-contrib-plugins=all

Pass this option and rebuild.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

#10
In general it's a good ide to run ./configure --help .

That's valid for all autotools based projects, not just C::B !