Page 1 of 2

Problem with module

Posted: Sat Jun 28, 2008 11:59 am
by Chrishas
Hi,
I'm trying to run the demos included in the source of love and I get the following error:

Code: Select all

Loading of module failed. Failed loading /usr/lib/love/./liblove_sdltimer.so: /usr/lib/love/./liblove_sdltimer.so: undefined symbol: lua_getmetatable
I'm running Slackware 12.0,and I managed to make love without errors, although i had to copy love/lib from my home folder to /usr/lib.
Any help?

Edit: Irrelevant, but maybe you should try breaking up the forum into different sections, if you wait until later you will probably end up wasting a lot of time sorting threads into the different sections. Plus if you keep it this way it will be hard to tell whether a subject is for support or just something general..., just a suggestion.

Re: Problem with module

Posted: Sat Jun 28, 2008 12:32 pm
by rude
liblove_sdltimer.so is the first module loaded, so it looks like it didn't link with Lua properly (or at all). But you say it's made with no errors ...

There are lot's of people with more Linux-know-how than me here ... so step up people. :)

I'll also direct tido (Linux maintainer) to this thread if/when he appears on Skype.

Re: Problem with module

Posted: Sat Jun 28, 2008 1:34 pm
by appleide
Hmm, is your Lua version 5.0 or 5.1?

Re: Problem with module

Posted: Sat Jun 28, 2008 8:04 pm
by Chrishas
It's 5.1

Re: Problem with module

Posted: Sat Jun 28, 2008 8:37 pm
by rude
Ok, I'm not going to pretend to know what's wrong, so we'll just have to wait for tido.

Meanwhile, which version of gcc do you use? (He would probably want to know that).

(^.^)/

Re: Problem with module

Posted: Sat Jun 28, 2008 10:30 pm
by Chrishas
Gcc 4.1.2. maybe lua must be installed with an option or somthing.

Re: Problem with module

Posted: Sun Jun 29, 2008 12:47 pm
by rude
Seems like tido is nowhere to be seen these days ...

I can download Slackware and try things for myself (I always wanted to try it), but that would take a few days. ^^

Does Slackware have a package manager, btw?

Re: Problem with module

Posted: Sun Jun 29, 2008 9:49 pm
by tido
Which version are you compiling? I fear that Slackware might have a totally different Lua structure. In that case, I guess we'll have no choice but to install it and see for ourselves... :/

Edit: Slackware has a package system with many clients it seems. It'd be nice if you could give us a crash course. :D

Edit #2: Wait a minute, if you had to manually copy your shared libs to the proper folder, then you're using an ancient Makefile system. We've moved over to Automagic, aka Autoconf + Automake, that will take care of stuff such as _properly_ linking to Lua. The current SVN doesn't compile, but that should be fixed in a few days.

Edit #3: Current SVN _does_ compile.

Re: Problem with module

Posted: Mon Jun 30, 2008 2:31 am
by rude
Update: talked it over with tido and concluded that automagic stuff still isn't 100% done. If you still want to try current SVN, run:

Code: Select all

libtoolize && aclocal && autoconf && automake -a
./configure
make
make install
But, to be honest, it will most likely fail miserably until we've tested it on Slackware for ourselves. (Still downloading).

Re: Problem with module

Posted: Mon Jun 30, 2008 6:55 am
by farvardin
I got this "Failed loading /usr/lib/love/./liblove_sdltimer.so: /usr/lib/love/./liblove_sdltimer.so: cannot open shared object file: No such file or directory", but it's just because the lib are supposed to be kept in /usr/lib and nowhere else (like /usr/local/lib for example)