SDL and kdevelop

I’ve gone through the threads on konqueror, but I still can’t get it set
up right.

I have the following configuration:
$(/bin/sh sdl-config --cflags) $(/bin/sh sdl-config --libs) for
additional flags (the command shell doesn’t work on my system…weird.)
-L/usr/include/ -lSDL for additional libraries.

This the error msg I get when I try to make:
/bin/sh …/libtool --mode=link gcc -O0 -g3 -Wall -I/usr/include/SDL
-D_REENTRANT -L/usr/lib -lSDL -lpthread -o game3dc main.o
-L/usr/include/ -lSDL
gcc -O0 -g3 -Wall -I/usr/include/SDL -D_REENTRANT -o .libs/game3dc
main.o -L/usr/lib -lm -ldl -lm -L/usr/X11R6/lib -ldl -L/usr/include/
/usr/lib/libSDL.so -lm -ldl /usr/lib/libartsc.so -lpthread
/usr/lib/libesd.so /usr/lib/libaudiofile.so -lm -lX11 -lXext -lXxf86vm
-lXxf86dga -lXv /usr/lib/libggi.so /usr/lib/libgii.so /usr/lib/libgg.so
-lvga -laa -ldl
/usr/bin/ld: cannot find -lvga

First of all: the files: libartsc.so, libggi.so, libgii.so and libgg.so
didn’t exist so I created them and linked them properly. Now it’s
requesting the vga library? Why does it expand all the libraries it
needs so much? How can I fix this?

thanks.

Yacine Salmi

First of all: the files: libartsc.so, libggi.so, libgii.so and libgg.so
didn’t exist so I created them and linked them properly. Now it’s
requesting the vga library? Why does it expand all the libraries it
needs so much? How can I fix this?

When you build SDL, do this:

./configure --disable-arts --disable-video-ggi --disable-video-svga

Then, you won’t need any of those extra libraries. Actually, you should
run ./configure --help to see the ton of options for including/excluding
bits of SDL you don’t want.

–ryan.

I don’t mind having to rebuild the SDL library (I’m doing so as we
speak), but if I let other people use my code in the future, I don’t
want them to encounter the same problem. Is there anything else I can
do?

Yacine SalmiOn 08 May 2001 16:13:35 -0700, Ryan C. Gordon wrote:

First of all: the files: libartsc.so, libggi.so, libgii.so and libgg.so
didn’t exist so I created them and linked them properly. Now it’s
requesting the vga library? Why does it expand all the libraries it
needs so much? How can I fix this?

When you build SDL, do this:

./configure --disable-arts --disable-video-ggi --disable-video-svga

Then, you won’t need any of those extra libraries. Actually, you should
run ./configure --help to see the ton of options for including/excluding
bits of SDL you don’t want.

–ryan.

Ok, now I don’t know what’s going on.
After compiling from source the SDL packages a couple of times to try
out some of the options, I still kept getting errors with konqueror. So
I went back to the standard debian packages, with the same options in
konqueror for linking and for additional flags. I tried compiling a
project which had lesson 2 of NeHe’s SDL/openGL tutorials, and I get
this error:

gcc -DHAVE_CONFIG_H -I. -I. -I… -O0 -g3 -Wall -c main.c
main.c:32: SDL.h: No such file or directory
make[3]: *** [main.o] Error 1

What’s going on now. I kept fiddling with the linked libraries options,
but I can’t obtain a different result. I’m completely stumped. I feel
like I’m overlooking some stupid little thing, and it’s frustrating the
hell out of me. Can anyone help me?
Thank you

Yacine Salmi

Yacine Salmi wrote:

gcc -DHAVE_CONFIG_H -I. -I. -I… -O0 -g3 -Wall -c main.c
main.c:32: SDL.h: No such file or directory
make[3]: *** [main.o] Error 1

This just looks like a bad “#include” path, go:
$ sdl-config --libs

which outputs the command line parameters to send gcc. Kdevelop is wonk,
because you can’t easily tell it to just use that or to run sdl-config as
part of your configure script, so you have to take any parameters that
start with an -L or a -l and put them in “Project Options|Linker Options|
additional libraries”. Take any other parameters and put them in “Project
Options|Linker Options|additional flags”

This is not the greatest solution. I myself am a useless dork and cannot
figure out how to do this in a better way which is both compatible with
kdevelop and also will work cross-platform by running sdl-config in the
build process. I have zero comprehension of automake/autoconf.–
SmokeSerpent <@Benjamin_Moos>
Hobbes : Shouldn’t we read the instructions?
Calvin : Do I look like a sissy?

Look, I’ve tried what you just wrote. I also tried a whole bunch of
different combinations. The problem seems to be that it compiles with
including any of the includes I mention. It’s always:
gcc -DHAVE_CONFIG_H -I. -I. -I… -O0 -g3 -Wall -c main.c

What is going on? I’m thinking of purging kdevelop from my system and
trying all over, but all this is starting to become more trouble than
the time I’m supposed to be saving using an IDE.
anyways…and ideas?On 09 May 2001 01:12:04 -0700, SmokeSerpent wrote:

Yacine Salmi wrote:

gcc -DHAVE_CONFIG_H -I. -I. -I… -O0 -g3 -Wall -c main.c
main.c:32: SDL.h: No such file or directory
make[3]: *** [main.o] Error 1

This just looks like a bad “#include” path, go:
$ sdl-config --libs

which outputs the command line parameters to send gcc. Kdevelop is wonk,
because you can’t easily tell it to just use that or to run sdl-config as
part of your configure script, so you have to take any parameters that
start with an -L or a -l and put them in “Project Options|Linker Options|
additional libraries”. Take any other parameters and put them in “Project
Options|Linker Options|additional flags”

This is not the greatest solution. I myself am a useless dork and cannot
figure out how to do this in a better way which is both compatible with
kdevelop and also will work cross-platform by running sdl-config in the
build process. I have zero comprehension of automake/autoconf.