John Labenski wrote: > > You used to have to generate those using the Makefile in the bindings > dir. You can now use the bindings/wx_datatypes.lua file in the rules > file variable datatype_cache_input_fileTable. > > >> I would appreciate if you can fix that sample? >> > > The sample works fine for me. What is the problem? > lua -e"rulesFilename=\"wxluacan_rules.lua\"" ../../../bindings/genwxbind.lua gives errors (see down here). I tried genwxbind.sh ( contains wxlua-lua which is not found, so i changed it to ../bin/wxlua ), but also errors. And it looks like on windows i also get error, but did not manage to compile it yet missing this opengl lib. But if i run genwxbind.bat, there is a similar error at the end. (the find down here).
So i wonder if you can run the regeneration scripts from the bindings on windows and unix without a problem? Klaas Loaded rules file: wxluacan_rules.lua ERROR: Unable to load datatypes cache file: ../../../bindings/wxwidgets/wxcore_datatypes.lua Timing: BuildDataTypeTable 0 seconds. ERROR: Expected Parameter '=', ')', or ',' got Tag='&'. (Name=wxPen; DataType=nil) File: './wxluacan.i':(line 12) ' void SetPen( const wxPen& pen )' ERROR: Expected Parameter '=', ')', or ',' got Tag='pen'. (Name=wxPen; DataType=nil) File: './wxluacan.i':(line 12) ' void SetPen( const wxPen& pen )' ERROR: Expected Parameter '=', ')', or ',' got Tag='&'. (Name=wxBrush; DataType=nil) File: './wxluacan.i':(line 13) ' void SetBrush( const wxBrush& brush )' ERROR: Expected Parameter '=', ')', or ',' got Tag='brush'. (Name=wxBrush; DataType=nil) File: './wxluacan.i':(line 13) ' void SetBrush( const wxBrush& brush )' ERROR: Expected Parameter '=', ')', or ',' got Tag='*'. (Name=wxWindow; DataType=nil) File: './wxluacan.i':(line 36) ' wxlCan( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize )' ERROR: Expected Parameter '=', ')', or ',' got Tag='parent'. (Name=wxWindow; DataType=nil) File: './wxluacan.i':(line 36) ' wxlCan( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize )' ERROR: Method Parameter requires DataType to be assigned. File: './wxluacan.i':(line 36) ' wxlCan( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize )' ERROR: Expected Parameter '=', ')', or ',' got Tag='&'. (Name=wxPoint; DataType=nil) File: './wxluacan.i':(line 36) ' wxlCan( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize )' ERROR: Expected Parameter '=', ')', or ',' got Tag='pos'. (Name=wxPoint; DataType=nil) File: './wxluacan.i':(line 36) ' wxlCan( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize )' ERROR: Method Parameter requires DataType to be assigned. File: './wxluacan.i':(line 36) ' wxlCan( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize )' ERROR: Expected Parameter '=', ')', or ',' got Tag='&'. (Name=wxSize; DataType=nil) File: './wxluacan.i':(line 36) ' wxlCan( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize )' ERROR: Expected Parameter '=', ')', or ',' got Tag='size'. (Name=wxSize; DataType=nil) File: './wxluacan.i':(line 36) ' wxlCan( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize )' Timing: ParseData 0 seconds. lua: ../../../bindings/genwxbind.lua:3065: bad argument #1 to 'find' (string expected, got nil) stack traceback: [C]: in function 'find' ../../../bindings/genwxbind.lua:3065: in function 'GenerateLuaLanguageBinding' ../../../bindings/genwxbind.lua:1475: in function 'WriteWrapperFiles' ../../../bindings/genwxbind.lua:4899: in function 'main' ../../../bindings/genwxbind.lua:4917: in main chunk [C]: ? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users