[Imtoolkit-users] Getting LU53 to work with IM etc under Windows
Brought to you by:
scuri
From: Philip I. <pcg...@ya...> - 2017-01-10 17:33:13
|
Greetings! After using Lua + IM through "Lua for Windows" for some years, I would like to move on using Lua 5.3. I'm having problems getting Lua 5.3 to talk to IM under Windows 10 (x64). I suspect that I have missed something obvious because presumably other people have made it work sucessfully. As set out here: http://webserver2.tecgraf.puc-rio.br/iup/ I have created the following structure: C:\PUC-LuaEtc\binaries\ im\ lua53\ Unpack \path\to\downloads\lua-5.3.3_Win64_bin.zip into lua53 as above. I go to C:\PUC-LuaEtc\binaries\lua53 and type "lua53" to check that it works: it duly reports that it is 5.3.3. Unpack \path\to\downloads\im-3.12_Win64_dllw4_lib.zip into im as above Unpack \path\to\downloads\im-3.12-Lua53_Win64_dllw4_lib.zip into im\lua53 I'm not sure if this is where it should be put. ***Is a "link" stage needed here? If so, some detailed guidance would be helpful as I have no idea how to do this. I'm aware that if I download the static or dynamic library zip files, there is no .exe file and when I try compiling the source using tecmake, again, there is no .exe file. Presumably this is because it does indeed just compile and not link.*** The system %PATH% variable is huge but there is no reference in it to any Lua or IM related directories: C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\GNU\GnuPG\pub;C:\HandInstalledPrograms\AndroidDevt\sdk\platform-tools;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\HandInstalledPrograms\SQLite;C:\Program Files (x86)\GnuWin32\bin;C:\HandInstalledPrograms\MinGW\bin;C:\Program Files (x86)\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Skype\Phone;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;C:\HandInstalledPrograms\exiftools;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ The LUA_PATH, LUA_CPATH and derivatives have all been deleted as have the "User" copies of these variable and the PATH variable. I run lua53 again, C:\PUC-LuaEtc\binaries\lua53>lua53 Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio > print(package.path) C:\PUC-LuaEtc\binaries\lua53\lua\?.lua;C:\PUC-LuaEtc\binaries\lua53\lua\?\init.lua;C:\PUC-LuaEtc\binaries\lua53\?.lua;C:\PUC-LuaEtc\binaries\lua53\?\init.lua;C:\PUC-LuaEtc\binaries\lua53\..\share\lua\5.3\?.lua;C:\PUC-LuaEtc\binaries\lua53\..\share\lua\5.3\?\init.lua;.\?.lua;.\?\init.lua > print(package.cpath) C:\PUC-LuaEtc\binaries\lua53\?.dll;C:\PUC-LuaEtc\binaries\lua53\..\lib\lua\5.3\?.dll;C:\PUC-LuaEtc\binaries\lua53\loadall.dll;.\?.dll;C:\PUC-LuaEtc\binaries\lua53\?53.dll;.\?53.dll-- I confess that I don't understand what the ".." does in the paths above but that is how they appear when I run the system "out of the box". -- now reset package.cpath to include the IM directories > package.cpath=[=[C:\PUC-LuaEtc\binaries\lua53\?.dll;C:\PUC-LuaEtc\binaries\lua53\..\lib\lua\5.3\?.dll;C:\PUC-LuaEtc\binaries\lua53\loadall.dll;.\?.dll;C:\PUC-LuaEtc\binaries\lua53\?53.dll;.\?53.dll;C:\PUC-LuaEtc\im\?.dll;C:\PUC-LuaEtc\im\?53.dll;C:\PUC-LuaEtc\binaries\im\Lua53\?.dll;C:\PUC-LuaEtc\binaries\im\Lua53\?53.dll;]=] > require"imlua" error loading module 'imlua' from file 'C:\PUC-LuaEtc\binaries\im\Lua53\imlua53.dll': The specified module could not be found. stack traceback: [C]: in ? [C]: in function 'require' stdin:1: in main chunk [C]: in ? > How, please can I make IM work with Lua53 and then go on to integrate CD and IUP? Regards, Philip -- Philip Ingram |