Author Topic: rev 4741 - Problems w/plugin loading (missing symbols ?)  (Read 4280 times)

skytiger

  • Guest
rev 4741 - Problems w/plugin loading (missing symbols ?)
« on: December 22, 2007, 09:23:50 am »
Hi !
I'm new with this software, I think it's an excellent work !

I'm currently having a problem which I could not found any solution in previous posts, but I saw this problem appeared in past releases.
It occurs when starts B::C and appears:
path-to/libwxsmith.so: not loaded (missing symbols?)

Here is a detailed explanation:

1- I have the rev. 4741
2- I have compiled and installed this version, sucessfuly, with wxWidgets 2.8.6 on a Linux (Debian, kernel 2.6.x), etc.
3- When I tried to compile wxSmith (with make), I found an error in file wxscoder.cpp
A simple datatype conflict, solved with a simple cast.

//[Original-Code]
// DEF. wxsCoder::RebuildCode(wxString&, const wxChar*, int, wxString&)
//    Code = RebuildCode(BaseIndentation,Code.c_str(),(int)Code.Length(),EOL);


//[Changed-Code]
// DEF: wxsCoder::RebuildCode(wxString&, const wchar_t*, int, wxString&)
      Code = RebuildCode(BaseIndentation,(wchar_t*)Code.c_str(),(int)Code.Length(),EOL);

After this, everything compiles, later, by executing "make install" wxSmith is successfuly installed.
When I start B::C, a message appears, about an error loading wxSmith plugin.
Looking at log, I found this:

/usr/local/share/codeblocks/plugins/libwxsmith.so: not loaded (missing symbols?)

Is there any "recipe" in order to correct this problem ?

Thanks in advance.
SkyTiger.

Offline dje

  • Lives here!
  • ****
  • Posts: 682
Re: rev 4741 - Problems w/plugin loading (missing symbols ?)
« Reply #1 on: December 22, 2007, 02:21:16 pm »
Hi !

You should upgrade wxWidgets to 2.8.7
Wen I have the missing symbol problem, I change
Code
bool CodeBlocksApp::OnInit()
{
    wxLog::EnableLogging(false);
...
}
to
Code
bool CodeBlocksApp::OnInit()
{
    wxLog::EnableLogging(true);
...
}

That way, you may get the missing info.

Dje

skytiger

  • Guest
Re: rev 4741 - Problems w/plugin loading (missing symbols ?)
« Reply #2 on: December 23, 2007, 12:21:31 am »
Hi!,
Thanks for your suggestion, but sadly it don't solves the problem  :(

I can't compile the last stable version, because it gives a lot of compilation errors (deprecations, bad function calls, etc.).
I don't have this kind of problems compiling a new development version.
But I'm interested in use (and potentialy in development) of plugins, particularly wxSmith and after hours trying to build a complete release, I can't test this features.

I just need a version which I can compile and use all this mentioned features (not installed from packages like .deb, rpm, etc.).
With wxWidgets 2.8.6 compiled and installed in a simple, common and basic Linux environment.
I'll be gratefull for any contribution in order to reach this objective.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: rev 4741 - Problems w/plugin loading (missing symbols ?)
« Reply #3 on: December 23, 2007, 10:22:21 am »
With wxWidgets 2.8.6 compiled and installed in a simple, common and basic Linux environment.
I'll be gratefull for any contribution in order to reach this objective.

As dje wrote: try to upgrade to wxWidgets 2.8.7.
You can download the sources from http://wxwidgets.org/downloads/.
Or if you are on Ubuntu or debian you can download binary packages.

I can't compile the last stable version, because it gives a lot of compilation errors (deprecations, bad function calls, etc.).

The latest stable version (1.0rc2) is very old and should no longer be used.
The recent nightly builds are in the most cases more stable then 1.0rc2 and have much more features.

... and I can compile them all without any problems on debian (stable, testing, unstable and unstable/experimental-mix), W2K SP4 and WinXP SP2.
On Windows I use a self-compiled wxWidgets 2.8.7 as described in the Nightly_Cookbook and the MinGW's gcc port in the version gcc-4.2.1-dw2.