-
Notifications
You must be signed in to change notification settings - Fork 59
building error in branch wxwidges310 #2
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
Comments
The bindings are generated from .i interface files, which are used to be written manually, but now can be generated using the script This is still strange as I've compiled wxlua library for ZeroBrane Studio with wxGL support and without any issues. Are you trying to compile it on MacOS? Here is how the definition looks in the interface file:
So, it looks like it explicitly uses |
@dingmingxin, can you also try building using wxwidgets311 branch? wxwidgets310 was a temporary branch I've been working on and wxwidgets311 should also support earlier versions (like wxwidgets 3.0 and wxwidgets 3.1), just not all methods may be available. |
My environment is macos 10.12.5. |
ok; update the ticket with the results when you get a chance. |
In branch wxwidgets311, the same error occurs. |
After I comment the lines which cause the error above, and continue to compile, I got this: [ 33%] Building CXX object modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxadv_bind.cpp.o
/Users/dmx/Documents/wxwidgets/wxlua/wxLua/modules/wxbind/src/wxadv_bind.cpp:16296:50: error: use of undeclared identifier 'wxGRIDTABLE_REQUEST_VIEW_GET_VALUES'
{ "wxGRIDTABLE_REQUEST_VIEW_GET_VALUES", wxGRIDTABLE_REQUEST_VIEW_GET_VALUES },
^
/Users/dmx/Documents/wxwidgets/wxlua/wxLua/modules/wxbind/src/wxadv_bind.cpp:16297:51: error: use of undeclared identifier 'wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES'
{ "wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES", wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES },
^
/Users/dmx/Documents/wxwidgets/wxlua/wxLua/modules/wxbind/src/wxadv_bind.cpp:16367:19: error: invalid application of 'sizeof' to an incomplete type
'wxLuaBindNumber []'
count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1;
^~~~~~~~~~~~
3 errors generated.
make[2]: *** [modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxadv_bind.cpp.o] Error 1
make[1]: *** [modules/wxbind/CMakeFiles/wxLuaBindLib.dir/all] Error 2
make: *** [all] Error 2 It seems like that using sizeof on a static array is illegal when crossing compile with c and c++. |
@dingmingxin, that's interesting. I wonder what compiler (and version) you are using. I've compiled with the following configure command for wxwidgets:
and the following cmake command for wxlua:
|
@dingmingxin, do you still have the issue with the commands I shown earlier? |
@dingmingxin, closing for now; feel free to reopen if you have additional information. |
How to fix this?
Is the binding code writed manually or generated by program ?
The text was updated successfully, but these errors were encountered: