News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

wxWidgets >= 2.9 and contrib-plugins

Started by Jenna, August 29, 2012, 10:41:26 AM

Previous topic - Next topic

a1fred0

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

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


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.
Maybe a PCH issue - try to remove the *.gch files.Its working here just fine btw...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

stahta01

#17
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:

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


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.

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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).