Hey I installed LuaFileSystem using LuaRocks and Love2D couldn't find the library.
The lfs.so file was in lua 5.2. I moved it to lua 5.1 so it could find it. Now I get a separate error:
Error: error loading module 'lfs' from file '/usr/local/lib/lua/5.1/lfs.so':
dlopen(/usr/local/lib/lua/5.1/lfs.so, 6): Symbol not found: _luaL_setfuncs
Referenced from: /usr/local/lib/lua/5.1/lfs.so
Expected in: dynamic lookup
stack traceback:
[C]: at 0x7fff04caa140
[C]: in function 'require'
//IOController/IOController.lua:4: in main chunk
[C]: in function 'require'
Game.lua:5: in main chunk
[C]: in function 'require'
main.lua:2: in main chunk
[C]: in function 'require'
[string "boot.lua"]60: in function <[string "boot.lua"]:241>
[C]: in function 'xpcall'
I'm writing a map editor, I just finished the world editing and saving and loading last night but I want to save the maps in the source directory instead of the application support directory. The reason for this is so that when I edit a map, I can hit commit in git and my buddy can edit the same world as me.
Copying the saved world into the repository for every edit so my buddy and I can collaborate is too tedious. I'm gonna use Lua File System to save the data in the repository folder with the source.
Is there a way to make Lua File System compile with Lua 5.1 to be compatible with Love2D?