Closed ildar closed 7 years ago
@ildar, this doesn't seem to be related to wxGTK version, but rather to the version of wxwidgets you are using. What version are you compiling with? What build commands?
git HEAD which is https://github.com/wxWidgets/wxWidgets/commit/9662be097d9d41c4b238fd2de3460e282bf64fa6 . The reason for that is that to build wxlua the tag 3.1 is too old and git HEAD is too new :)
To be clear:
@ildar, give it a try; I updated the binding to fix the issues, but only tested on Windows so far. This should work with the current wxwidgets trunk, but may not work with earlier versions (especially those between 3.1.0 and 3.1.1).
Also, some of the constants have been removed, which I fixed in ZeroBrane Studio with the following fragment:
-- wxwidgets 3.1.1+ replaced wxSTC_SCMOD_* with wxSTC_KEYMOD_*; map both for compatibility
for _, key in ipairs({"ALT", "CTRL", "SHIFT", "META", "SUPER", "NORM"}) do
local scmod = "wxSTC_SCMOD_"..key
local keymod = "wxSTC_KEYMOD_"..key
if wxstc[scmod] and not wxstc[keymod] then
wxstc[keymod] = wxstc[scmod]
elseif not wxstc[scmod] and wxstc[keymod] then
wxstc[scmod] = wxstc[keymod]
end
end
Thanks a lot! Will do it ASAP
@ildar, did the updates fix the issue for you?
Yep, thanks a lot. Still investigating https://github.com/pkulchenko/wxlua/issues/5 . This one is done for now, thanks again.
I got failure building with the latest GIT wxGTK3.1: some constants were removed from interface/wx/stc/stc.h, hence the error I experience:
etc etc