[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: IM and LuaJIT
- From: "Antonio Scuri" <scuri@...>
- Date: Fri, 12 Aug 2011 11:43:35 -0300
The IM pre-compiled binary uses Lua byte code to embedded Lua source into the library.
To use IM in LuaJIT some libraries must be recompiled without the flag IMLUA_USELOH. Just comment the line:
DEFINES = IMLUA_USELOH
In the following makefiles:
imlua5.mak
imlua_process5.mak
imlua_fftw5.mak
Then you will have to include in your distribution the following files:
im_image.lua
im_convert.lua
im_process.lua
im_fftw.lua
Best Regards,
Antonio Scuri
> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Pierre Chapuis
> Sent: sexta-feira, 12 de agosto de 2011 11:33
> To: lua-l@lists.lua.org
> Subject: IM and LuaJIT
>
> I try to load IM in LuaJIT 2 (git master) and it fails with:
>
> $ luajit -e 'require "imlua"'
> stack traceback:
> [C]: ?
> [C]: in function 'require'
> (command line):1: in main chunk
> [C]: ?
>
> It works fine in Lua. Any idea why?
>
> (This was on Mac OS X 64 bits)
>
> --
> Pierre 'catwell' Chapuis