Problems compiling with SDL in mandrake Linux 8.2

I should start this by saying I’m pretty new to Linux, so could easily
be missing out on something pretty obvious. I’ve been having really
terrible luck trying to get SDL using programs compiling in Linux.I’ve
been using the fire-1.0 demo as my test to see if everythings up and
running.

I the development option when I installed mandrake, which is supposed to
include SDL libraries. Unfortunately though, it dosn’t seem to be
working out very well for development. Upon trying ./configure with the
fire demo, everything worked alright until it attempted to detect SDL.
It tried to find SDL 1.0.1 or higher, and then said it couldn’t be
found. In the config.log there’s a line which reads “/usr/bin/ld: cannot
find -lasound” which would seem to be the problem. Oh, and to be on the
safe side I ran though the faq on libsdl.org of course. I changed the
ld.so.conf to point to the directory which contained libartsc.so.0, and
to have /usr/local/lib in it. Still no luck.

I tried which sdl-config which returned /usr/bin/sdl-config
sdl-config --version returned 1.2.3
locate libSDL showed must of the stuff in /usr/lib/

Next I simply uninstalled everything related to sdl on my system in a
fit of desperation, and installed the binary and development rpm of
1.2.4-1 for mandrake 8.1 from the libsdl site.I had some good, and some
bad from that. The good is that I was able to compile and run sdl
programs, the bad is that I wasn’t able to use sdl_image in a program.
The rpms made for mandrake refuse to install because I no longer have
the initial sdl installs on my computer.

Does anyone know what’s going on with sdl in mandrake 8.2? It seems very
weird that they’d ship out the distribution with it incorrectly
configured to compile sdl programs, right from the start.

Make a link from /usr/lib/libasound.so to /usr/lib/libasound.so.whatever…

My hard drive recently throttled itself so I can’t tell you the exact name
of the libasound library. Sorry 'bout that.

You may need to do an ldd after making the link.

Hope this helps,

AHMick> ----- Original Message -----

From: Joe Tierney [mailto:joetierney@attbi.com]
Sent: Friday, 19 April 2002 8:49 AM
To: sdl at libsdl.org
Subject: [SDL] Problems compiling with SDL in mandrake Linux 8.2

I should start this by saying I’m pretty new to Linux, so could easily
be missing out on something pretty obvious. I’ve been having really
terrible luck trying to get SDL using programs compiling in Linux.I’ve
been using the fire-1.0 demo as my test to see if everythings up and
running.

I the development option when I installed mandrake, which is supposed to
include SDL libraries. Unfortunately though, it dosn’t seem to be
working out very well for development. Upon trying ./configure with the
fire demo, everything worked alright until it attempted to detect SDL.
It tried to find SDL 1.0.1 or higher, and then said it couldn’t be
found. In the config.log there’s a line which reads “/usr/bin/ld: cannot
find -lasound” which would seem to be the problem. Oh, and to be on the
safe side I ran though the faq on libsdl.org of course. I changed the
ld.so.conf to point to the directory which contained libartsc.so.0, and
to have /usr/local/lib in it. Still no luck.

I tried which sdl-config which returned /usr/bin/sdl-config
sdl-config --version returned 1.2.3
locate libSDL showed must of the stuff in /usr/lib/

Next I simply uninstalled everything related to sdl on my system in a
fit of desperation, and installed the binary and development rpm of
1.2.4-1 for mandrake 8.1 from the libsdl site.I had some good, and some
bad from that. The good is that I was able to compile and run sdl
programs, the bad is that I wasn’t able to use sdl_image in a program.
The rpms made for mandrake refuse to install because I no longer have
the initial sdl installs on my computer.

Does anyone know what’s going on with sdl in mandrake 8.2? It seems very
weird that they’d ship out the distribution with it incorrectly
configured to compile sdl programs, right from the start.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I was pretty disappointed with Mandrake 8.2. The
strstream header is screwed up, which makes me think
that a number of things managed to slip through
testing. I’m running it now, but I’ve abandoned the
rpms and just went with source tarballs for everything
that I need. It would not suprise me at all that the
SDL distribution included wouldn’t compile anything,
because I think it happened to me. Just install from
source over the default installation.

