From: <af...@al...> - 2006-03-10 20:27:18
|
Was a bit surprised, when my new Lua 5.1 was overwritten by the old Lua 5.0.2 from wxLua... Is there any reason why it installs "lua" too ? (I only expected it to install the wxlua ones) --anders |
From: Francesco M. <f18...@ya...> - 2006-03-10 20:50:39
|
Anders F Björklund ha scritto: > > Was a bit surprised, when my new Lua 5.1 was > overwritten by the old Lua 5.0.2 from wxLua... > > Is there any reason why it installs "lua" too ? > (I only expected it to install the wxlua ones) well, wxLua embeds lua so I thought it was natural to install it. The lua library installed won't create any conflict since it's named something like: libwxlua_gtk2_lua-2.6.a maybe we should adopt a custom name also for the lua exec ? Maybe wxlua-lua ? Francesco |
From: <af...@al...> - 2006-03-10 21:52:13
|
Francesco Montorsi wrote: > well, wxLua embeds lua so I thought it was natural to install it. It should probably be installed under another name, though ? Otherwise it *will* cause conflicts. > The lua library installed won't create any conflict since it's named > something like: > libwxlua_gtk2_lua-2.6.a > > maybe we should adopt a custom name also for the lua exec ? > Maybe wxlua-lua ? You might want to do the same thing for the include dir, too... ? --anders PS. Download all fixed now. (not empty anymore) |
From: Francesco M. <f18...@ya...> - 2006-03-10 22:10:41
|
Anders F Björklund ha scritto: > Francesco Montorsi wrote: > >> well, wxLua embeds lua so I thought it was natural to install it. > > It should probably be installed under another name, though ? > > Otherwise it *will* cause conflicts. > >> The lua library installed won't create any conflict since it's named >> something like: >> libwxlua_gtk2_lua-2.6.a >> >> maybe we should adopt a custom name also for the lua exec ? >> Maybe wxlua-lua ? > > You might want to do the same thing for the include dir, too... ? the headers should not cause any conflict since they go in $PREFIX/include/lua/include (note the double include string in path - required for wxLua moduling system). IIRC correctly lua puts its headers in $PREFIX/include/lua, right ? Ok, it's not that clear which headers belong to lua and which ones to the lua shipped with wxLua... maybe we should change also these ? Francesco |
From: <af...@al...> - 2006-03-10 22:18:30
|
Francesco Montorsi wrote: >> You might want to do the same thing for the include dir, too... ? > the headers should not cause any conflict since they go in > $PREFIX/include/lua/include > > (note the double include string in path - required for wxLua moduling > system). IIRC correctly lua puts its headers in $PREFIX/include/lua, > right ? Almost, an example: /usr/local/include/lua.h /usr/local/include/luaconf.h /usr/local/include/lualib.h /usr/local/include/lauxlib.h /usr/local/include/lua.hpp > Ok, it's not that clear which headers belong to lua and which ones to > the lua shipped with wxLua... maybe we should change also these ? Just a thought... It's fine with me to not install the "vanilla" lua, but just the wxlua ? I've patched my Lua to support loading of Mac shared libraries, anyway... See http://www.algonet.se/~afb/lua/, using it to load "luaglut" for OpenGL --anders |
From: John L. <jla...@gm...> - 2006-03-10 23:05:05
|
On 3/10/06, Anders F Bj=F6rklund <af...@al...> wrote: > Francesco Montorsi wrote: > > >> You might want to do the same thing for the include dir, too... ? > > the headers should not cause any conflict since they go in > > $PREFIX/include/lua/include > > > > (note the double include string in path - required for wxLua moduling > > system). IIRC correctly lua puts its headers in $PREFIX/include/lua, > > right ? > > Almost, an example: > /usr/local/include/lua.h > /usr/local/include/luaconf.h > /usr/local/include/lualib.h > /usr/local/include/lauxlib.h > /usr/local/include/lua.hpp > > > Ok, it's not that clear which headers belong to lua and which ones to > > the lua shipped with wxLua... maybe we should change also these ? > > Just a thought... > > It's fine with me to not install the "vanilla" lua, but just the wxlua ? > I've patched my Lua to support loading of Mac shared libraries, > anyway... > > See http://www.algonet.se/~afb/lua/, using it to load "luaglut" for > OpenGL We've also patched our lua so it should be installed if people want to compile their programs using the wxlua libs. Can we put the includes into /usr/loca/include/wxlua/... maybe it's non standard, but I definitely don't want to overwrite other people's things. (Thats why I never install tgz sources I compile into the system path). About the lua executable, maybe it's best to rename it to wxlua-lua as Francesco suggested. You may not be able to use the system lua if it's the wrong version. For example, we use 5.0.2 and 5.1 will really break a lot of things for us (table.getn has been removed) so the binding generator has to use "our" version of lua. Regards, John Labenski |
From: Francesco M. <f18...@ya...> - 2006-03-12 13:39:34
|
John Labenski ha scritto: > We've also patched our lua so it should be installed if people want to > compile their programs using the wxlua libs. Can we put the includes > into > > /usr/loca/include/wxlua/... > > maybe it's non standard, but I definitely don't want to overwrite > other people's things. (Thats why I never install tgz sources I > compile into the system path). currently the headers are installed into an 'include' subfolders of: drwxr-xr-x 3 root root 72 2006-02-27 21:49 lua/ drwxr-xr-x 6 root root 144 2006-02-27 21:49 wxbind/ drwxr-xr-x 3 root root 72 2006-02-27 21:49 wxbindstc/ drwxr-xr-x 3 root root 72 2006-02-27 21:49 wxlua/ drwxr-xr-x 3 root root 72 2006-02-27 21:49 wxluadebug/ drwxr-xr-x 3 root root 72 2006-02-27 21:49 wxluasocket/ in $PREFIX so no header should be ever overwritten. Do you mean that's better to install all of them in folders like: $PREFIX/include/wxlua/lua/include/*.h $PREFIX/include/wxlua/wxbind/include/*.h $PREFIX/include/wxlua/wxbindstc/include/*.h $PREFIX/include/wxlua/wxlua/include/*.h $PREFIX/include/wxlua/wxluadebug/include/*.h etc... ? > > About the lua executable, maybe it's best to rename it to wxlua-lua as > Francesco suggested. ok, done the change in bakefiles. Francesco |