buluozhiri / luaforwindows

Automatically exported from code.google.com/p/luaforwindows
0 stars 0 forks source link

iup.dll is missing (but not really?) #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 -- at end of installation of luaforwindows, I chose to run the lua examples.
 -- When Example 37 ran, I received error: "The program can't start because iup.dll is missing from your computer. Try reinstalling the program to fix this problem."

What is the expected output? 
 -- unsure what was supposed to happen, this is my first time ever installing or using luaforwindows.

What do you see instead?
 -- Here is the output from Example 37:

Output of failed example:
++++++++BEGIN++++++++++++++++
-- Example 37   -- External Libraries.
-- Lua has support for external modules using the 'require' function
-- INFO: A dialog will popup but it could get hidden behind the console.

require( "iuplua" )
ml = iup.multiline
    {
    expand="YES",
    value="Quit this multiline edit app to continue Tutorial!",
    border="YES"
    }
dlg = iup.dialog{ml; title="IupMultiline", size="QUARTERxQUARTER",}
dlg:show()
print("Exit GUI app to continue!")
iup.MainLoop()

-------- Output ------

failed to load & run sample code
error loading module 'iuplua' from file 'C:\Program Files 
(x86)\Lua\5.1\clibs\iuplua51.dll':
        The specified module could not be found.

Press 'Enter' key for next example

++++++++END++++++++++++++++

What version of the product are you using? On what operating system?
 -- Lua V5.1.4-46

Please provide any additional information below.
 -- Here is a directory output of all files beginning with "iu".

C:\Program Files (x86)\Lua\5.1\clibs>dir iu*.*
 Volume in drive C has no label.
 Volume Serial Number is C89C-9E22

 Directory of C:\Program Files (x86)\Lua\5.1\clibs

04/26/2011  10:02 AM           438,272 iup.dll
04/26/2011  10:12 AM             6,656 iupcd.dll
04/26/2011  02:06 PM           135,168 iupcontrols.dll
04/26/2011  10:14 AM            11,776 iupgl.dll
04/26/2011  10:08 AM           446,464 iupgtk.dll
04/26/2011  10:14 AM            10,752 iupim.dll
04/26/2011  11:17 AM           921,600 iupimglib.dll
04/26/2011  02:02 PM           122,880 iuplua51.dll
04/26/2011  02:03 PM             7,168 iupluacd51.dll
04/26/2011  02:03 PM            22,016 iupluacontrols51.dll
04/26/2011  02:04 PM             9,216 iupluagl51.dll
04/26/2011  02:04 PM             7,168 iupluaim51.dll
04/26/2011  02:04 PM             6,656 iupluaimglib51.dll
04/26/2011  02:04 PM             8,192 iupluaole51.dll
04/26/2011  02:04 PM             9,728 iupluatuio51.dll
04/26/2011  02:04 PM             8,704 iupluaweb51.dll
04/26/2011  02:03 PM            13,312 iuplua_pplot51.dll
04/26/2011  01:57 PM            18,944 iupole.dll
04/26/2011  01:58 PM            69,632 iuptuio.dll
04/26/2011  01:59 PM            53,248 iupweb.dll
04/26/2011  10:14 AM           122,880 iup_pplot.dll
              21 File(s)      2,450,432 bytes
               0 Dir(s)  128,578,420,736 bytes free

C:\Program Files (x86)\Lua\5.1\clibs>

Original issue reported on code.google.com by xuc...@gmail.com on 11 Nov 2012 at 8:11

GoogleCodeExporter commented 9 years ago
I had this same issue. I fixed it by updating the LUA_PATH to include the clibs 
directory.

LUA_PATH=;;C:\Program Files (x86)\Lua\5.1\lua\?.luac;C:\Program Files 
(x86)\Lua\5.1\clibs\?.dll

Reference: http://www.lua.org/pil/8.1.html

Original comment by cmcdev...@gmail.com on 8 Jan 2013 at 9:11