I like mandrake, but I think they really screwed this
one up,

Andrew.

— Joe Tierney wrote:> I should start this by saying I’m pretty new to

Linux, so could easily
be missing out on something pretty obvious. I’ve
been having really
terrible luck trying to get SDL using programs
compiling in Linux.I’ve
been using the fire-1.0 demo as my test to see if
everythings up and
running.

I the development option when I installed mandrake,
which is supposed to
include SDL libraries. Unfortunately though, it
dosn’t seem to be
working out very well for development. Upon trying
./configure with the
fire demo, everything worked alright until it
attempted to detect SDL.
It tried to find SDL 1.0.1 or higher, and then said
it couldn’t be
found. In the config.log there’s a line which reads
“/usr/bin/ld: cannot
find -lasound” which would seem to be the problem.
Oh, and to be on the
safe side I ran though the faq on libsdl.org of
course. I changed the
ld.so.conf to point to the directory which contained
libartsc.so.0, and
to have /usr/local/lib in it. Still no luck.

I tried which sdl-config which returned
/usr/bin/sdl-config
sdl-config --version returned 1.2.3
locate libSDL showed must of the stuff in /usr/lib/

Next I simply uninstalled everything related to sdl
on my system in a
fit of desperation, and installed the binary and
development rpm of
1.2.4-1 for mandrake 8.1 from the libsdl site.I had
some good, and some
bad from that. The good is that I was able to
compile and run sdl
programs, the bad is that I wasn’t able to use
sdl_image in a program.
The rpms made for mandrake refuse to install because
I no longer have
the initial sdl installs on my computer.

Does anyone know what’s going on with sdl in
mandrake 8.2? It seems very
weird that they’d ship out the distribution with it
incorrectly
configured to compile sdl programs, right from the
start.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

Next I simply uninstalled everything related to sdl on my system in a
fit of desperation, and installed the binary and development rpm of
1.2.4-1 for mandrake 8.1 from the libsdl site.I had some good, and some
bad from that. The good is that I was able to compile and run sdl
programs, the bad is that I wasn’t able to use sdl_image in a program.
The rpms made for mandrake refuse to install because I no longer have
the initial sdl installs on my computer.

Do you know the exact RPM errors here?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

i have mandrake82 too…

i’m using SDL source distribution from libsdl.org now,

but back when i used the SDL and SDL-devel packages,

the problem ( when for example i compiled mplayer )
was that there were files like

libasound.so.0 ( or libasound.so.1 i don’t exactly remember ),
but no libasound.so
a “simple ln -s libasound.so.0 libasound.so” solved the problem…

when i’ve run ./configure for mplayer, it told me there isn’t any SDL
installed… so i checked config.log and found that he couldn’t find
that file ( -lasound)…
i corrected it…and rerun ./configure…

now he complained above an other .so file ( i fixed it the same way )…

then it compiled and worked…

btw. i think the newest SDL mandrake packages (in cooker) are corrected

bye,
gaborOn Fri, 2002-04-19 at 07:16, Sam Lantinga wrote:

Next I simply uninstalled everything related to sdl on my system in a
fit of desperation, and installed the binary and development rpm of
1.2.4-1 for mandrake 8.1 from the libsdl site.I had some good, and some
bad from that. The good is that I was able to compile and run sdl
programs, the bad is that I wasn’t able to use sdl_image in a program.
The rpms made for mandrake refuse to install because I no longer have
the initial sdl installs on my computer.

Do you know the exact RPM errors here?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

SDL does not provide libasound.

I’m all for bashing Mandrake for screwing up … just about every release
they’ve ever made in some fashion or another such that it is a headache
for any developer who’s smart enough to stay the hell away from their
cursed distribution, but it’s not fair to misattribute problems. =) This
is their ALSA packages you’re talking about here, not their SDL packages.

It’s essential to get it right! ;)On Fri, Apr 19, 2002 at 04:01:43PM -0400, gabor wrote:

libasound.so.0 ( or libasound.so.1 i don’t exactly remember ),
but no libasound.so
a “simple ln -s libasound.so.0 libasound.so” solved the problem…


Joseph Carter Have chainsaw will travel

I am practicing a fine point of ethics. It is acceptable to shoot back.
It is not acceptable to shoot first.
– Zed Pobre

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020419/30d0dd26/attachment.pgp

#include <SDL.h>
int main(void) { return 0; }

gcc /tmp/mplayer-conf-21558-9348.c -o /tmp/mplayer-conf-8584-9348.o
-I/usr/include/SDL -D_REENTRANT -L/usr/lib -lSDL -lpthread -lm -lasound
-L/usr/lib -ldl -lartsc -lpthread -L/usr/lib -lesd -laudiofile -lm
-L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXxf86dga -lXv -lXinerama -ldl
/usr/bin/ld: cannot find -lasound
collect2: ld returned 1 exit status

ldd /tmp/mplayer-conf-8584-9348.o
ldd: /tmp/mplayer-conf-8584-9348.o: No such file or directory

Result is: noOn Fri, 2002-04-19 at 10:24, Joseph Carter wrote:

On Fri, Apr 19, 2002 at 04:01:43PM -0400, gabor wrote:

libasound.so.0 ( or libasound.so.1 i don’t exactly remember ),
but no libasound.so
a “simple ln -s libasound.so.0 libasound.so” solved the problem…

SDL does not provide============ Checking for SDL ============

##########################################

bye,
gabor

libasound.

ok…

i’ve simply seen it in configure.log:

I’m all for bashing Mandrake for screwing up … just about every release
they’ve ever made in some fashion or another such that it is a headache
for any developer who’s smart enough to stay the hell away from their
cursed distribution, but it’s not fair to misattribute problems. =) This
is their ALSA packages you’re talking about here, not their SDL packages.

It’s essential to get it right! :wink:


Joseph Carter Have chainsaw will travel

I am practicing a fine point of ethics. It is acceptable to shoot back.
It is not acceptable to shoot first.
– Zed Pobre

I have packed up an mplayer src.rpm in the download section
of http://freespace.sf.net - all you need is an additional

Require: libalsa1-devel

in your .spec file - the mdk guys forgot to put that
dependency on libSDL1.2-devel rpm, so it is not installed
along when you install libSDL1.2-devel and all builds
will fail that depend on libSDL1.2-devel

$ rpm -q --file /usr/lib/libasound.so
libalsa1-devel-0.5.10b-1mdk
$ rpm -q --file /usr/lib/libasound.so.1
libalsa1-0.5.10b-1mdk

there are more such problems in mdk8.2, it’s not anymore a
good development base, sorry to say that. If you meet a
mandrake guy, tell them… sigh

cheers, guido

Es schrieb gabor:

i have mandrake82 too…

i’m using SDL source distribution from libsdl.org now,

but back when i used the SDL and SDL-devel packages,

the problem ( when for example i compiled mplayer )
was that there were files like

libasound.so.0 ( or libasound.so.1 i don’t exactly remember ),
but no libasound.so
a “simple ln -s libasound.so.0 libasound.so” solved the problem…

when i’ve run ./configure for mplayer, it told me there isn’t any SDL
installed… so i checked config.log and found that he couldn’t find
that file ( -lasound)…
i corrected it…and rerun ./configure…

now he complained above an other .so file ( i fixed it the same way )…

then it compiled and worked…

btw. i think the newest SDL mandrake packages (in cooker) are corrected

bye,
gabor

Next I simply uninstalled everything related to sdl on my system in a
fit of desperation, and installed the binary and development rpm of
1.2.4-1 for mandrake 8.1 from the libsdl site.I had some good, and some
bad from that. The good is that I was able to compile and run sdl
programs, the bad is that I wasn’t able to use sdl_image in a program.
The rpms made for mandrake refuse to install because I no longer have
the initial sdl installs on my computer.

Do you know the exact RPM errors here?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

– guido http://freespace.sf.net/guidod
GCS/E/S/P C++/++++$ ULHS L++w- N++@ d(±) s+a- r+@>+++ y++ 5++X- (geekcode)> On Fri, 2002-04-19 at 07:16, Sam Lantinga wrote: