## Problem with module

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Chrishas
Prole
Posts: 4
Joined: Sat Jun 28, 2008 11:51 am

### Problem with module

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.
rude
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

### Re: Problem with module

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.
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

### Re: Problem with module

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

It's 5.1
rude
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

### Re: Problem with module

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

Gcc 4.1.2. maybe lua must be installed with an option or somthing.
rude
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

### Re: Problem with module

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?
tido
Prole
Posts: 28
Joined: Mon Feb 04, 2008 4:08 pm
Contact:

### Re: Problem with module

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.

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.
rude
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

### Re: Problem with module

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).
farvardin
Party member
Posts: 164
Joined: Sat Jun 28, 2008 6:46 pm

### Re: Problem with module

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)

### Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 45 guests