You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(60) |
Jul
(35) |
Aug
(32) |
Sep
(5) |
Oct
(5) |
Nov
(58) |
Dec
(34) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(114) |
Feb
(184) |
Mar
(153) |
Apr
(90) |
May
(153) |
Jun
(59) |
Jul
(24) |
Aug
(43) |
Sep
(17) |
Oct
(34) |
Nov
(11) |
Dec
(204) |
2007 |
Jan
(84) |
Feb
(119) |
Mar
(38) |
Apr
(28) |
May
(52) |
Jun
(105) |
Jul
(64) |
Aug
(67) |
Sep
(14) |
Oct
(3) |
Nov
(28) |
Dec
(55) |
2008 |
Jan
(228) |
Feb
(55) |
Mar
(30) |
Apr
(30) |
May
(15) |
Jun
(20) |
Jul
(12) |
Aug
(3) |
Sep
(13) |
Oct
(54) |
Nov
(35) |
Dec
(35) |
2009 |
Jan
(19) |
Feb
(20) |
Mar
(34) |
Apr
(4) |
May
(60) |
Jun
(25) |
Jul
(16) |
Aug
(51) |
Sep
(19) |
Oct
(62) |
Nov
(21) |
Dec
(12) |
2010 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
(12) |
May
(23) |
Jun
(13) |
Jul
(1) |
Aug
(40) |
Sep
(18) |
Oct
(21) |
Nov
(26) |
Dec
(34) |
2011 |
Jan
(17) |
Feb
(23) |
Mar
(1) |
Apr
(10) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(43) |
2012 |
Jan
(5) |
Feb
(19) |
Mar
(6) |
Apr
(24) |
May
(39) |
Jun
(83) |
Jul
(29) |
Aug
(36) |
Sep
(64) |
Oct
(55) |
Nov
(12) |
Dec
(7) |
2013 |
Jan
(17) |
Feb
(10) |
Mar
(37) |
Apr
(27) |
May
(13) |
Jun
(9) |
Jul
(7) |
Aug
(61) |
Sep
(23) |
Oct
(23) |
Nov
(30) |
Dec
(16) |
2014 |
Jan
(23) |
Feb
(13) |
Mar
(9) |
Apr
(17) |
May
(2) |
Jun
(11) |
Jul
(2) |
Aug
|
Sep
(9) |
Oct
(24) |
Nov
(2) |
Dec
(14) |
2015 |
Jan
(6) |
Feb
(4) |
Mar
(17) |
Apr
|
May
(7) |
Jun
(3) |
Jul
|
Aug
|
Sep
(2) |
Oct
(21) |
Nov
(6) |
Dec
(2) |
2016 |
Jan
(4) |
Feb
(2) |
Mar
(7) |
Apr
(3) |
May
(11) |
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(4) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Steve K. <ha...@ya...> - 2006-05-13 21:52:14
|
wxLuaSocket is a C++ class for the wxLua app to communicate with a spawned wxLua process for debugging. It is not a generic socket class, nor is it wrapped for use in lua. Ah ok I understand it now, Thanks Here's the interface file for the socket classes of wxWidgets that wxLua wraps. You use them in wxLua as you would in C++, but I have to admit that I've never tried them. See the wxWidgets documentation. Great ; I will try this way http://wxlua.sourceforge.net/wxLua/bindings/wxwidgets/socket.i > thinking about using luasocket (kepler project) as well but their uses of > coroutine (copas) make me a bit uncomfortable :-). And me think wxLua Sorry never tried this either. couroutine in lua IMHO is not really a replacement for thread. But I think using it in wxLua is convinient enough to overcome the limitation; as if I have a lua_interp = new wxLuaState(NULL, wxID_ANY); and whenever I do a int retval=lua_interp->RunFile(lua_file); wxApp will spawn a new thread (?) to run the lua file and control return immediately. If this is correct then I can spawn several lua_file in OnInit() without blocking the GUI; and the lua_file might be for the server process, the GUI. Correct me if I am wrong please. > already provide wxLuaSocket why not using it (even it is not easy to not > link with it anyway) I don't know know what you mean by this? :-). If you enable wxLuaDebug then you need to enable wxLuaSocket and have to link your application with it even not using it, that is what I mean. But I can build the library only without debug and socket and wxlua, which is fine, just save about 400Kb of size though. Thank you very much. Cheers S.KIEU --------------------------------- On Yahoo!7 Answers: Real people ask and answer questions on any topic. |
From: John L. <jla...@gm...> - 2006-05-13 21:36:45
|
In the wxLua/apps/luamodule dir is code to make lua require"wx" work in Lin= ux. You create the wx.so library by running $make in the wxLua/apps/luamodule/src dir and all of wxLua will be created for you. The output wx.so lib is just dumped in the src dir for now. The Makefile uses the wx-config script and therefore it MUST be in your path. Additionally it puts the resultant wxLua libs it creates in the appropriate lib dir of wxWidgets so it must be writeable. As a developer I never bother to install wxWidgets, but if you have you'll have to hack the Makefiles located in each XXX/src dir to output them elsewhere. The Makefiles are fairly straightforward so this shouldn't be difficult. Eventually we'll get the bakefile's configure to work with this new project. A sample program called luamodule.wx.lua in that dir shows it working by simply creating a wxFrame. Test it from the wxLua/apps/luamodule/src dir using $../../../bin/lua luamodule.wx.lua ps. Francesco can you rebake the files. I have added back the -DWXLUA_CODE define, now called WXLUA_LUA_NEWTHREAD for clarity in modules/build/bakefiles/modules.bkl. We had to remove that previously, but now I see that it's required for using wxLua as a module. Also, about adding this to bakefile? Note: The output must unfortunately be called wx.so since otherwise require"wx" will fail. I don't really understand completely what I've done, but it seems to work. See apps/luamodule/src/Makefile and the wx.so: tag. I guess I'm compiling the luamodule.cpp file, linking it with all the other libs, and then creating a .so library using -shared. I think also that -fpic is needed. I haven't the foggiest idea about how to do the same in MSW, I guess it should be a DLL? But then how do you "link" this DLL to all of the wxLua and wxWidgets DLLs or can you create the wxLua and wxWidgets libs as libs and link them to the DLL? Maybe someone who uses lua's require more regularly can shed some light on = this? Regards, John Labenski |
From: John L. <jla...@gm...> - 2006-05-13 16:10:14
|
On 5/13/06, Steve Kieu <ha...@ya...> wrote: > I need to implement some sort of server and client ; and thinking about > using wxLuaSocket but find no sample code to get started. Quick reading t= he > doxygen output let me think most of the method in wxSocket has been > overwriten so it is not (I think) possible using it in wxSocket style. I = am wxLuaSocket is a C++ class for the wxLua app to communicate with a spawned wxLua process for debugging. It is not a generic socket class, nor is it wrapped for use in lua. Here's the interface file for the socket classes of wxWidgets that wxLua wraps. You use them in wxLua as you would in C++, but I have to admit that I've never tried them. See the wxWidgets documentation. http://wxlua.sourceforge.net/wxLua/bindings/wxwidgets/socket.i > thinking about using luasocket (kepler project) as well but their uses = of > coroutine (copas) make me a bit uncomfortable :-). And me think wxLua Sorry never tried this either. > already provide wxLuaSocket why not using it (even it is not easy to not > link with it anyway) I don't know know what you mean by this? > I am not quite sure if some body can give me an advice which way to go; > > wxLuaSocket or luasocket? > > and if possible provive some sample code with wxLuaSocket to get started. > > My requirement is: > > A server listning to one TCP port and serves many client at the same time= ; > for each client spawn a wxClientSocket > to initiate the data transfer. (like the wxSocketServer and wxSocketClien= t > model) You're probably best off just searching for C++ examples of this and translating them to wxLua. Maybe there's some on the wxWidgets wiki? Good luck, John Labenski |
From: John L. <jla...@gm...> - 2006-05-13 15:57:11
|
On 5/11/06, Francesco Montorsi <f18...@ya...> wrote: > > Great. Just note that even for bsd vs. linux we need to have at least > > -ldl for dynamic library loading, which was the problem in the first > > place. > > > > bsd: > > $(MAKE) all MYCFLAGS=3D"-DLUA_USE_POSIX -DLUA_USE_DLOPEN" > > MYLIBS=3D"-Wl,-E" > > linux: > > $(MAKE) all MYCFLAGS=3D-DLUA_USE_LINUX MYLIBS=3D"-Wl,-E -ldl > > -lreadline -lhistory -lncurses" > sorry, I don't understand what you mean... isn't checking for dlopen() > enough (if it's present, we just define LUA_USE_DLOPEN). You're probably right, I didn't connect dlopen() with -ldl. :) > >> - readline =3D> LUA_USE_READLINE > >> - dl =3D> LUA_USE_DLOPEN or LUA_DL_DYLD > >> - mkstemp =3D> LUA_USE_MKSTEMP > >> - isatty =3D> LUA_USE_ISATTY > >> - popen =3D> LUA_USE_POPEN > >> - ulongjmp =3D> LUA_USE_ULONGJMP > > > > Sounds good. > I've done all changes and they work well. Unfortunately I cannot commit > them since SF server is down. Again. :( Finally back up! But the server has changed to wxlua.cvs.sourceforge.net also the updatesite.sh script fails trying to get the CVS. Do you know what name of the new server to use is? $ export CVSROOT=3D:pserver:anonymous@cvs1:/cvsroot/wxlua $ cvs login Logging in to :pserver:anonymous@cvs1:2401/cvsroot/wxlua CVS password: cvs [login aborted]: connect to cvs1(10.5.1.7):2401 failed: Connection refu= sed ---------------------------------- Finally, if you've modified your cvs and have problems committing things, try this. Copy one of your CVS/Root files to R in the base path of your last wxLua checkout and edit it to look like this. (just add wxlua.cvs.... and change it to your name) :ext:jr...@wx...:/cvsroot/wxlua Then run this to replace all the CVS/Root files with the new one and you don't have to do a new checkout and loose any changes you've made. for f in `find . |grep Root|grep CVS`; do cp -f R $f; done Regards, John Labenski |
From: Steve K. <ha...@ya...> - 2006-05-13 10:38:30
|
Hi all, I need to implement some sort of server and client ; and thinking about using wxLuaSocket but find no sample code to get started. Quick reading the doxygen output let me think most of the method in wxSocket has been overwriten so it is not (I think) possible using it in wxSocket style. I am thinking about using luasocket (kepler project) as well but their uses of coroutine (copas) make me a bit uncomfortable :-). And me think wxLua already provide wxLuaSocket why not using it (even it is not easy to not link with it anyway) I am not quite sure if some body can give me an advice which way to go; wxLuaSocket or luasocket? and if possible provive some sample code with wxLuaSocket to get started. My requirement is: A server listning to one TCP port and serves many client at the same time; for each client spawn a wxClientSocket to initiate the data transfer. (like the wxSocketServer and wxSocketClient model) Thank you in advance. Cheers, S.KIEU --------------------------------- On Yahoo!7 360°: Your own space to share what you want with who you want! |
From: Francesco M. <f18...@ya...> - 2006-05-11 11:44:25
|
John Labenski ha scritto: > On 5/10/06, Francesco Montorsi > <f18...@ya...> wrote: >> > Ohhh, I see now, you're using configure? It doesn't give the right >> > flags to build lua for unix systems. >> > >> > Francesco, where would you add some checks for configure's system >> > determination to add lua's flags? In wxLua/configure or somewhere in >> > bakefile? >> I could do everything in bakefiles if the platforms supported by Lua >> were one of: >> >> PLATFORM_UNIX UNIX variant >> PLATFORM_WIN32 32bit Windows >> PLATFORM_MSDOS MS-DOS >> PLATFORM_MAC Mac OS X or Mac Classic >> PLATFORM_MACOSX Mac OS X >> PLATFORM_OS2 OS/2 >> PLATFORM_BEOS BeOS >> PLATFORM_SYMBIAN Symbian OS >> >> since they do distinctions inside the Unix family, I'll need to put >> these checks in configure.ac. Unfortunately they will require checks for >> platforms where I won't be able to test the configure script on... > > Can we use configure --build=BUILD? If it can't be guessed then the > user can force it to be whatever they like? yes, in fact I thought to use exactly that: it's 99.9% times guessed correctly AFAIK with latest autoconf suites (the value guessed is taken by config.guess). But still I won't be able to test configure on platforms != linux. > >> > See modules/lua/Makefile >> > PLATS= aix ansi bsd generic linux macosx mingw posix solaris >> > >> > and modules/lua/src/Makefile where it translates these into the cflags >> > and libs. eg. >> > linux: >> > $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl >> > -lreadline -lhistory -lncurses" >> > >> > Maybe it's possible to just translate configure's system to lua's >> > system and just call lua's Makefile as $(MAKE) platform? Though I >> > think the install would be broken then? >> you're right: it would be easy to just call Lua's Makefile (when using >> mingw or autoconf); make install would still work however the executable >> would be named 'lua' and not, as it currently is in wxLua, 'wxlua-lua'. >> Thus other installations of lua could be overwritten by our version >> (which I think is not the vanilla version since there's a WXLUA_CODE >> block - right ?)... > > Ummm, not anymore, I always define it since the code does nothing > unless you actually call it from C. However, for people using rpm > systems (like me) I wouldn't want to overwrite the rpm's lua > executable. I just read that Fedora now has lua5.1 as a package. > >> Last big problem is that currently doing "make linux" using lua's >> makefile I get: >> >> gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c >> In file included from lua.h:16, >> from lua.c:15: >> luaconf.h:263:31: error: readline/readline.h: No such file or directory >> luaconf.h:264:30: error: readline/history.h: No such file or directory >> >> and in fact, these files are not in my system... installing the >> "libreadline5-dev" package solved the problem but I think it's just a >> bad thing to suppose that these readline files are always there. > > libreadline is used fairly often I think. Is it easy to have configure > check for it? yes, the check is easy... > They don't use pgk-config, but can you just look for the > lib libreadline.so? there's a more detailed test which I find googling a bit - it will do the work ;) > I think that lua's command prompt interface is > much nicer with it, though I don't use it myself. yes, sure > >> I see that modules/lua/src/Makefile basically just defines the LUA_USE_* >> symbols and then adds to linker dlopen, readline, history. >> (it also adds "-Wl,-E" option to the linker). That is, it will be easy >> to reproduce this behaviour in wxlua bakefiles. > > Great. Just note that even for bsd vs. linux we need to have at least > -ldl for dynamic library loading, which was the problem in the first > place. > > bsd: > $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" > MYLIBS="-Wl,-E" > linux: > $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl > -lreadline -lhistory -lncurses" sorry, I don't understand what you mean... isn't checking for dlopen() enough (if it's present, we just define LUA_USE_DLOPEN). >> - readline => LUA_USE_READLINE >> - dl => LUA_USE_DLOPEN or LUA_DL_DYLD >> - mkstemp => LUA_USE_MKSTEMP >> - isatty => LUA_USE_ISATTY >> - popen => LUA_USE_POPEN >> - ulongjmp => LUA_USE_ULONGJMP > > Sounds good. I've done all changes and they work well. Unfortunately I cannot commit them since SF server is down. Again. :( Francesco |
From: John L. <jla...@gm...> - 2006-05-10 19:06:51
|
On 5/10/06, Francesco Montorsi <f18...@ya...> wrote: > > Ohhh, I see now, you're using configure? It doesn't give the right > > flags to build lua for unix systems. > > > > Francesco, where would you add some checks for configure's system > > determination to add lua's flags? In wxLua/configure or somewhere in > > bakefile? > I could do everything in bakefiles if the platforms supported by Lua > were one of: > > PLATFORM_UNIX UNIX variant > PLATFORM_WIN32 32bit Windows > PLATFORM_MSDOS MS-DOS > PLATFORM_MAC Mac OS X or Mac Classic > PLATFORM_MACOSX Mac OS X > PLATFORM_OS2 OS/2 > PLATFORM_BEOS BeOS > PLATFORM_SYMBIAN Symbian OS > > since they do distinctions inside the Unix family, I'll need to put > these checks in configure.ac. Unfortunately they will require checks for > platforms where I won't be able to test the configure script on... Can we use configure --build=3DBUILD? If it can't be guessed then the user can force it to be whatever they like? > > See modules/lua/Makefile > > PLATS=3D aix ansi bsd generic linux macosx mingw posix solaris > > > > and modules/lua/src/Makefile where it translates these into the cflags > > and libs. eg. > > linux: > > $(MAKE) all MYCFLAGS=3D-DLUA_USE_LINUX MYLIBS=3D"-Wl,-E -ldl > > -lreadline -lhistory -lncurses" > > > > Maybe it's possible to just translate configure's system to lua's > > system and just call lua's Makefile as $(MAKE) platform? Though I > > think the install would be broken then? > you're right: it would be easy to just call Lua's Makefile (when using > mingw or autoconf); make install would still work however the executable > would be named 'lua' and not, as it currently is in wxLua, 'wxlua-lua'. > Thus other installations of lua could be overwritten by our version > (which I think is not the vanilla version since there's a WXLUA_CODE > block - right ?)... Ummm, not anymore, I always define it since the code does nothing unless you actually call it from C. However, for people using rpm systems (like me) I wouldn't want to overwrite the rpm's lua executable. I just read that Fedora now has lua5.1 as a package. > Last big problem is that currently doing "make linux" using lua's > makefile I get: > > gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c > In file included from lua.h:16, > from lua.c:15: > luaconf.h:263:31: error: readline/readline.h: No such file or directory > luaconf.h:264:30: error: readline/history.h: No such file or directory > > and in fact, these files are not in my system... installing the > "libreadline5-dev" package solved the problem but I think it's just a > bad thing to suppose that these readline files are always there. libreadline is used fairly often I think. Is it easy to have configure check for it? They don't use pgk-config, but can you just look for the lib libreadline.so? I think that lua's command prompt interface is much nicer with it, though I don't use it myself. > I see that modules/lua/src/Makefile basically just defines the LUA_USE_* > symbols and then adds to linker dlopen, readline, history. > (it also adds "-Wl,-E" option to the linker). That is, it will be easy > to reproduce this behaviour in wxlua bakefiles. Great. Just note that even for bsd vs. linux we need to have at least -ldl for dynamic library loading, which was the problem in the first place. bsd: $(MAKE) all MYCFLAGS=3D"-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS=3D= "-Wl,-E" linux: $(MAKE) all MYCFLAGS=3D-DLUA_USE_LINUX MYLIBS=3D"-Wl,-E -ldl -lreadline -lhistory -lncurses" > Also, since bakefiles would still have to contain lua modules for > generating makefiles for MSVC, borland, etc. I think it's best to > maintain all lua building stuff in a single place: wxlua bakefiles and > avoid calling lua makefile. Ok. > Thus, in conclusion, if you agree I will do these changes: > configure.ac will NOT check for platforms (which is against > autoconf-philosophy of "check for features rather than for platforms"), > but rather will check & define symbols for > > - readline =3D> LUA_USE_READLINE > - dl =3D> LUA_USE_DLOPEN or LUA_DL_DYLD > - mkstemp =3D> LUA_USE_MKSTEMP > - isatty =3D> LUA_USE_ISATTY > - popen =3D> LUA_USE_POPEN > - ulongjmp =3D> LUA_USE_ULONGJMP Sounds good. Thanks, John Labenski |
From: Francesco M. <f18...@ya...> - 2006-05-10 09:22:37
|
Hi, sorry for late reply: I'm busy with some wx patches currently John Labenski ha scritto: > On 5/8/06, Steve Kieu <ha...@ya...> > wrote: >> >> OK now I got it working with ugly hack :-) >> >> I undo all changes in loadlib.c and luaconf.h to its original. AND I >> manually edit the $WXLUAROOTDIR/modules/Makefile and add >> >> -DLUA_USE_LINUX to CFLAGS >> and >> -Wl,-E -ldl -lreadline -lhistory -lncurses to LDFLAGS >> >> (Just copy from the lua Makefile distribution the linux section) >> and everything works as expected :-) >> I hope you guys find where it is wrong in the build system and fix it >> 'officially', I am sorry I do not know enough about it to help. > > Ohhh, I see now, you're using configure? It doesn't give the right > flags to build lua for unix systems. > > Francesco, where would you add some checks for configure's system > determination to add lua's flags? In wxLua/configure or somewhere in > bakefile? I could do everything in bakefiles if the platforms supported by Lua were one of: PLATFORM_UNIX UNIX variant PLATFORM_WIN32 32bit Windows PLATFORM_MSDOS MS-DOS PLATFORM_MAC Mac OS X or Mac Classic PLATFORM_MACOSX Mac OS X PLATFORM_OS2 OS/2 PLATFORM_BEOS BeOS PLATFORM_SYMBIAN Symbian OS since they do distinctions inside the Unix family, I'll need to put these checks in configure.ac. Unfortunately they will require checks for platforms where I won't be able to test the configure script on... > See modules/lua/Makefile > PLATS= aix ansi bsd generic linux macosx mingw posix solaris > > and modules/lua/src/Makefile where it translates these into the cflags > and libs. eg. > linux: > $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl > -lreadline -lhistory -lncurses" > > Maybe it's possible to just translate configure's system to lua's > system and just call lua's Makefile as $(MAKE) platform? Though I > think the install would be broken then? you're right: it would be easy to just call Lua's Makefile (when using mingw or autoconf); make install would still work however the executable would be named 'lua' and not, as it currently is in wxLua, 'wxlua-lua'. Thus other installations of lua could be overwritten by our version (which I think is not the vanilla version since there's a WXLUA_CODE block - right ?)... Last big problem is that currently doing "make linux" using lua's makefile I get: gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c In file included from lua.h:16, from lua.c:15: luaconf.h:263:31: error: readline/readline.h: No such file or directory luaconf.h:264:30: error: readline/history.h: No such file or directory and in fact, these files are not in my system... installing the "libreadline5-dev" package solved the problem but I think it's just a bad thing to suppose that these readline files are always there. I see that modules/lua/src/Makefile basically just defines the LUA_USE_* symbols and then adds to linker dlopen, readline, history. (it also adds "-Wl,-E" option to the linker). That is, it will be easy to reproduce this behaviour in wxlua bakefiles. Also, since bakefiles would still have to contain lua modules for generating makefiles for MSVC, borland, etc. I think it's best to maintain all lua building stuff in a single place: wxlua bakefiles and avoid calling lua makefile. Thus, in conclusion, if you agree I will do these changes: configure.ac will NOT check for platforms (which is against autoconf-philosophy of "check for features rather than for platforms"), but rather will check & define symbols for - readline => LUA_USE_READLINE - dl => LUA_USE_DLOPEN or LUA_DL_DYLD - mkstemp => LUA_USE_MKSTEMP - isatty => LUA_USE_ISATTY - popen => LUA_USE_POPEN - ulongjmp => LUA_USE_ULONGJMP Francesco |
From: Hakki D. <dog...@tr...> - 2006-05-09 15:59:07
|
Hi, Steve Kieu yazmış: > Hi, > > Some question for luasql developer: > > * If luasql depends much on compat-5.1 why separated it into two > packages and not have any INSTALL instructions? > > * Got lua.exe compile from source using the bat file and nmake. Load the > dll using command require'luasqlmysql' crash the system. > > Any one has written any HOWTO to use the binary luasql with lua-51? I > mean version 5.1 not 5.0. Or the step by step howto compile luasql in > win32 with lua-5.1? please help. > > Thank you in advance. forgive me if what I ask is too much as; in the > kepler site it explicitly noted that **this version works with lua 5.0 > ** . But I got it work in Linux rather easily by compiling from source, > when when compiling this thing in win32 got me stump. > > > > > > > > S.KIEU > I've compiled with MinGW as: (directories should be adjusted) gcc -s -shared -W -O2 -Wall -mthreads -fno-pcc-struct-return -DLUA_BUILD_AS_DLL -DHAVE_W32API_H -DWIN32 -D_WINDOWS -D_REENTRANT -D_MBCS -o luasqlite3.dll libluasqlite3.c -I/a_C/_lua/include -I/a_C/_sqlite/include -L/a_C/_lua/lib -L/a_C/_sqlite/lib -L. -lsqlite3dll -llua51dll -- Regards, Hakki Dogusan |
From: Steve K. <ha...@ya...> - 2006-05-09 03:16:39
|
Hi, I am really sorry, yes when I was in bad mood then a mistake in typo lead this message to wxLua list :-) By the way, I may need to use wxLua-2.6.2 as it goes with lua5.0 and luasql is happy in both win32 and linux. I would like to write all model and view/controller using lua, just use wxWidgets for displaying things and some security object. So luasql is a must. Another option is to write the database access in c++ and export it to lua, it is not difficult using the .i interface that wxLua offer (I have tested it); Really if compare wxLua and luasql, I see a big difference in the way it facilitate end users like me. :-). You guys are doing a great job! I will bug the kepler guys again to see if they improve their luasql both in code and docs/build system. Cheers, John Labenski <jla...@gm...> wrote: On 5/8/06, Steve Kieu wrote: > Hi, > > Some question for luasql developer: I think you meant to send this to the lua mailing list? Sorry, but I haven't tried the luasql package. Regards, John Labenski > * If luasql depends much on compat-5.1 why separated it into two packages > and not have any INSTALL instructions? > > * Got lua.exe compile from source using the bat file and nmake. Load the > dll using command require'luasqlmysql' crash the system. > > Any one has written any HOWTO to use the binary luasql with lua-51? I mean > version 5.1 not 5.0. Or the step by step howto compile luasql in win32 with > lua-5.1? please help. > > Thank you in advance. forgive me if what I ask is too much as; in the > kepler site it explicitly noted that **this version works with lua 5.0 ** . > But I got it work in Linux rather easily by compiling from source, when when > compiling this thing in win32 got me stump. > ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Wxlua-users mailing list Wxl...@li... https://lists.sourceforge.net/lists/listinfo/wxlua-users S.KIEU --------------------------------- Do you Yahoo!? Yahoo! Personals: It's free to check out our great singles! |
From: John L. <jla...@gm...> - 2006-05-09 02:41:07
|
On 5/8/06, Steve Kieu <ha...@ya...> wrote: > Hi, > > Some question for luasql developer: I think you meant to send this to the lua mailing list? Sorry, but I haven't tried the luasql package. Regards, John Labenski > * If luasql depends much on compat-5.1 why separated it into two package= s > and not have any INSTALL instructions? > > * Got lua.exe compile from source using the bat file and nmake. Load the > dll using command require'luasqlmysql' crash the system. > > Any one has written any HOWTO to use the binary luasql with lua-51? I me= an > version 5.1 not 5.0. Or the step by step howto compile luasql in win32 wi= th > lua-5.1? please help. > > Thank you in advance. forgive me if what I ask is too much as; in the > kepler site it explicitly noted that **this version works with lua 5.0 **= . > But I got it work in Linux rather easily by compiling from source, when w= hen > compiling this thing in win32 got me stump. > |
From: John L. <jla...@gm...> - 2006-05-09 02:39:15
|
On 5/8/06, Steve Kieu <ha...@ya...> wrote: > > OK now I got it working with ugly hack :-) > > I undo all changes in loadlib.c and luaconf.h to its original. AND I > manually edit the $WXLUAROOTDIR/modules/Makefile and add > > -DLUA_USE_LINUX to CFLAGS > and > -Wl,-E -ldl -lreadline -lhistory -lncurses to LDFLAGS > > (Just copy from the lua Makefile distribution the linux section) > and everything works as expected :-) > I hope you guys find where it is wrong in the build system and fix it > 'officially', I am sorry I do not know enough about it to help. Ohhh, I see now, you're using configure? It doesn't give the right flags to build lua for unix systems. Francesco, where would you add some checks for configure's system determination to add lua's flags? In wxLua/configure or somewhere in bakefile? See modules/lua/Makefile PLATS=3D aix ansi bsd generic linux macosx mingw posix solaris and modules/lua/src/Makefile where it translates these into the cflags and libs. eg. linux: $(MAKE) all MYCFLAGS=3D-DLUA_USE_LINUX MYLIBS=3D"-Wl,-E -ldl -lreadline -lhistory -lncurses" Maybe it's possible to just translate configure's system to lua's system and just call lua's Makefile as $(MAKE) platform? Though I think the install would be broken then? ----------------------------------------------------------- Steve, for now try to use the Makefiles in the src dirs. If you want to build everything, just go into apps/wxlua/src and type make and you'll get all the libs, though this uses the wx-config script from wxWidgets so it puts the libs along with the wxWidgets libs so that must be a writeable dir, eg. probably not installed to usr/local or wherever. Regards, John Labenski |
From: Steve K. <ha...@ya...> - 2006-05-09 01:39:15
|
Hi, Some question for luasql developer: * If luasql depends much on compat-5.1 why separated it into two packages and not have any INSTALL instructions? * Got lua.exe compile from source using the bat file and nmake. Load the dll using command require'luasqlmysql' crash the system. Any one has written any HOWTO to use the binary luasql with lua-51? I mean version 5.1 not 5.0. Or the step by step howto compile luasql in win32 with lua-5.1? please help. Thank you in advance. forgive me if what I ask is too much as; in the kepler site it explicitly noted that **this version works with lua 5.0 ** . But I got it work in Linux rather easily by compiling from source, when when compiling this thing in win32 got me stump. S.KIEU --------------------------------- The LOST Ninja blog: Exclusive clues, clips and gossip. |
From: Steve K. <ha...@ya...> - 2006-05-08 20:08:13
|
OK now I got it working with ugly hack :-) I undo all changes in loadlib.c and luaconf.h to its original. AND I manually edit the $WXLUAROOTDIR/modules/Makefile and add -DLUA_USE_LINUX to CFLAGS and -Wl,-E -ldl -lreadline -lhistory -lncurses to LDFLAGS (Just copy from the lua Makefile distribution the linux section) and everything works as expected :-) I hope you guys find where it is wrong in the build system and fix it 'officially', I am sorry I do not know enough about it to help. Cheers, Steve Kieu <ha...@ya...> wrote: Ok now things even go more strange :-) I will describe it so you guys may have clue to really fic the build problem as I do not know much about the bake file system etc...; - For some reason the LUA_DL_DLOPEN never been defined in loadlib.c Maybe it is the include problem? (I hit it once before though). In loadlib.c it has #include "lua.h" and in lua.h it has included luaconf.h and it should define that LUA_DL_DLOPEN because I explicitly define it in luaconf.h. But it is not. The include round problem somewhere.. So I once again explicitly define LUA_DL_DLOPEN in the file loadlib.c and when compile it spits out unresolve symbol dlopen and dlsym so I have to manually edit the Make add the LDFLAG -ldl so it compiles fine. Now run wxlua-lua and type require'luasqlmysql' it no longer complain about dynamica lib not enabled ; but it give another error: undefined symbol: lua_pushvalue and still no readline support. Of course the lua binary has it all. To recap here is what I did to 'ugly fix' to enable dynamic lib loading: * Expilitly define LUA_DL_DLOPEN in loadlib.c * Explicitly define LUA_USE_LINUX in luaconf.h * Explicitly define LDFLAG=-ldl in $WXLUAROOTDIR/modules/Makefile The result is: dyanamic lib loading ok but unresolve symbol lua_pushvalue I will look into it furthur....... cheers John Labenski <jla...@gm...> wrote: On 5/8/06, Steve Kieu wrote: > I would like to use luasql with wxlua and failled. Do googling and saw some > old thread about it but not sure how to resolve. > > If I do a cd to the lua dir inside wxLua distribution and make; a binary > lua will be created in bin of wxLua. Using that binary ; > require'luasqlmysql' is fine. > > However if I use the binary wxlua and type require'luasqlmysl' in the > editor window and run, the console prints the error: > > error loading module 'luasqlmysql' from file './luasqlmysql.so': > dynamic libraries not enabled; check your Lua installation > > how can I enable it in wxlua? which is a bit strange as the lua core built > exactly the same produce lua baniry and works, It is strange indeed, what platform are you using? I'm guessing Linux? I just looked at the Makefiles in modules/lua and it looks like the exact same object files are used for the lualib and the lua executable so the code in loadlib.c should compile this #ifdefed code for both. #if defined(LUA_DL_DLOPEN) ... In the Makefile in apps/wxlua/src it uses this to compile lua, is this what you did when you compile lua yourself? lua: @(cd $(WXLUA_DIR)/modules/lua && make linux) Regards, John Labenski ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Wxlua-users mailing list Wxl...@li... https://lists.sourceforge.net/lists/listinfo/wxlua-users S.KIEU --------------------------------- On Yahoo!7 Answers: Real people ask and answer questions on any topic. S.KIEU --------------------------------- Do you Yahoo!? Yahoo! Personals: It's free to check out our great singles! |
From: Steve K. <ha...@ya...> - 2006-05-08 19:36:18
|
Ok now things even go more strange :-) I will describe it so you guys may have clue to really fic the build problem as I do not know much about the bake file system etc...; - For some reason the LUA_DL_DLOPEN never been defined in loadlib.c Maybe it is the include problem? (I hit it once before though). In loadlib.c it has #include "lua.h" and in lua.h it has included luaconf.h and it should define that LUA_DL_DLOPEN because I explicitly define it in luaconf.h. But it is not. The include round problem somewhere.. So I once again explicitly define LUA_DL_DLOPEN in the file loadlib.c and when compile it spits out unresolve symbol dlopen and dlsym so I have to manually edit the Make add the LDFLAG -ldl so it compiles fine. Now run wxlua-lua and type require'luasqlmysql' it no longer complain about dynamica lib not enabled ; but it give another error: undefined symbol: lua_pushvalue and still no readline support. Of course the lua binary has it all. To recap here is what I did to 'ugly fix' to enable dynamic lib loading: * Expilitly define LUA_DL_DLOPEN in loadlib.c * Explicitly define LUA_USE_LINUX in luaconf.h * Explicitly define LDFLAG=-ldl in $WXLUAROOTDIR/modules/Makefile The result is: dyanamic lib loading ok but unresolve symbol lua_pushvalue I will look into it furthur....... cheers John Labenski <jla...@gm...> wrote: On 5/8/06, Steve Kieu wrote: > I would like to use luasql with wxlua and failled. Do googling and saw some > old thread about it but not sure how to resolve. > > If I do a cd to the lua dir inside wxLua distribution and make; a binary > lua will be created in bin of wxLua. Using that binary ; > require'luasqlmysql' is fine. > > However if I use the binary wxlua and type require'luasqlmysl' in the > editor window and run, the console prints the error: > > error loading module 'luasqlmysql' from file './luasqlmysql.so': > dynamic libraries not enabled; check your Lua installation > > how can I enable it in wxlua? which is a bit strange as the lua core built > exactly the same produce lua baniry and works, It is strange indeed, what platform are you using? I'm guessing Linux? I just looked at the Makefiles in modules/lua and it looks like the exact same object files are used for the lualib and the lua executable so the code in loadlib.c should compile this #ifdefed code for both. #if defined(LUA_DL_DLOPEN) ... In the Makefile in apps/wxlua/src it uses this to compile lua, is this what you did when you compile lua yourself? lua: @(cd $(WXLUA_DIR)/modules/lua && make linux) Regards, John Labenski ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Wxlua-users mailing list Wxl...@li... https://lists.sourceforge.net/lists/listinfo/wxlua-users S.KIEU --------------------------------- On Yahoo!7 Answers: Real people ask and answer questions on any topic. |
From: Steve K. <ha...@ya...> - 2006-05-08 18:57:01
|
I just view the symbol of liblua.a and libwxlua_gtk2_lua-2.6.a the liblua.a has the symbol dlopen but the other one *not* I will look furthur ; where you guys link libwxlua_gtk2_lua-2.6.a by the way? John Labenski <jla...@gm...> wrote: On 5/8/06, Steve Kieu wrote: > I would like to use luasql with wxlua and failled. Do googling and saw some > old thread about it but not sure how to resolve. > > If I do a cd to the lua dir inside wxLua distribution and make; a binary > lua will be created in bin of wxLua. Using that binary ; > require'luasqlmysql' is fine. > > However if I use the binary wxlua and type require'luasqlmysl' in the > editor window and run, the console prints the error: > > error loading module 'luasqlmysql' from file './luasqlmysql.so': > dynamic libraries not enabled; check your Lua installation > > how can I enable it in wxlua? which is a bit strange as the lua core built > exactly the same produce lua baniry and works, It is strange indeed, what platform are you using? I'm guessing Linux? I just looked at the Makefiles in modules/lua and it looks like the exact same object files are used for the lualib and the lua executable so the code in loadlib.c should compile this #ifdefed code for both. #if defined(LUA_DL_DLOPEN) ... In the Makefile in apps/wxlua/src it uses this to compile lua, is this what you did when you compile lua yourself? lua: @(cd $(WXLUA_DIR)/modules/lua && make linux) Regards, John Labenski ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Wxlua-users mailing list Wxl...@li... https://lists.sourceforge.net/lists/listinfo/wxlua-users S.KIEU --------------------------------- On Yahoo!7 360°: Your own space to share what you want with who you want! |
From: Steve K. <ha...@ya...> - 2006-05-08 18:42:10
|
Hi, It is strange indeed, what platform are you using? I'm guessing Linux? Yes it Linux - slackware 10.2 I just looked at the Makefiles in modules/lua and it looks like the exact same object files are used for the lualib and the lua executable so the code in loadlib.c should compile this #ifdefed code for both. #if defined(LUA_DL_DLOPEN) ... In the Makefile in apps/wxlua/src it uses this to compile lua, is this what you did when you compile lua yourself? lua: @(cd $(WXLUA_DIR)/modules/lua && make linux) Yes, the actual command is: cd /home/sk/wxLua/modules/lua && make linux this produce binary lua and luac in /home/sk/wxLua/bin and is fine . I also see a #ifdef LUA_USE_LINUX in /home/sk/wxLua/modules/lua/include/luaconf.h and suspect that LUA_USE_LINUX not defined as if it is defined then LUA_USE_READLINE should be enabled and I can use it in lua binary. And It also enable LUA_USE_DLOPEN. Then I commented the #ifdef line and #endif so it always true. (safe as I know I am running Linux); Now the lua binary has readline support. Strange enough, the wxlua-lua binary still not have the readline support and ofcourse still no go for loading DLOPEN. S.KIEU --------------------------------- On Yahoo!7 Answers: Real people ask and answer questions on any topic. |
From: Francesco M. <f18...@ya...> - 2006-05-08 15:50:18
|
John Labenski ha scritto: > On 5/8/06, Francesco Montorsi > <f18...@ya...> wrote: >> John Labenski ha scritto: >> > On 5/7/06, Steve Kieu <ha...@ya...> >> > wrote: >> >> One comment, If you allow the configure flags --enable-wxlua-debug=no >> >> then >> >> configure should >> >> >> >> - Whether build wxlua without debug and remove the linking flags so it >> >> builds wxlua >> >> - Or completely disable the building of wxlua; so only library will be >> >> built. >> >> >> >> As I disable debug and when it link wxlua, it gives the error that no >> >> debug >> >> lib available (of course) ; If go to the make file remove the link >> >> flags it >> >> will give unresolve symbol ; so wxlua much depends on the debug >> options. >> > >> > Ok, I'll see what I can do about this. It's pretty harmless to just >> > build the debug library for now since its pretty small. >> I'm not sure to understand what's the problem here ? >> Is it that wxluaapp depends from wxluadebug module ? > > I think that what he's talking about. He wants to build wxlua without > the wxluadebug lib, but without explicitly telling it not to try to > compile the apps. > >> If yes just adding: >> >> <template id="wxluaapp" template="wxlua" cond="WXLUADEBUG=='1'"> >> ^^^^^^^^^^^^^^^^^^^^^^^^^ >> to apps\build\bakefiles\apps.bkl will do it... >> >> let me know if I should apply this and rebake... > > That would be great. done - BTW if there are other dependencies from other modules in app_wxlua, app_wxluaedit, app_wxluacan or app_wxluafreeze, just let me know and I'll add them. Francesco PS: there is some (slow) movement on bakefile patch tracker - with a bit of luck and the application of some other patches, this summer I'll be able to change slightly wxLua bakefiles to use standard bakefile (which now includes uninstall & header support)... |
From: John L. <jla...@gm...> - 2006-05-08 15:27:20
|
On 5/8/06, Francesco Montorsi <f18...@ya...> wrote: > John Labenski ha scritto: > > On 5/7/06, Steve Kieu <ha...@ya...> > > wrote: > >> One comment, If you allow the configure flags --enable-wxlua-debug=3D= no > >> then > >> configure should > >> > >> - Whether build wxlua without debug and remove the linking flags so it > >> builds wxlua > >> - Or completely disable the building of wxlua; so only library will be > >> built. > >> > >> As I disable debug and when it link wxlua, it gives the error that no > >> debug > >> lib available (of course) ; If go to the make file remove the link > >> flags it > >> will give unresolve symbol ; so wxlua much depends on the debug option= s. > > > > Ok, I'll see what I can do about this. It's pretty harmless to just > > build the debug library for now since its pretty small. > I'm not sure to understand what's the problem here ? > Is it that wxluaapp depends from wxluadebug module ? I think that what he's talking about. He wants to build wxlua without the wxluadebug lib, but without explicitly telling it not to try to compile the apps. > If yes just adding: > > <template id=3D"wxluaapp" template=3D"wxlua" cond=3D"WXLUADEBUG=3D=3D'1'"= > > ^^^^^^^^^^^^^^^^^^^^^^^^^ > to apps\build\bakefiles\apps.bkl will do it... > > let me know if I should apply this and rebake... That would be great. Thanks, John |
From: John L. <jla...@gm...> - 2006-05-08 15:24:43
|
On 5/8/06, Steve Kieu <ha...@ya...> wrote: > I would like to use luasql with wxlua and failled. Do googling and saw so= me > old thread about it but not sure how to resolve. > > If I do a cd to the lua dir inside wxLua distribution and make; a binary > lua will be created in bin of wxLua. Using that binary ; > require'luasqlmysql' is fine. > > However if I use the binary wxlua and type require'luasqlmysl' in the > editor window and run, the console prints the error: > > error loading module 'luasqlmysql' from file './luasqlmysql.so': > dynamic libraries not enabled; check your Lua installation > > how can I enable it in wxlua? which is a bit strange as the lua core buil= t > exactly the same produce lua baniry and works, It is strange indeed, what platform are you using? I'm guessing Linux? I just looked at the Makefiles in modules/lua and it looks like the exact same object files are used for the lualib and the lua executable so the code in loadlib.c should compile this #ifdefed code for both. #if defined(LUA_DL_DLOPEN) ... In the Makefile in apps/wxlua/src it uses this to compile lua, is this what you did when you compile lua yourself? lua: @(cd $(WXLUA_DIR)/modules/lua && make linux) Regards, John Labenski |
From: Francesco M. <f18...@ya...> - 2006-05-08 15:20:20
|
John Labenski ha scritto: > On 5/7/06, Steve Kieu <ha...@ya...> > wrote: >> One comment, If you allow the configure flags --enable-wxlua-debug=no >> then >> configure should >> >> - Whether build wxlua without debug and remove the linking flags so it >> builds wxlua >> - Or completely disable the building of wxlua; so only library will be >> built. >> >> As I disable debug and when it link wxlua, it gives the error that no >> debug >> lib available (of course) ; If go to the make file remove the link >> flags it >> will give unresolve symbol ; so wxlua much depends on the debug options. > > Ok, I'll see what I can do about this. It's pretty harmless to just > build the debug library for now since its pretty small. I'm not sure to understand what's the problem here ? Is it that wxluaapp depends from wxluadebug module ? If yes just adding: <template id="wxluaapp" template="wxlua" cond="WXLUADEBUG=='1'"> ^^^^^^^^^^^^^^^^^^^^^^^^^ to apps\build\bakefiles\apps.bkl will do it... let me know if I should apply this and rebake... Francesco |
From: John L. <jla...@gm...> - 2006-05-08 15:01:27
|
On 5/7/06, Steve Kieu <ha...@ya...> wrote: > One comment, If you allow the configure flags --enable-wxlua-debug=3Dno = then > configure should > > - Whether build wxlua without debug and remove the linking flags so it > builds wxlua > - Or completely disable the building of wxlua; so only library will be > built. > > As I disable debug and when it link wxlua, it gives the error that no deb= ug > lib available (of course) ; If go to the make file remove the link flags = it > will give unresolve symbol ; so wxlua much depends on the debug options. Ok, I'll see what I can do about this. It's pretty harmless to just build the debug library for now since its pretty small. -John Labenski |
From: Steve K. <ha...@ya...> - 2006-05-08 11:00:30
|
Hi all, I would like to use luasql with wxlua and failled. Do googling and saw some old thread about it but not sure how to resolve. If I do a cd to the lua dir inside wxLua distribution and make; a binary lua will be created in bin of wxLua. Using that binary ; require'luasqlmysql' is fine. However if I use the binary wxlua and type require'luasqlmysl' in the editor window and run, the console prints the error: error loading module 'luasqlmysql' from file './luasqlmysql.so': dynamic libraries not enabled; check your Lua installation how can I enable it in wxlua? which is a bit strange as the lua core built exactly the same produce lua baniry and works, wxLua is the snapshot version wxLua_Snapshot_2006-05-07.tar.gz. Thank you in advance. I will look into the source to see what I can find anyway. S.KIEU --------------------------------- On Yahoo!7 Answers: Real people ask and answer questions on any topic. |
From: Steve K. <ha...@ya...> - 2006-05-07 21:41:50
|
Hi, Thanks it works now. One comment, If you allow the configure flags --enable-wxlua-debug=no then configure should - Whether build wxlua without debug and remove the linking flags so it builds wxlua - Or completely disable the building of wxlua; so only library will be built. As I disable debug and when it link wxlua, it gives the error that no debug lib available (of course) ; If go to the make file remove the link flags it will give unresolve symbol ; so wxlua much depends on the debug options. Cheers and thank you very much John Labenski <jla...@gm...> wrote: Thanks, fixed, the listctrl for gtk doesn't have the wxListCtrl::GetEditControl in 2.6, but does in 2.7 (which I sometimes use). The latest snapshot should work. -John Labenski On 5/6/06, Steve Kieu wrote: > > > The latest snapshot wxLua_Snapshot_2006-05-04.tar.gz does not compile for > me > > so no chance to test > > Compiles and runs using wxWidgets 2.6.3 in Linux and MSW using Visual > Studio for me. In the future you should always state why it doesn't > compile (errors, platform, wxWidgets version) so we can fix it. > I thought it would be in another topic though that is why I did not post the > error . OK here is: > > wxLua CVS used: wxLua_Snapshot_2006-05-04.tar.gz > > - System: Slackware 10.1; gcc-3.3.6 (g++ 3.3.6) > - wx-2.6.3 local compiled in > /home/sk/wx263/GCCBuildReleaseGTK2Unicode/ > source is /home/sk/wx263 > > > - configure with > > ./configure --with-wxdir=/home/sk/wx263 > --with-wx-config=/home/sk/wx263/GCCBuildReleaseGTK2Unicode/wx-config > --with-wx-prefix=/home/sk/wx263 --enable-wxluadebug=no > --disable-wxluaedit-app > > (last time I omit the --enable-wxluadebug=no and the same error) > configure runs ok. make gives the error: > > .././bk-deps g++ -c -o wxbind_lib_controls.o -I../modules/wxbind/setup > -I../modules -I./.. > -I/home/sk/wx263/GCCBuildReleaseGTK2Unicode/lib/wx/include/gtk2-unicode-release-static-2.6 > -I/home/sk/wx263/include -I/home/sk/wx263/contrib/include > -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES > -D_LARGEFILE_SOURCE=1 -O2 -march=i486 -mcpu=i586 -fno-strength-reduce -g0 > -O2 ../modules/wxbind/src/controls.cpp > ../modules/wxbind/src/controls.cpp: In function `int > wxLua_wxListCtrl_GetEditControl(lua_State*)': > ../modules/wxbind/src/controls.cpp:2692: error: > `GetEditControl' undeclared > (first use this function) > ../modules/wxbind/src/controls.cpp:2692: error: (Each > undeclared identifier is > reported only once for each function it appears in.) > make[1]: *** [wxbind_lib_controls.o] Error 1 > make[1]: Leaving directory `/home/sk/tmp/wxLua/modules' > make: *** [modules] Error 2 > bash-3.00$ > > Cheers, > > > > S.KIEU > > ________________________________ > On Yahoo!7 > 360°: Your own space to share what you want with who you want! > > > ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Wxlua-users mailing list Wxl...@li... https://lists.sourceforge.net/lists/listinfo/wxlua-users S.KIEU --------------------------------- On Yahoo!7 360°: Your own space to share what you want with who you want! |
From: John L. <jla...@gm...> - 2006-05-07 15:03:09
|
Thanks, fixed, the listctrl for gtk doesn't have the wxListCtrl::GetEditControl in 2.6, but does in 2.7 (which I sometimes use). The latest snapshot should work. -John Labenski On 5/6/06, Steve Kieu <ha...@ya...> wrote: > > > The latest snapshot wxLua_Snapshot_2006-05-04.tar.gz does not compile f= or > me > > so no chance to test > > Compiles and runs using wxWidgets 2.6.3 in Linux and MSW using Visual > Studio for me. In the future you should always state why it doesn't > compile (errors, platform, wxWidgets version) so we can fix it. > I thought it would be in another topic though that is why I did not post = the > error . OK here is: > > wxLua CVS used: wxLua_Snapshot_2006-05-04.tar.gz > > - System: Slackware 10.1; gcc-3.3.6 (g++ 3.3.6) > - wx-2.6.3 local compiled in > /home/sk/wx263/GCCBuildReleaseGTK2Unicode/ > source is /home/sk/wx263 > > > - configure with > > ./configure --with-wxdir=3D/home/sk/wx263 > --with-wx-config=3D/home/sk/wx263/GCCBuildReleaseGTK2Unicode/wx-config > --with-wx-prefix=3D/home/sk/wx263 --enable-wxluadebug=3Dno > --disable-wxluaedit-app > > (last time I omit the --enable-wxluadebug=3Dno and the same error) > configure runs ok. make gives the error: > > .././bk-deps g++ -c -o wxbind_lib_controls.o -I../modules/wxbind/setup > -I../modules -I./.. > -I/home/sk/wx263/GCCBuildReleaseGTK2Unicode/lib/wx/include/gtk2-unicode-r= elease-static-2.6 > -I/home/sk/wx263/include -I/home/sk/wx263/contrib/include > -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=3D64 -D_LARGE_FILES > -D_LARGEFILE_SOURCE=3D1 -O2 -march=3Di486 -mcpu=3Di586 -fno-strength-r= educe -g0 > -O2 ../modules/wxbind/src/controls.cpp > ../modules/wxbind/src/controls.cpp: In function `int > wxLua_wxListCtrl_GetEditControl(lua_State*)': > ../modules/wxbind/src/controls.cpp:2692: error: > `GetEditControl' undeclared > (first use this function) > ../modules/wxbind/src/controls.cpp:2692: error: (Each > undeclared identifier is > reported only once for each function it appears in.) > make[1]: *** [wxbind_lib_controls.o] Error 1 > make[1]: Leaving directory `/home/sk/tmp/wxLua/modules' > make: *** [modules] Error 2 > bash-3.00$ > > Cheers, > > > > S.KIEU > > ________________________________ > On Yahoo!7 > 360=B0: Your own space to share what you want with who you want! > > > |