Page 1 of 1

[SOLVED] Compiling LÖVE 0.5.0 = errors (Arch Linux x86_64)

Posted: Fri Dec 05, 2008 6:55 am
by qubodup
Solved! See this thread for clarification!


dpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library error

I need help. You see, I made LÖVE, for the first time.

Code: Select all

$ ./configure LDFLAGS=-L/home/qubodup/src/releases/box2d_v.2.0.1/Include/
$ make
So far, so good. But when I use it to play for example Wrath, images don't get displayed and I get a strance command-line output.

Code: Select all

$ ~/src/releases/love-0.5-0/src/love wrath.love 
This is LOVE 0.5.0 (Salted Nuts).

INIT love.filesystem [PhysFS]
INIT love.graphics [OpenGL/DevIL/FreeType]
INIT love.audio [SDL_mixer]
INIT love.timer [SDL]
INIT love.mouse [SDL]
INIT love.keyboard [SDL]
INIT love.physics [Box2D]
INIT love.lib [LuaSocket] 
INIT love.joystick [SDL]
INIT love.system [Generic]
dpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorpng library errorQUIT love.system [Generic]
QUIT love.joystick [SDL]
QUIT love.lib [LuaSocket] 
QUIT love.physics [Box2D]
QUIT love.keyboard [SDL]
QUIT love.mouse [SDL]
QUIT love.timer [SDL]
QUIT love.audio [SDL_mixer]
QUIT love.graphics [OpenGL/DevIL/FreeType]
QUIT love.filesystem [PhysFS]
I attached both the outputs of ./configure and make and also a screen of how Wrath looks (the player and items are missing).

Re: Compiling LÖVE 0.5.0 leads to png errors (Arch Linux x86_64)

Posted: Fri Dec 05, 2008 7:01 am
by bartbes
Are you sure you got all of the library (and not just the dev files, or something like that)? I can't see any errors in both, so I guess they only occur in runtime, try ldd on the resulting binary and check if everything is resolved. If everything is, you might try and do something like strace to see where it goes wrong.

Re: Compiling LÖVE 0.5.0 leads to png errors (Arch Linux x86_64)

Posted: Fri Dec 05, 2008 7:18 am
by qubodup
bartbes wrote:Are you sure you got all of the library (and not just the dev files, or something like that)? I can't see any errors in both, so I guess they only occur in runtime, try ldd on the resulting binary and check if everything is resolved. If everything is, you might try and do something like strace to see where it goes wrong.
I think I have all of LÖVE's dependencies.

Code: Select all

$ pacman -Q lua nvidia sdl sdl_mixer freetype2 devil physfs boost swig
lua 5.1.4-2
nvidia 177.82-1
sdl 1.2.13-3
sdl_mixer 1.2.8-3
freetype2 2.3.7-1
devil 1.6.7-5
physfs 1.1.1-1
boost 1.36.0-2
swig 1.3.36-1
and box2d was custom-built and provided via LDFLAG.

Arch Linux' package system doesn't have '-dev' packages, so I'm actually not sure what that means. I suppose that means that source and binary are provided at the same time..

I'll try to figure out how to use ldd and strace now then.

PS:

Code: Select all

$ ldd src/love
        linux-vdso.so.1 =>  (0x00007fff4c1fe000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f1043d39000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f1044008000)
        libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007f1043ac8000)
        libIL.so.1 => /usr/lib/libIL.so.1 (0x00007f10437af000)
        libILU.so.1 => /usr/lib/libILU.so.1 (0x00007f1043598000)
        libphysfs.so.1 => /usr/lib/libphysfs.so.1 (0x00007f1043376000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x00007f10430dd000)
        libSDL_mixer-1.2.so.0 => /usr/lib/libSDL_mixer-1.2.so.0 (0x00007f1042e6f000)
        liblua.so => /usr/lib/liblua.so (0x00007f1042c44000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f1042938000)
        libm.so.6 => /lib/libm.so.6 (0x00007f10426b5000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f104249e000)
        libc.so.6 => /lib/libc.so.6 (0x00007f104214a000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f1041f2f000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f1041d1a000)
        libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x00007f1040c60000)
        libnvidia-tls.so.1 => /usr/lib/libnvidia-tls.so.1 (0x00007f1040b5f000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f104094e000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f1040642000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f104043e000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00007f1040216000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00007f103fff3000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x00007f103fd97000)
        libmng.so.1 => /usr/lib/libmng.so.1 (0x00007f103fc2b000)
        /lib/ld-linux-x86-64.so.2 (0x00007f1043fce000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f103fa29000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0x00007f103f828000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f103f60c000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f103f507000)
PS2:

Code: Select all

$ ls /usr/lib/libpng*
/usr/lib/libpng.a   /usr/lib/libpng.so.3       /usr/lib/libpng12.a   /usr/lib/libpng12.so.0
/usr/lib/libpng.so  /usr/lib/libpng.so.3.33.0  /usr/lib/libpng12.so  /usr/lib/libpng12.so.0.33.0
PS3:

Attached strace

Re: Compiling LÖVE 0.5.0 leads to png errors (Arch Linux x86_64)

Posted: Fri Dec 05, 2008 7:49 pm
by farvardin
have you tried using my PKGBUILD?

http://aur.archlinux.org/packages.php?ID=18091
http://aur.archlinux.org/packages/love/love/PKGBUILD

I don't have a 64 bits system, but everything is working well so if there is an error it's maybe related to 64 bits.

And yes, there is not dev package in archlinux, they are included with the 'normal' libraries. It's not bad, though for making a livecd it can be a bit annoying to include the qt designer just because there is a qt dep in a package.

Re: Compiling LÖVE 0.5.0 leads to png errors (Arch Linux x86_64)

Posted: Fri Dec 05, 2008 8:29 pm
by alenofx
I use Arch Linux x86_64 too, and I've just manually update DevIL to 1.7.3 to fix this problem.
(It's a 64bit related problem only, works fine with the chroot 32bit environment).

Re: Compiling LÖVE 0.5.0 leads to png errors (Arch Linux x86_64)

Posted: Sat Dec 06, 2008 1:57 am
by qubodup
farvardin wrote:have you tried using my PKGBUILD?
No I did not. I will however, when I get DevIL to work.
alenofx wrote:I use Arch Linux x86_64 too, and I've just manually update DevIL to 1.7.3 to fix this problem.
(It's a 64bit related problem only, works fine with the chroot 32bit environment).
Thanks, I try to compile DevIL now, although this too doesn't work as I wish it would.

Re: Compiling LÖVE 0.5.0 leads to png errors (Arch Linux x86_64)

Posted: Sun Dec 07, 2008 9:11 am
by qubodup
alenofx wrote:I use Arch Linux x86_64 too, and I've just manually update DevIL to 1.7.3 to fix this problem.
DevIL compiles now, however I'm uncertain as to how to install it or whether I should link it, as I did with box2d.

Did you create a package for DevIL? or did you just make install?

Re: Compiling LÖVE 0.5.0 leads to png errors (Arch Linux x86_64)

Posted: Sun Dec 07, 2008 1:19 pm
by alenofx
qubodup wrote:
alenofx wrote:I use Arch Linux x86_64 too, and I've just manually update DevIL to 1.7.3 to fix this problem.
DevIL compiles now, however I'm uncertain as to how to install it or whether I should link it, as I did with box2d.

Did you create a package for DevIL? or did you just make install?
There is the devil 1.6.7-5 package in the official extra repository; I've synchronized the package tree with ABS, copied related files in a new folder, modified the PKGBUILD to compile the latest version (fixing headers problem directly in sources) and installed using pacman.

I never use make install, I always prefer packages. ;)