Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

[Solved] Developing wxSmith extension in linux get error

<< < (2/4) > >>

byo:

--- Quote from: MortenMacFly on December 03, 2008, 10:15:48 am ---I once voted for enabling logging automatically if you use the --safe-mode command line switch. I would like to bring this up again. This is way easier than re-compiling C::B. In addition if I run "Safe Mode" I usually want to debug somehting so it makes sense... at least to me.

Any objections???

--- End quote ---

True, I vote for this too. Currently I keep development sources with logging always enabled and release sources I to see the svn version running. Such option would ease the development process.


--- Quote from: Ganbito on December 03, 2008, 12:15:02 pm ---Then, when I try to install the plugin, in addition to the already mentioned, I get this missing symbol:

--- Code: ---/home/cesar/.codeblocks/share/codeblocks/plugins/wxSmithChartItem.so: undefined symbol: _ZN7wxsItem20OnGetPropertiesFlagsEv
--- End code ---

--- End quote ---

It looks like you don't link your plugin with wxsmithlib. This is required when you want to extend wxSmith's functionality

BTW wxChartCtrl is already included in wxSmithContribItems plugin, do you want to extend it's functionality? Or is this just an research project ?

Regards
   BYO

Ganbito:
Yes, that's my fault.

I'm relatively new to linux programming and to codeblocks and I'm used to include libs with linux commands like `wx-config --libs` and I forget to include them as it has been added by `pkg-config --libs codeblocks`.

After linking wxsmithlib I get another symbol missed error, this time about the control, but I think that I can now manage it.

You're right, this is only an research project for testing that it works and I am just follow the wiki article. In the first post I mention two of the items I want to include, bur they aren't really important, because I can use them with an wxCustomCtrl, but they help me practice with wxsmith extensions for items of wxAui that are more difficult to manage with an wxCustomCtrl.

Code gurus can say to me that good developers write it all (and, really, that is the best way for learn). But, having an UI editor like wxsmith, I prefer not to mix UI created by wxsmith and UI coded by hand.

If finally I create any good extension, I will report them in this forum.

Thank you so much.

Edit: I think that the actual behavior of wxsmith of installing only the .so lib and not the headers (at least in linux) is confusing and a bit annoying because it makes people like me to include the lib from a linux dir (/usr/lib or /usr/local/lib) and headers from its source.

Ganbito:
I still getting the last error.

As it seems that the undefined symbol belongs to the component, I link the .so of the component, but I get the same missing symbol.

Then, I think that it could be an error derived from my build of wxChartCtrl, so I try with one of the included with wxWidgets, wxStyledTextCtrl, but I get the same error, this time, the missing symbol seems to be from wxStyledTextCtrl, so I add that .so (after see that it is no called by wx-config --libs), but the error persists.

Jenna:
What's the errormessage ?


--- Quote from: Ganbito on December 04, 2008, 02:07:00 am ---Edit: I think that the actual behavior of wxsmith of installing only the .so lib and not the headers (at least in linux) is confusing and a bit annoying because it makes people like me to include the lib from a linux dir (/usr/lib or /usr/local/lib) and headers from its source.

--- End quote ---

I will have a look on it (maybe this weekend), at least for my debian repo.

Ganbito:
For wxStyledTextCtrl, undefined symbol: wxSTCNameStr. I search for it in wx/stc/stc.h:

--- Code: ---1802 #ifndef SWIG
1803 extern WXDLLIMPEXP_STC const wxChar* wxSTCNameStr;
1804 class  WXDLLIMPEXP_STC wxStyledTextCtrl;
1805 class  WXDLLIMPEXP_STC wxStyledTextEvent;
1806 #endif

--- End code ---
So, if it isn't defined linking "libwx_gtk2u_stc_2.8.so", I don't know how to solve it.

For wxChartItem, undefined symbol: _ZTV16wxPieChartPoints. This time I link "libwxchart.so", but I get that codeblocks can't find "libwxchart.so.0". I think this is because I can't install wxChart due to a error in the sample program included with wxChart, but I have itself build in it's source directory, so I linked that .so.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version