From: John L. <jla...@gm...> - 2005-11-20 00:28:05
|
Ray, to hold us over for a bit, could you please take a look at the current genwxbind.lua file. It doesn't seem to want to wrap wxICON_QUESTION and some other %defines for some reason. I cannot seem to figure out why and currently there's some debugging code in it to show you what the problem is. Look for the FIXME lines, you should be able to see that in the function ParseData(interfaceData) the %define wxICON_QUESTION is parsed (from dialogs.i), but mysteriously by the time it gets to GenerateLuaLanguageBinding(interface) it's gone. I've added a function DumpTable and have tried to compare some of the %defines that do work with those that don't, but I cannot see any difference. I have changed the code slightly to not write directly to the files, but rather to fill a table with the code and compare with the existing file to save on compilation time, but the functions where the problem seems to be should be pretty much the way you had them. All you need to do is run genwxbind.lua in the bindings dir. You can look at apps/wxlua/src/Makefile_import to see what the proper command like would be for MSW or just run make -f Makefile_import directly in linux. The output is put into modules/wxbind/src and the error.txt file (where my debugging stuff is written) is in bindings/wxwidgets. Just about everything works, execept for genwxbind missing some %defines. Thanks, John Labenski |