Using IUP with Lua on Ubuntu

I am trying to get IUP to work on Ubuntu. I downloaded the binaries from sourceforge, and the libraries seem to be in / usr / lib / libiup * .so, but when I write the script like this:

require("iuplua")
iup.Message('Testing App!', 'Finished Successfully!')

I get an error message:

lua: attempt to call a nil value
stack traceback:
    [C]: ?
    [C]: in function 'require'
    test.lua:1: in main chunk
    [C]: ?

Looking at this, I saw a message saying that someone seemed to fix it - their "LD_LIBRARY_PATH did not point to the correct cd and im directories" or something like that. I cannot fix my problem with the environment variable LD_LIBRARY_PATH. I saw another 2008 note saying that “IUPLua binaries have hard-coded lua bytecode causing an error.” I tried to compile the sources, but I get errors related to cd.h.

Any help would be greatly appreciated. Thank!

+3
1

, , .

Lua , , .

package.path: Lua .lua
package.cpath: Lua .so/.dll

Lua: . , package.path package.cpath.

, :

print(package.path.."\n"..package.cpath)

:

package.path = package.path..";/usr/lib/?.lua"
package.cpath = package.cpath..";/usr/lib/?.so"
+1

Source: https://habr.com/ru/post/1785339/


All Articles