-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STC binding constants removed #4
Comments
@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
wxWidgets/wxWidgets@9662be0
.
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:
1. I first tried to build wxlua against wxGTK 3.1, failed with missing
methods (details https://bugzilla.altlinux.org/33929 )
2. updated wxGTK to the git HEAD
3. tried building wxlua again, failed, missing constants in wxGTK
|
@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 #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
The text was updated successfully, but these errors were encountered: