From: Steve K. <ha...@ya...> - 2006-05-06 06:40:05
|
Hi everyone, When I use luac to compile a lua script, is the script use repeat .... until condition luac gives an error like: `=' expected near `i' the line error is the line contains until condition But if run the script directly using wxlua or lua, it is fine. I downloaded lua-5.1 from lua homepage and try to use luac without problem. Of course can not integrate into wxLua as it complain about version mismatch. Is it a known bug? how can I fix it? At the moment I just do not use repeat -- until as a work around :-) Cheers, S.KIEU Send instant messages to your online friends http://au.messenger.yahoo.com |
From: John L. <jla...@gm...> - 2006-05-06 07:10:17
|
On 5/6/06, Steve Kieu <ha...@ya...> wrote: > When I use luac to compile a lua script, is the script use > > repeat > .... > until condition > > luac gives an error like: > > `=3D' expected near `i' > the line error is the line contains until condition Can you provide a very simple example of code that fails? I haven't used luac for some time. > But if run the script directly using wxlua or lua, it is fine. Strange. > I downloaded lua-5.1 from lua homepage and try to use luac without proble= m. > Of course can not integrate into wxLua as it complain about version > mismatch. What version of wxLua are you using? If you use one of the snapshots from the download page it uses 5.1, the last release 2.6.2 uses 5.0.1. > Is it a known bug? how can I fix it? At the moment I just do not use repe= at > -- until as a work around :-) I don't think we knew about this before, I prefer while loops... Regards, John Labenski |
From: Steve K. <ha...@ya...> - 2006-05-06 08:00:55
|
Hi, The sample code is just liek this count=1 repeat print("Test this 3 times") count=count+1 until count==4 save as test.lua Run lua test.lua $ lua test.lua Test this 3 times Test this 3 times Test this 3 times run using wxlua instead of lua $ wxlua test.lua Test this 3 times Test this 3 times Test this 3 times Now compile with luac test.lua $ luac test.lua luac: test.lua:7: `=' expected near `count' Of course no luac.out created. I am using version wxlua-2.6.2.0.tar.gz The latest snapshot wxLua_Snapshot_2006-05-04.tar.gz does not compile for me so no chance to test Cheers John Labenski <jla...@gm...> wrote: On 5/6/06, Steve Kieu wrote: > When I use luac to compile a lua script, is the script use > > repeat > .... > until condition > > luac gives an error like: > > `=' expected near `i' > the line error is the line contains until condition Can you provide a very simple example of code that fails? I haven't used luac for some time. > But if run the script directly using wxlua or lua, it is fine. Strange. > I downloaded lua-5.1 from lua homepage and try to use luac without problem. > Of course can not integrate into wxLua as it complain about version > mismatch. What version of wxLua are you using? If you use one of the snapshots from the download page it uses 5.1, the last release 2.6.2 uses 5.0.1. > Is it a known bug? how can I fix it? At the moment I just do not use repeat > -- until as a work around :-) I don't think we knew about this before, I prefer while loops... 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: John L. <jla...@gm...> - 2006-05-06 15:55:54
|
On 5/6/06, Steve Kieu <ha...@ya...> wrote: > The sample code is just liek this ... > Now compile with luac test.lua > > $ luac test.lua > luac: test.lua:7: `=3D' expected near `count' No problems using the CVS version, which is also the latest snapshot. > I am using version wxlua-2.6.2.0.tar.gz I haven't tried that, lets focus on the next version. > 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. Regards, John Labenski |
From: Steve K. <ha...@ya...> - 2006-05-07 00:02:15
|
Hi all, > 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! |
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! > > > |
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-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: 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: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: 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)... |