Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to compile gdash (Boulder Dash Clone)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Ion Silverbolt
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 203

PostPosted: Tue Jan 10, 2012 7:15 pm    Post subject: Trying to compile gdash (Boulder Dash Clone) Reply with quote

The game says it depends on GTK+ dev files, SDL, SDL_Image and SDL_Mixer (both with dev files).


I have all the reqiured dependencies installed. It hangs here:
Code:
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DPKGDATADIR=\"/usr/local/share/gdash\" -DHAVE_CONFIG_H -I. -I.. -I../include   -g -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm   -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng15   -g -O2 -MT sreplay-IMG_savepng.o -MD -MP -MF .deps/sreplay-IMG_savepng.Tpo -c -o sreplay-IMG_savepng.o `test -f 'IMG_savepng.c' || echo './'`IMG_savepng.c
IMG_savepng.c: In function ‘IMG_SavePNG_RW’:
IMG_savepng.c:87:31: error: ‘voidp’ undeclared (first use in this function)
IMG_savepng.c:87:31: note: each undeclared identifier is reported only once for each function it appears in
IMG_savepng.c:87:37: error: expected ‘)’ before ‘src’
IMG_savepng.c:87:37: error: too few arguments to function ‘png_set_write_fn’
/usr/include/libpng15/png.h:1738:1: note: declared here
IMG_savepng.c:94:20: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
IMG_savepng.c:97:23: error: ‘Z_NO_COMPRESSION’ undeclared (first use in this function)
IMG_savepng.c:103:43: error: ‘Z_DEFAULT_COMPRESSION’ undeclared (first use in this function)
IMG_savepng.c: At top level:
IMG_savepng.c:48:13: warning: ‘png_write_data’ defined but not used
make[2]: *** [sreplay-IMG_savepng.o] Error 1
make[2]: Leaving directory `/usr/local/src/gdash-20100212/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gdash-20100212'
make: *** [all] Error 2


Thank you.
Back to top
View user's profile Send private message
cbx550f
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 112
Location: Ontario, Canada

PostPosted: Sat Jan 21, 2012 8:36 pm    Post subject: Reply with quote

Looks like it's because of the API changes in libpng 1.5.

It's generally a fairly easy fix, so if you know C at all a bit of googling will point you in the right direction. Other than that, check in with the devs to see if there's a newer version (CVS, SVN, etc)
_________________
I think, therefore I am wrong.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum