From: John L. <jla...@gm...> - 2005-06-15 03:17:49
|
On 6/14/05, Francesco Montorsi <f18...@ya...> wrote: > Hi, > now wxLua bakefiles are in good state: you should be able to use them > (from command-line) to build all modules & bin2c. > I have some problem with apps\wxlua: when compiling with >=20 > nmake -fmakefile.vc WX_UNICODE=3D1 From what dir? > I get: > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 > Copyright (C) Microsoft Corp 1988-1998. All rights reserved. > ..\..\..\bin\lua -e"target=3D\"msw\"" ..\..\wxlua\src\wrap.lua > Finding wxWindows Path Using Environment Variable : WXWIN=3Dc:\wxWidgets > Target is : msw > Parsing wxWindows Version File: c:\wxWidgets/include/wx/version.h > Parsing wxWindows Setup File: c:\wxWidgets/include/wx/msw/setup.h > Setup: Compatibility For wxWindows Version 2.4 > Output File: wxluawrap.cpp > Parsing Lua Setup File: luasetup.h.in > ..\..\..\bin\lua: ../../../bindings/wxluawrap.lua:1834: bad argument #1 > to `line > s' (No such file or directory) > stack traceback: > [C]: in function `lines' > ../../../bindings/wxluawrap.lua:1834: in function `ReadSetupFile= s' > ../../../bindings/wxluawrap.lua:1909: in function `main' > ../../../bindings/wxluawrap.lua:3225: in main chunk > [C]: in function `dofile' > ..\..\wxlua\src\wrap.lua:11: in main chunk > [C]: ? > NMAKE : fatal error U1077: '..\..\..\bin\lua' : return code '0x1' > Stop. > NMAKE : fatal error U1077: '"C:\Programmi\Microsoft Visual > Studio\VC98\bin\NMAKE > .EXE"' : return code '0x2' > Stop. >=20 > I put that step (..\..\..\bin\lua -e"target=3D\"msw\"" > ..\..\wxlua\src\wrap.lua) looking at the DSP file... what am I missing ? You need to make sure that the dirs are correct. We have to use all relative paths so that if you're building in wxLua/build/msw you probably have to have something like this. First go to apps/wxlua/src dir then run wrap.bat (or directly call wrap.lua as you do) then go back to build/msw. cd ..\..\apps\wxlua\src && "wrap.bat" && cd ..\..\..\build\msw=20 > >> When you run bindings/wxluawrap.lua it takes either the luasetup.h.in > >> the bindings dir or in your own program's dir and generates luasetup.h > >> that may exclude other classes automatically using their dependencies. > >> It can be updated by hand. Please see apps/wxlua/wrap.bat/lua and > >> Makefile_import to see how the wrappers are generated. It's build is > >> also automated in apps/wxlua/src/wxlua_wx26.dsp running wrap.bat to > >> generate wxluawrap.cpp, can bakefile do this sort of thing? > as you can see from the output log above, I created a target in > makefiles ("wrap") which calls the lua.exe file on > apps/wxlua/src/wrap.lua... the only problem is that bakefile does not > know how to build files with extension ".i" so I had to include in > apps\wxlua sources the file bindings\wxwidgets\wxluawrap.c which the > makefiles generate just copying the bindings\wxwidgets\wxluawrap.i > file... this is the only problem I've found. Don't spend too much time on this, we'll be using a whole different set to wrappers soon. Something like this, where we can build a lib out of it or just include them in your project. http://cvs.sourceforge.net/viewcvs.py/wxstudio/wxIDE/parts/cdlua/wxbind/ I'm having a hard time understanding the code to do it though. -John Labenski |