|
From: Francesco M. <f18...@ya...> - 2005-06-15 01:39:40
|
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
nmake -fmakefile.vc WX_UNICODE=1
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=\"msw\"" ..\..\wxlua\src\wrap.lua
Finding wxWindows Path Using Environment Variable : WXWIN=c:\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 `ReadSetupFiles'
../../../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.
I put that step (..\..\..\bin\lua -e"target=\"msw\""
..\..\wxlua\src\wrap.lua) looking at the DSP file... what am I missing ?
>> 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.
Let me know,
Francesco
|