Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

wxWidgets >= 2.9 and contrib-plugins

<< < (4/4)

a1fred0:
Hello good developers.  Trying to build version r8350 and am getting a build error in keybinder as follows:


--- Code: ---codeblocks-head\src\plugins\contrib\keybinder\cbkeybinder.cpp: In member function 'void cbKeyBinder::MergeAcceleratorTable(bool)':
codeblocks-head\src\plugins\contrib\keybinder\cbkeybinder.cpp:800:47: error: 'wxCharCodeMSWToWX' was not declared in this scope

--- End code ---

Running windows 32-bit, gcc (tdm-1) 4.6.1, wxWidgets 2.9.4 built from source with standard options.

Any ideas if this is a broken build or am I doing something wrong?  Thanks.

MortenMacFly:

--- Quote from: a1fred0 on September 04, 2012, 05:35:18 pm ---Any ideas if this is a broken build or am I doing something wrong?  Thanks.

--- End quote ---
Maybe a PCH issue - try to remove the *.gch files.Its working here just fine btw...

stahta01:

--- Quote from: a1fred0 on September 04, 2012, 05:35:18 pm ---Hello good developers.  Trying to build version r8350 and am getting a build error in keybinder as follows:


--- Code: ---codeblocks-head\src\plugins\contrib\keybinder\cbkeybinder.cpp: In member function 'void cbKeyBinder::MergeAcceleratorTable(bool)':
codeblocks-head\src\plugins\contrib\keybinder\cbkeybinder.cpp:800:47: error: 'wxCharCodeMSWToWX' was not declared in this scope

--- End code ---

Running windows 32-bit, gcc (tdm-1) 4.6.1, wxWidgets 2.9.4 built from source with standard options.

Any ideas if this is a broken build or am I doing something wrong?  Thanks.

--- End quote ---

That use of wxCharCodeMSWToWX was added to Key binder this last week.
WxWidgets 2.9 has removed support for wxCharCodeMSWToWX; replaced with an keyboard MSW class function that does not work exactly the same so the name was changed.

See also http://trac.wxwidgets.org/ticket/12508

Revision 8328 looks like when the wxCharCodeMSWToWX was added. I am guessing that it might be an easy fix (using wxMSWKeyboard::VKToWX on widows not sure what is used on GTK); but, you have to use a private wxWidgets header to do that fix. So, I am not sure what is best to do.

Tim S.

Jenna:
Private wxWidgets header should work with self-build wxWidgets, but might fail with third-party releases.

The MergeAccelleratorTable stuf is not implemented for wxGTK, if I have seen it correctly.
That might be the cause, why I did not stumble over it.

I will try a windows build this evening (most likely).

Navigation

[0] Message Index

[*] Previous page

Go to full version