Page 4 of 6

Re: LÖVE 0.6.0

Posted: Tue Dec 29, 2009 10:38 am
by ido
bartbes wrote:Ah thanks, I'm revising the deb anyway, will fix it now.

EDIT: It already does, it depends on libopenal1
Still doesn't work for some reason:

Code: Select all

ido@ido-laptop:~$ love
love: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory
ido@ido-laptop:~$ ls /usr/lib/libopenal*
/usr/lib/libopenal64.so  /usr/lib/libopenal.so.1
/usr/lib/libopenal.so    /usr/lib/libopenal.so.1.8.466

Re: LÖVE 0.6.0

Posted: Tue Dec 29, 2009 10:56 am
by Robin
netghost wrote:So why was Color removed? It seems pretty useful to me.
Dunno why it was removed, but you can use a table for the same effect.

Code: Select all

c = love.graphics.newColor(100, 0, 255)
love.graphics.setColor(c)
c = love.graphics.getColor()
--becomes:
c = {100, 0, 255}
love.graphics.setColor(unpack(c))
c = {love.graphics.getColor()}

Re: LÖVE 0.6.0

Posted: Tue Dec 29, 2009 11:08 am
by bartbes
ido wrote:

Code: Select all

ido@ido-laptop:~$ love
love: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory
ido@ido-laptop:~$ ls /usr/lib/libopenal*
/usr/lib/libopenal64.so  /usr/lib/libopenal.so.1
/usr/lib/libopenal.so    /usr/lib/libopenal.so.1.8.466
Could you tell me the output of

Code: Select all

ldd love
and

Code: Select all

ls -l /usr/lib/libopenal.so.1
?
I myself recently found one of my lib symlinks became corrupted.
If both are normal you can try

Code: Select all

LD_LIBRARY_PATH=/usr/lib love

Re: LÖVE 0.6.0

Posted: Tue Dec 29, 2009 11:41 am
by ido
bartbes wrote: Could you tell me the output of

Code: Select all

ldd love
and

Code: Select all

ls -l /usr/lib/libopenal.so.1
?

Code: Select all

ido@ido-laptop:~$ love
love: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory
ido@ido-laptop:~$ ldd love
ldd: ./love: No such file or directory
ido@ido-laptop:~$ ls -l /usr/lib/libopenal.so.1
lrwxrwxrwx 1 root root 14 2009-12-22 13:38 /usr/lib/libopenal.so.1 -> libopenal64.so

Re: LÖVE 0.6.0

Posted: Tue Dec 29, 2009 11:45 am
by Sslaxx
Love is installed in /usr/bin so you need to do

Code: Select all

ldd /usr/bin/love
to find out about the libraries it uses/needs.

Re: LÖVE 0.6.0

Posted: Tue Dec 29, 2009 12:10 pm
by ido
http://pastebin.com/mae2943e

The main point of interest is the line:

Code: Select all

libopenal.so.1 => not found
Even tho

Code: Select all

$ ls -l /usr/lib/libopenal.so.1
lrwxrwxrwx 1 root root 23 2009-12-29 13:15 /usr/lib/libopenal.so.1 -> /usr/lib/libopenal64.so
(i relinked it myself to be on the safe side)

LD_LIBRARY_PATH doesn't seem to help either:

Code: Select all

$ LD_LIBRARY_PATH=/usr/lib lovelove: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory

Re: LÖVE 0.6.0

Posted: Tue Dec 29, 2009 12:17 pm
by Sslaxx
Have you made sure you've installed OpenAL?

Code: Select all

sudo apt-get install libopenal1
(Ubuntu 9.10)

Re: LÖVE 0.6.0

Posted: Tue Dec 29, 2009 12:19 pm
by ido
Sslaxx wrote:Have you made sure you've installed OpenAL?

Code: Select all

sudo apt-get install libopenal1
(Ubuntu 9.10)
Yes, otherwise I wouldn't have had the file to begin with:

Code: Select all

$ sudo apt-get install libopenal1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libopenal1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

Re: LÖVE 0.6.0

Posted: Wed Dec 30, 2009 9:41 pm
by Jasoco
Trying to port my engine over, but can't remember all the new stuff. Like how do I do the main loop now? I saw an example before but I have no idea where it went now. My code is complex. But after removing the love.filesystem. from the require() functions I now get a black screen instead of a blue error. So I'm on my way. But where do I go from here? I would have hoped for another error screen to guide me. I guess not since it is now acting like a blank .love file with no code.

Re: LÖVE 0.6.0

Posted: Wed Dec 30, 2009 10:08 pm
by bmelts
If you're getting a black screen, you probably haven't fixed your callbacks. All the callbacks are now in the love table - e.g. instead of update(dt) and draw(), it's love.update(dt) and love.draw().

That should get LÖVE to run said callbacks, so you can debug all the other inevitable errors that will crop up.