Author Topic: wxWidgets >= 2.9 and contrib-plugins  (Read 22205 times)

Offline a1fred0

  • Single posting newcomer
  • *
  • Posts: 3
Re: wxWidgets >= 2.9 and contrib-plugins
« Reply #15 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

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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: wxWidgets >= 2.9 and contrib-plugins
« Reply #16 on: September 04, 2012, 05:44:52 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: wxWidgets >= 2.9 and contrib-plugins
« Reply #17 on: September 04, 2012, 07:09:24 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

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.
« Last Edit: September 04, 2012, 07:22:47 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: wxWidgets >= 2.9 and contrib-plugins
« Reply #18 on: September 04, 2012, 08:18:47 pm »
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).