Re: [wxlua-users] build against luajit
On Fri, Oct 3, 2014 at 4:37 AM, Victor Bombi son...@telefonica.net wrote: Hello, When trying to build against a external lua library (luajit in mac osx 10.9) it complains about not finding luaopen_bit32 Isn't this a confusion with lua5.2? I haven't build with luajit recently, does it not have the function luaopen_bit32(lua_State* L) anymore or maybe it never did, I forget... I committed a blind fix to svn trunk to have wxLua always compile the bit32 lib even for luajit. It's a tiny lib and provides Lua 5.2 compatibility, which might be useful to some. Regards, John -- Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] build against luajit
I see that you provided it in lbitlib.c and with BUILD_VERBOSELY=TRUE I can see it is included in linking, so I dont know what else to look for. I know I can build against wxlua provided lua5.1 and then use module from luajit but I got a crash doing that and that is why I try to build against luajit Hello, When trying to build against a external lua library (luajit in mac osx 10.9) it complains about not finding luaopen_bit32 Isn't this a confusion with lua5.2? Best victor -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] build against luajit
Victor, I know I can build against wxlua provided lua5.1 and then use module from luajit but I got a crash doing that and that is why I try to build against luajit I only build against lua5.1, but only use LuaJIT and haven't seen any issues on Windows/OSX/Linux during the last 1.5 years I have this configuration in ZeroBrane Studio. Maybe you need to check what led to the crash. LuaJIT is stricter in some aspects than Lua5.1; maybe you can turn jit off to see if it still crashes. Paul. -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] build against luajit
Hi Victor, I have tried build-macosx.sh from ZeroBrane (luarocks dont have wxlua, luaDist not woking for me, so I liked to see that) first ./build-macosx.sh lua jit then ./build-macosx.sh wxlua and getting the same error about not finding _luaopen_bit32 forgot to say that in the middle ./build-macosx.sh wxwidgets Right, as I said, I don't build wxlua against luajit; so, in my case it's something like this: ./build-macosx.sh lua wxwidgets wxlua ./build-macosx.sh lua jit John, while we are on the subject of bit32, I think it needs to be cleaned in/from wxlua: first of all, you seem to have several implementations of bit module (bitlib in wxlstate.cpp and bit32 in lbitlib.c with different implementations); second, there is a problem with bit.bnot that does incorrect calculations using the latest LuaJIT (but the problem seems to be with wxlua implementation). See this commit for details: https://github.com/pkulchenko/ZeroBraneStudio/commit/64b14f4005e86a7cdb05dc9a53c64dc3c6c6180f Paul. -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] build against luajit
./build-macosx.sh lua wxwidgets wxlua ./build-macosx.sh lua jit Thanks, I will try that. -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users