Update lfs lib LuaFileSystem
(Current: 1.5.0 !!20/Oct/2009!!) to latest Version 1.8.0 [22/Apr/2020]
I tried to compile the lfs build for 32-bit architecture myself, but errors constantly appear. I no longer know what to try to compile lfs…
Tried to compile lfs with build lua 5.4.5 32bit and MinGW compiler also tried using luarocks to compile but no success. Got same error: mingw32-gcc -O2 -c -o src/lfs.o -IC:\Program Files\Luarocks3.4.0 src/lfs.c src/lfs.c: In function 'push_link_target': src/lfs.c:1097:9: warning: implicit declaration of function 'memmove_s'; did you mean 'memmove'? [-Wimplicit-function-declaration] 1097 | memmove_s(target, tsize - 3, target + 4, tsize - 3); | ^~~~~~~~~ | memmove · Issue #144 · lunarmodules/luafilesystem · GitHub
If someone can compile the last version of lfs library for win32 and linux please share
Looks like they rolled back that issue: win32: use standard memmove function
Solar uses Lua 5.1.5, so you’ll want to compile against that.
I compiled lua 5.1.5 32bit but lfs lib doesn’t want to compile. Idk…
Microsoft Windows [Version 10.0.19045.2846]
(c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.
X:\LuaBuild>cd luafilesystem-master
X:\LuaBuild\luafilesystem-master>mingw32-make
gcc -shared -o src/lfs.so src/lfs.o
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export luaopen_lfs: symbol not found
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `src/lfs.o' is incompatible with i386:x86-64 output
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x121): undefined reference to `_GetFileAttributesExA@12'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x183): undefined reference to `___udivdi3'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x1af): undefined reference to `___udivdi3'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x1db): undefined reference to `___udivdi3'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x208): undefined reference to `__stati64'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x30d): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x316): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x338): undefined reference to `_lua_pushfstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x33d): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x34b): undefined reference to `_lua_pushinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x361): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x377): undefined reference to `_lua_pushstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x3a3): undefined reference to `_luaL_checklstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x3c8): undefined reference to `_lua_isstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x3e2): undefined reference to `_lua_settop'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x3f2): undefined reference to `_lua_type'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x40f): undefined reference to `_lua_createtable'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x428): undefined reference to `_lua_pushstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x449): undefined reference to `_lua_rawset'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x47c): undefined reference to `_lua_tolstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x4aa): undefined reference to `_strcmp'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x4d4): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x4d9): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x4fb): undefined reference to `_lua_pushfstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x500): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x50e): undefined reference to `_lua_pushinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x530): undefined reference to `_luaL_error'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x545): undefined reference to `__stati64'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x56c): undefined reference to `_luaL_checkudata'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x57d): undefined reference to `_CloseHandle@4'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x5be): undefined reference to `_luaL_checklstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x5d8): undefined reference to `_lua_pushcclosure'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x5e8): undefined reference to `_lua_newuserdata'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x602): undefined reference to `_lua_getfield'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x612): undefined reference to `_lua_setmetatable'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x627): undefined reference to `_strlen'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x642): undefined reference to `_luaL_error'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x667): undefined reference to `_sprintf'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x6a3): undefined reference to `_luaL_checkudata'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x6c5): undefined reference to `__findfirst'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x6dd): undefined reference to `_lua_pushstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x6fc): undefined reference to `__findnext'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x70c): undefined reference to `__findclose'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x73c): undefined reference to `_luaL_argerror'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x74c): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x751): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x767): undefined reference to `_lua_pushstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x7a0): undefined reference to `__getcwd'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x7a9): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x7be): undefined reference to `___mingw_realloc'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x7dc): undefined reference to `___mingw_free'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x7fd): undefined reference to `_lua_pushstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x83d): undefined reference to `_luaL_checklstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x847): undefined reference to `__chdir'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x85b): undefined reference to `_lua_pushboolean'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x874): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x879): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x89b): undefined reference to `_lua_pushfstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x8c4): undefined reference to `_lua_touserdata'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x8ec): undefined reference to `__findclose'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x959): undefined reference to `_fseek'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x96c): undefined reference to `__locking'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x9a2): undefined reference to `_fseek'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x9aa): undefined reference to `_ftell'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0x9df): undefined reference to `_luaL_checkudata'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xa01): undefined reference to `_luaL_checklstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xa1b): undefined reference to `_luaL_optinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xa35): undefined reference to `_luaL_optinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xa64): undefined reference to `_lua_pushboolean'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xa7c): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xa81): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xa9f): undefined reference to `_lua_pushfstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xac4): undefined reference to `_luaL_error'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xaee): undefined reference to `_luaL_checkudata'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xb10): undefined reference to `_luaL_optinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xb2a): undefined reference to `_luaL_optinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xb5b): undefined reference to `_lua_pushboolean'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xb74): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xb79): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xb97): undefined reference to `_lua_pushfstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xbc4): undefined reference to `_luaL_error'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xbec): undefined reference to `_luaL_checklstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xbf4): undefined reference to `__mkdir'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xc09): undefined reference to `_lua_pushboolean'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xc24): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xc29): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xc3f): undefined reference to `_lua_pushstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xc44): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xc52): undefined reference to `_lua_pushinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xc7c): undefined reference to `_luaL_checklstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xc84): undefined reference to `__rmdir'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xc99): undefined reference to `_lua_pushboolean'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xcb4): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xcb9): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xccf): undefined reference to `_lua_pushstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xcd4): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xce2): undefined reference to `_lua_pushinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xd0d): undefined reference to `_luaL_checklstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xd17): undefined reference to `_lua_gettop'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xd36): undefined reference to `_luaL_optnumber'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xd6f): undefined reference to `_luaL_optinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xd98): undefined reference to `_lua_pushboolean'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xdb4): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xdb9): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xdcf): undefined reference to `_lua_pushstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xdd4): undefined reference to `__errno'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xde2): undefined reference to `_lua_pushinteger'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xe1d): undefined reference to `_luaL_checkudata'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xe47): undefined reference to `_luaL_checkoption'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xe5d): undefined reference to `__setmode'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xe74): undefined reference to `_lua_pushboolean'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xe91): undefined reference to `_lua_pushnil'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xead): undefined reference to `_lua_pushstring'
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text+0xec4): undefined reference to `_lua_pushnil'
...(max len of text)...
X:/LuaBuild/tdm-gcc/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/lfs.o:lfs.c:(.text.unlikely+0x34): undefined reference to `_luaL_checkoption'
collect2.exe: error: ld returned 1 exit status
Makefile:15: recipe for target 'src/lfs.so' failed
mingw32-make: *** [src/lfs.so] Error 1
X:\LuaBuild\luafilesystem-master>
also I cant make via ‘luarocks’
X:\LuaBuild\luarocks>luarocks config --local lua_dir "X:\LuaBuild\lua"
Wrote
lua_interpreter = "lua.exe"
variables.LUA_BINDIR = "X:\\LuaBuild\\lua\\bin"
variables.LUA_DIR = "X:\\LuaBuild\\lua"
variables.LUA_INCDIR = "X:\\LuaBuild\\lua/include"
variables.LUA_LIBDIR = "X:\\LuaBuild\\lua/bin"
to
C:/Users/redbo/AppData/Roaming/luarocks/config-5.1.lua
X:\LuaBuild\luarocks>luarocks install luafilesystem
Warning: Lua 5.4 interpreter not found at X:\LuaBuild\luarocks
Modules may not install with the correct configurations. You may want to configure the path prefix to your build of Lua 5.4 using
luarocks config --local lua_dir <your-lua-prefix>
Installing https://luarocks.org/luafilesystem-1.8.0-1.src.rock
Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR.
X:\LuaBuild\luarocks>
There’s actually a second makefile for Windows there, which would build a DLL rather than a shared object file. Maybe you’d have better luck?
Also, strictly speaking, the includes / lib for Windows are in <ProgramFilesOrWherever>\Corona Labs\Corona\Native\Corona
, under shared/include/lua
and win/lib
. I don’t know mingw well enough to say how to adapt that,though.
Anyhow, I guess this is what you really want to compare against: GitHub - coronalabs/submodule-lfs at e7661591ca3a355f763ddd842da1ffa3d810f27c (It’s actually part of the engine build.)
I have really 0 Idea, how to build this… You can close topic, im done