starwing / luautf8

a utf-8 support module for Lua and LuaJIT.
MIT License
406 stars 67 forks source link

Can I use it without installing via luarocks? #14

Open helloworldguy4 opened 6 years ago

helloworldguy4 commented 6 years ago

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.

vadi2 commented 6 years ago

Ask for help on https://github.com/luarocks/luarocks/issues

starwing commented 6 years ago

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

rinart73 commented 6 years ago

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.

vadi2 commented 6 years ago

Use luarocks to install, then copy the DLL to your application. That's what we do.

On Sat, 13 Jan 2018, 12:56 pm rinart73, notifications@github.com wrote:

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.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/starwing/luautf8/issues/14#issuecomment-357429529, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGxjDYdag77x6KZ8czP3qVnqHX7ywmjks5tKJn0gaJpZM4QzTuF .

starwing commented 6 years ago

or build it directly.

xiaolitongxue666 commented 2 years ago

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

alerque commented 2 years ago

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.