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

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.
Post Reply
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

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

Post by qubodup » Fri Dec 05, 2008 6:55 am

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).
Attachments
wrath.png
Wrath, with my love.
wrath.png (99.91 KiB) Viewed 2004 times
make_love.txt
$ make
(83.54 KiB) Downloaded 99 times
conf_love.txt
$ ./configure LDFLAGS=-L/home/qubodup/src/releases/box2d_v.2.0.1/Include/
(5.31 KiB) Downloaded 100 times
Last edited by qubodup on Thu Feb 05, 2009 9:29 pm, edited 2 times in total.
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post by bartbes » Fri Dec 05, 2008 7:01 am

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.

User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

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

Post by qubodup » Fri Dec 05, 2008 7:18 am

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
Attachments
love_strace.txt
(264.65 KiB) Downloaded 98 times
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

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

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

Post by farvardin » Fri Dec 05, 2008 7:49 pm

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.

User avatar
alenofx
Prole
Posts: 9
Joined: Thu Nov 27, 2008 2:37 pm
Contact:

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

Post by alenofx » Fri Dec 05, 2008 8:29 pm

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

User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

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

Post by qubodup » Sat Dec 06, 2008 1:57 am

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.
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

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

Post by qubodup » Sun Dec 07, 2008 9:11 am

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?
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

User avatar
alenofx
Prole
Posts: 9
Joined: Thu Nov 27, 2008 2:37 pm
Contact:

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

Post by alenofx » Sun Dec 07, 2008 1:19 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests