Problem with module

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Chrishas
Prole
Posts: 4
Joined: Sat Jun 28, 2008 11:51 am

Problem with module

Post by Chrishas » Sat Jun 28, 2008 11:59 am

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.

User avatar
rude
Administrator
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Problem with module

Post by rude » Sat Jun 28, 2008 12:32 pm

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.

User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: Problem with module

Post by appleide » Sat Jun 28, 2008 1:34 pm

Hmm, is your Lua version 5.0 or 5.1?

Chrishas
Prole
Posts: 4
Joined: Sat Jun 28, 2008 11:51 am

Re: Problem with module

Post by Chrishas » Sat Jun 28, 2008 8:04 pm

It's 5.1

User avatar
rude
Administrator
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Problem with module

Post by rude » Sat Jun 28, 2008 8:37 pm

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).

(^.^)/

Chrishas
Prole
Posts: 4
Joined: Sat Jun 28, 2008 11:51 am

Re: Problem with module

Post by Chrishas » Sat Jun 28, 2008 10:30 pm

Gcc 4.1.2. maybe lua must be installed with an option or somthing.

User avatar
rude
Administrator
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Problem with module

Post by rude » Sun Jun 29, 2008 12:47 pm

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?

User avatar
tido
Prole
Posts: 28
Joined: Mon Feb 04, 2008 4:08 pm
Contact:

Re: Problem with module

Post by tido » Sun Jun 29, 2008 9:49 pm

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.

User avatar
rude
Administrator
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Problem with module

Post by rude » Mon Jun 30, 2008 2:31 am

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).

User avatar
farvardin
Party member
Posts: 161
Joined: Sat Jun 28, 2008 6:46 pm

Re: Problem with module

Post by farvardin » Mon Jun 30, 2008 6:55 am

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)

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests