cfc 1.7.1 : gcc: could not find SDL_image

Speak about everything in regards to Crossfire.

Moderator: Board moderators

User avatar
bencha
Junior member
Posts: 110
Joined: Tue Feb 22, 2005 3:24 pm
Location: Paris

cfc 1.7.1 : gcc: could not find SDL_image

Post by bencha »

cfc & gcfc 1.7.0 were compiling on my linux box, but not the SDL client.
I've read somewhere that someone in cfc 1.7.1 have fixed it.
now, I can't get the gcfclient1.7.1, even after a SDL-1.2.8 install, without a --disable-sdl when configuring.

so, for those who can see the sdlclient, does SDL really add a better view or a better gameplay, or can i forget to spend time with ?
poof
Senior member
Posts: 333
Joined: Fri May 07, 2004 5:31 pm
Location: Alaska, USA

Post by poof »

FWIW, if I do not use GTK+ with SDL enabled on my Linux box then the client leaks memory horribly.
e-mail: poof \a\t eracc \d\o\t com
User avatar
bencha
Junior member
Posts: 110
Joined: Tue Feb 22, 2005 3:24 pm
Location: Paris

Post by bencha »

my GTK without SDL client on an old box only leaks 3 screens :?
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post by Mith »

poof wrote:FWIW, if I do not use GTK+ with SDL enabled on my Linux box then the client leaks memory horribly.
even with cvs? i had this problem several months ago, installed cvs and it was gone

bencha, if configure fails, where does it fail?
Bibendi ergo sum
or rather: sum ergo bibendi
Guest

Post by Guest »

configure don't seem to fail, it's when making that gcc says

Code: Select all

**X11: could not find SDL_image.h
exit(1) (where ** is g or cf or gcf)
and only builds cfclient. with --disable-sdl, gcfclient is build too.

note : SDL-1.2.8 is installed with headers files, but SDL_image.h doesn't exists
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post by Mith »

a little more output would be easier to track down a problem, but you likely dont have the sdl headers installed.

what distro are you using? try to install the sdl-dev package
Bibendi ergo sum
or rather: sum ergo bibendi
User avatar
bencha
Junior member
Posts: 110
Joined: Tue Feb 22, 2005 3:24 pm
Location: Paris

Post by bencha »

i've installed all the sdl packages (needed alien 'cause sdl-dev is only in .rpm on libsdl... :evil: ), then rebuild all with the new sdl-1.2.8 on a knoppix to hd

but it's not the main question :
does the use of sdl really improve the client ?
if so, i'll try to fix it, but don't want to do it for when i can get a 3200*2400 screen or to discover i need a 3000+ghz.
User avatar
bencha
Junior member
Posts: 110
Joined: Tue Feb 22, 2005 3:24 pm
Location: Paris

Post by bencha »

ok, fixed.
just enter in your cf client directory, before make depends

Code: Select all

$ touch SDL_image.h
all the needed functions seems to be in the SDL.h includes.

and the only difference i see is the gray color of out of sight areas.
Rednaxela
Senior member
Posts: 434
Joined: Wed Jan 26, 2005 5:13 am

Post by Rednaxela »

bencha wrote:and the only difference i see is the gray color of out of sight areas.
SDL support is also good for proformance, but the opengl support in the experimental gtk2 client makes a much bigger difference than sdl
User avatar
bencha
Junior member
Posts: 110
Joined: Tue Feb 22, 2005 3:24 pm
Location: Paris

Post by bencha »

won't try opengl for now, got a too old computer.
but i hope to see that soon
Post Reply