Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile LuaFileSystem library and get .dll file WITHOUT luarocks?

So, I got file "lfs.c" "lfs.h" "lfs.def" and ".gitignore". I tried installing MinGW and typing in that command: gcc lfs.c (Keep in mind that I'm a total newbie in such things), which leaves me with error "failed to include lua.h"... I don't know how to do that, can anyone please explain to me how to do that? Or at least give me the link to already compiled lfs.dll?

like image 747
user3426112 Avatar asked Nov 26 '25 04:11

user3426112


1 Answers

You are likely to be missing Lua include files; see this SO answer for details on how to set it up.

Simply getting lfs.dll may not be so easy as different DLLs may depends on different Lua DLLs on Windows. I have lfs.dll that is compiled against Lua51.dll, so if this works for your project/needs, you can get a compiled version here.

like image 112
Paul Kulchenko Avatar answered Nov 28 '25 19:11

Paul Kulchenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!