Hi All,

  First important thing, LuaJIT is for Lua 5.1 ONLY. See its documentation:

http://luajit.org/status.html

 It builds a modified "lua51.dll", so the Lua DLL in IUP Tools packages
must be ignored.

  But in IUP we use a "lua5.1.dll", notice the difference in the name. To
use it with IUP there two options, rebuild LuaJIT using the same suffix, or
use a DLL proxy that will map calls for "lua5.1.dll" into "lua51.dll". The
DLL proxy can be found here:

http://webserver2.tecgraf.puc-rio.br/iup/download/lua5.1_proxy.zip

  The IUP Tools packages includes a proxy in the other way, mapping
"lua51.dll" calls into "lua5.1.dll", this is NOT the case.

  In Linux this can be easily fixed with links in the file system.

  Notice that LuaJIT can be built for 32 or 64 bits. So the IUP packages
must be the respective ones.

  I did a test here in 64 bits and the IUP executables and DLLs worked ok
with LuaJIT.

Best,
Scuri


Em qui, 18 de abr de 2019 às 10:43, David Cuny <davidfc...@gmail.com>
escreveu:

>
> Thanks for the suggestions.
>
> I've tried loading the 32 bit  5.1 version of the library from
> *iup-3.26-Lua51_Win32_dllw6_lib*, and changed the first lines to:
>
> package.cpath = package.cpath .. ".\\?51.dll;"
> require("iuplua")
>
> However, I now get the error:
>
>
> * error loading module 'iuplua' from file '.\iuplua51.dll':        The
> specified module could not be found.*
>
> stack traceback:
>         [C]: in function 'searcher'
>         .../init.lua:827: in function 'findinit'
>         .../init.lua:852: in function <.../init.lua:843>
>         [C]: in function 'xpcall'
>         .../init.lua:923: in function 'require'
>         hello.lua:2: in main chunk
>         [C]: at 0x01231f20
> stack traceback:
>         [C]: in function 'error'
>         .../init.lua:926: in function 'require'
>         hello.lua:2: in main chunk
>         [C]: at 0x01231f20
>
> Are any people successfully using LuaJIT with IUP?
>
> -- David
>
> On Wed, Apr 17, 2019 at 5:37 AM Antonio Scuri <antonio.sc...@gmail.com>
> wrote:
>
>>   Hi,
>>
>>   The two packages are very different. First you need to know which
>> LuaJit you are using, 32 or 64 bits.
>>
>>   From the first message it looks like you are using a 32 bit version,
>> but try to load a 64 bits DLL.
>>
>>   From the second message it looks like other files are missing, like
>> iup.dll. Notice that these files must also be 32 bits or 64 bits
>> accordingly.
>>
>> Best,
>> Scuri
>>
>>
>> Em qua, 17 de abr de 2019 às 06:22, Johann Philippe via Iup-users <
>> iup-users@lists.sourceforge.net> escreveu:
>>
>>> As far as I know, there is no distribution of luajit compatible with lua
>>> 5.3. The last luajit distro i know is 5.1 so you should download the full
>>> iup package for lua5.1.
>>> Also, make sure your luajit interpreter is 64bit, (and your OS too).
>>>
>>> Le mardi 16 avril 2019 à 21:12:12 UTC+2, David Cuny <dc...@lanset.com>
>>> a écrit :
>>>
>>>
>>> I'm trying to run IUP using LuaJIT, but with no success.
>>>
>>> I've downloaded the library files* iup-3.26-Lua53_Win64_dll15_lib *and
>>> unzipped them into the same directory as the LuaJIT executable.
>>>
>>> At the head of my Lua script, I've got:
>>>
>>>
>>> *package.cpath = package.cpath .. ".\\?53.dll;"require("iuplua")*
>>>
>>> On launching LuaJIT, I get the error:
>>>
>>> *%1 is not a valid Win32 application.*
>>>
>>> Using the library* iup-3.26-Lua53_Win32_dll15_lib*, I get the error:
>>>
>>>
>>> *error loading module 'iuplua' from file '.\iuplua53.dll':        The
>>> specified module could not be found.*
>>>
>>> What's the proper way to run IUP from LuaJIT?
>>>
>>> Thanks!
>>>
>>> -- David Cuny
>>> _______________________________________________
>>> Iup-users mailing list
>>> Iup-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>> _______________________________________________
>>> Iup-users mailing list
>>> Iup-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>> _______________________________________________
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to