From: Hakki D. <dog...@tr...> - 2006-12-06 00:17:11
|
Hi, (Mingw, wxLua cvs, wx2.7.2/wx2.8 ANSI and Unicode, WinXP Turkish) I want a wx.dll usable with standart lua. Is it possible with supplied makefiles? ps. If I compile wxLua with the following options; SHARED = 1, WX_SHARED = 1,USE_LUAMODULE = 1 It gives a wx.dll depending on LUA5.1.DLL WXLUA_MSW28U_WXBIND.DLL WXLUA_MSW28U_WXLUA.DLL But WXLUA_MSW28U_WXBIND.DLL also depends on WXLUA_MSW28U_LUA.DLL (which already has lua library in it) -- Regards, Hakki Dogusan |
From: John L. <jla...@gm...> - 2006-12-06 07:07:06
|
On 12/5/06, Hakki Dogusan <dog...@tr...> wrote: > (Mingw, wxLua cvs, wx2.7.2/wx2.8 ANSI and Unicode, WinXP Turkish) > > I want a wx.dll usable with standart lua. > Is it possible with supplied makefiles? > > ps. > If I compile wxLua with the following options; > SHARED = 1, WX_SHARED = 1,USE_LUAMODULE = 1 > > It gives a wx.dll depending on > LUA5.1.DLL > WXLUA_MSW28U_WXBIND.DLL > WXLUA_MSW28U_WXLUA.DLL > > But WXLUA_MSW28U_WXBIND.DLL also depends on > WXLUA_MSW28U_LUA.DLL (which already has lua library in it) Since the modified lua that wxLua was using is a little bit of a headache for the above reason, I've rewritten the coroutine handling code to work with the original lua. So... to solve your problem we have to rebuild the build files. I hope I can get the bakefile we use to work tomorrow. In the meantime, if you get an update from CVS or the latest snapshot, hacking it should be pretty easy since there shouldn't be any difference between WXLUA_MSW28U_LUA.DLL LUA5.1.DLL I'll let you know after the rebuild. Regards, John Labenski |
From: Hakki D. <dog...@tr...> - 2006-12-06 21:44:20
|
Hi, John Labenski wrote: > On 12/5/06, Hakki Dogusan <dog...@tr...> wrote: >> (Mingw, wxLua cvs, wx2.7.2/wx2.8 ANSI and Unicode, WinXP Turkish) >> >> I want a wx.dll usable with standart lua. >> Is it possible with supplied makefiles? >> >> ps. >> If I compile wxLua with the following options; >> SHARED = 1, WX_SHARED = 1,USE_LUAMODULE = 1 >> >> It gives a wx.dll depending on >> LUA5.1.DLL >> WXLUA_MSW28U_WXBIND.DLL >> WXLUA_MSW28U_WXLUA.DLL >> >> But WXLUA_MSW28U_WXBIND.DLL also depends on >> WXLUA_MSW28U_LUA.DLL (which already has lua library in it) > > Since the modified lua that wxLua was using is a little bit of a > headache for the above reason, I've rewritten the coroutine handling > code to work with the original lua. > > So... to solve your problem we have to rebuild the build files. I hope > I can get the bakefile we use to work tomorrow. > > In the meantime, if you get an update from CVS or the latest snapshot, > hacking it should be pretty easy since there shouldn't be any > difference between > WXLUA_MSW28U_LUA.DLL > LUA5.1.DLL > > I'll let you know after the rebuild. > > Regards, > John Labenski > Thanks. Indeed now LUA5.1.DLL == WXLUA_MSW28U_LUA.DLL I assume new makefiles won't generate WXLUA_MSW28U_LUA.DLL? ps. I built a wxLua module with Code::Blocks. I used wx as static lib. It seems work. It is ~3Mb (upx'ed) single dll, only depends to lua5.1.dll. If you interested I can put it somewhere. -- Regards, Hakki Dogusan |
From: John L. <jla...@gm...> - 2006-12-06 23:53:58
|
On 12/6/06, Hakki Dogusan <dog...@tr...> wrote: > John Labenski wrote: > > On 12/5/06, Hakki Dogusan <dog...@tr...> wrote: > >> (Mingw, wxLua cvs, wx2.7.2/wx2.8 ANSI and Unicode, WinXP Turkish) > > Indeed now LUA5.1.DLL == WXLUA_MSW28U_LUA.DLL > > I assume new makefiles won't generate WXLUA_MSW28U_LUA.DLL? > > ps. I built a wxLua module with Code::Blocks. I used wx as > static lib. It seems work. It is ~3Mb (upx'ed) single dll, > only depends to lua5.1.dll. If you interested I can put it > somewhere. Great! If you have a place for me to get them I'll upload them to the wxLua site into the downloads dir. By the way, how do you use Code::Blocks with wxLua? I tried to use Code::Blocks a while back and found that it generated a bunch of build files for me. I asked on their forum how to get it to not do that, but didn't get a response. Is there a way to merely use CB as an editor and not have it generate or touch any files other than it's project file? It seemed like a very nice editor, but it made me nervous that it was generating things that might overwrite what I already had. Thanks, John Labenski |
From: Hakki D. <dog...@tr...> - 2006-12-07 01:22:27
|
Hi, John Labenski wrote: > On 12/6/06, Hakki Dogusan <dog...@tr...> wrote: >> John Labenski wrote: >>> On 12/5/06, Hakki Dogusan <dog...@tr...> wrote: >>>> (Mingw, wxLua cvs, wx2.7.2/wx2.8 ANSI and Unicode, WinXP Turkish) >> Indeed now LUA5.1.DLL == WXLUA_MSW28U_LUA.DLL >> >> I assume new makefiles won't generate WXLUA_MSW28U_LUA.DLL? >> >> ps. I built a wxLua module with Code::Blocks. I used wx as >> static lib. It seems work. It is ~3Mb (upx'ed) single dll, >> only depends to lua5.1.dll. If you interested I can put it >> somewhere. > > Great! If you have a place for me to get them I'll upload them to the > wxLua site into the downloads dir. > http://www.dynaset.org/dogusanh/download/wxLua-CodeBlocks.zip ~5Mb - Includes CodeBlocks (SVN3315) project file - wx.dll lua module unicode and non-unicode - There are tons of exported functions, I couldn't solve it - Used wx-rc3 static libs - Used modified wxlstate.h (for Turkish) Could you inform me upon downloading it, please? My web space is limited. > By the way, how do you use Code::Blocks with wxLua? I tried to use > Code::Blocks a while back and found that it generated a bunch of build > files for me. I asked on their forum how to get it to not do that, but > didn't get a response. Is there a way to merely use CB as an editor > and not have it generate or touch any files other than it's project > file? It seemed like a very nice editor, but it made me nervous that > it was generating things that might overwrite what I already had. > I suggest to look it again.. It only generates a layout file. You don't mean object or dependency files, don't you? For these I'm using sub directories. > Thanks, > John Labenski > Thank you. -- Regards, Hakki Dogusan |
From: John L. <jla...@gm...> - 2006-12-07 01:42:21
|
On 12/6/06, Hakki Dogusan <dog...@tr...> wrote: > > Great! If you have a place for me to get them I'll upload them to the > > wxLua site into the downloads dir. > > http://www.dynaset.org/dogusanh/download/wxLua-CodeBlocks.zip ~5Mb > > - Includes CodeBlocks (SVN3315) project file > - wx.dll lua module unicode and non-unicode > - There are tons of exported functions, I couldn't solve it > - Used wx-rc3 static libs > - Used modified wxlstate.h (for Turkish) > > Could you inform me upon downloading it, please? Got it, thanks. What does it mean "There are tons of exported functions, I couldn't solve it"? When I try to run this, I get an error ./lua5.1.exe ../samples/luamodule.wx.lua d:\wxCVS\wxLua\wxLua\bin\lua5.1.exe: error loading module 'wx' from file '../lib/vc_dll/wx.dll': Access is denied. stack traceback: [C]: ? [C]: in function 'require' ../samples/luamodule.wx.lua:19: in main chunk [C]: ? What the heck is "Access is denied" supposed to mean? It's definitely finding wx.dll since if I move it somewhere else it gives a "The specified module could not be found." error. > > By the way, how do you use Code::Blocks with wxLua? I tried to use > > I suggest to look it again.. > It only generates a layout file. You don't mean object or dependency > files, don't you? For these I'm using sub directories. Ok, I'll try again. If I remember correctly it was generating makefiles and maybe even autoconf and readme files and whatnot. Thanks, John Labenski |
From: Hakki D. <dog...@tr...> - 2006-12-07 08:58:15
|
Hi, John Labenski wrote: > On 12/6/06, Hakki Dogusan <dog...@tr...> wrote: >>> Great! If you have a place for me to get them I'll upload them to the >>> wxLua site into the downloads dir. >> http://www.dynaset.org/dogusanh/download/wxLua-CodeBlocks.zip ~5Mb >> >> - Includes CodeBlocks (SVN3315) project file >> - wx.dll lua module unicode and non-unicode >> - There are tons of exported functions, I couldn't solve it >> - Used wx-rc3 static libs >> - Used modified wxlstate.h (for Turkish) >> >> Could you inform me upon downloading it, please? > > Got it, thanks. Thanks. I'll remove them. > What does it mean "There are tons of exported functions, I couldn't solve it"? > I tried to export only luaopen_wx function. - Using a wx.def file didn't help: EXPORTS luaopen_wx - Playing with WXMAKINGDLL_... etc. didn't help > When I try to run this, I get an error > ./lua5.1.exe ../samples/luamodule.wx.lua > d:\wxCVS\wxLua\wxLua\bin\lua5.1.exe: error loading module 'wx' from > file '../lib/vc_dll/wx.dll': > Access is denied. > > stack traceback: > [C]: ? > [C]: in function 'require' > ../samples/luamodule.wx.lua:19: in main chunk > [C]: ? > > What the heck is "Access is denied" supposed to mean? It's definitely > finding wx.dll since if I move it somewhere else it gives a "The > specified module could not be found." error. > I don't know :( (Could it be your virus softare? I've upx'ed wx.dll.) I was testing it with binaries compiled with gcc. To make sure: - re-checked dependencies with DependecyWalker - downloaded lua5_1_1_Win32_bin from http://luaforge.net/frs/?group_id=110 - made a test dir - copied wx.dll, lua5.1.exe, lua5.1.dll, luamodule.wx.lua - modified cpath as package.cpath = ";?.dll;... It runs here :) >>> By the way, how do you use Code::Blocks with wxLua? I tried to use >> I suggest to look it again.. >> It only generates a layout file. You don't mean object or dependency >> files, don't you? For these I'm using sub directories. > > Ok, I'll try again. If I remember correctly it was generating > makefiles and maybe even autoconf and readme files and whatnot. > I have a project sitting in a fat32 partition. I'm compiling it both from xp and ubuntu via seperate project files. There is no "foreign" files there :) Maybe cb creates them in tmp, I don't know. > Thanks, > John Labenski > -- Regards, Hakki Dogusan |