starwing / luautf8

a utf-8 support module for Lua and LuaJIT.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I use it without installing via luarocks?

helloworldguy4 opened this issue · comments

Hello can I use the library by downloading the folder but not installing it with luarocks?
I already tried putting the folder near to the lua file and doing require "luautf8" but this doesn't work.

I have much problems with luarocks. I cant install anything via luarocks.

you must compile the luautf8.c file into lua-utf8.so or dll to do the work.

Tried to do so, sucessfully compiled using MSVC С++ 2017.
But when I'm trying to require it in LuaJIT 2.0.5 program, I get:
Failed to run script: error loading module 'lua-utf8' from file '.\lua-utf8.dll': the specified procedure could not be found (I translated message from my language)

Can someone please give a hint? Luarocks may be a good thing, but I need to include this library into standalone application, so this is not an option.

or build it directly.

or build it directly.
Can't you tell me how to build directly?

Can't you tell me how to build directly?

If you don't know how to compile C source code for the particular Lua interpreter you want to use the module with, then ... you probably shouldn't be going down that road. Use luarocks.

I cant install anything via luarocks.

I suggest this issue should be closed. Troubleshooting Luarocks or providing work arounds for other system problems shouldn't be the job of a library problem to fix.