LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   LuaSDL (https://www.linuxquestions.org/questions/programming-9/luasdl-618023/)

gvp87 02-01-2008 03:48 PM

LuaSDL
 
I just downloaded a precompiled binary for LuaSDL, called libluaSDL.so. I placed it into my /usr/lib directory, as per the instructions on the website. I include the SDL module in my Lua app [require("libluaSDL")].

I still can't get it to compile. This is the error message i'm receiving:

lua: /home/giusi/Lua/sdlTest.lua:3: module 'libluaSDL' not found:
no field package.preload['libluaSDL']
no file './libluaSDL.lua'
no file '/usr/local/share/lua/5.1/libluaSDL.lua'
no file '/usr/local/share/lua/5.1/libluaSDL/init.lua'
no file '/usr/local/lib/lua/5.1/libluaSDL.lua'
no file '/usr/local/lib/lua/5.1/libluaSDL/init.lua'
no file '/usr/share/lua/5.1/libluaSDL.lua'
no file '/usr/share/lua/5.1/libluaSDL/init.lua'
no file './libluaSDL.so'
no file '/usr/local/lib/lua/5.1/libluaSDL.so'
no file '/usr/lib/lua/5.1/libluaSDL.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/giusi/Lua/sdlTest.lua:3: in main chunk
[C]: ?


anyone familiar with Lua or SDL that can help me out?? I'd appreciate it! Thanks
giuseppe

KenJackson 02-02-2008 12:53 AM

Have you tried moving it to one of those directories? Say:

# mv /usr/lib/libluaSDL.so /usr/local/lib/lua/5.1/


All times are GMT -5. The time now is 12:59 PM.