SDL with kdevelop

How can I add SDL libs to a Kdevelop project?–

Roger D. Vargas
ICQ: 117641572
Linux User: 180787

Roger Dura?ona Vargas wrote:

How can I add SDL libs to a Kdevelop project?

Roger D. Vargas
ICQ: 117641572
Linux User: 180787

I did this last week, it was a pain, but what I have works right now.
hit F7 for project options, (tailor these to your environment as
necessary)

in compiler options -> additional options:
-I ~/dev/lib/SDL-1.2.0/include
-L/home/ackerman/dev/lib/SDL-1.2.0/src
-L/home/ackerman/dev/lib/SDL-1.2.0/src/main

in linker options, these library boxes are checked: X11, Xext, math
in linker options -> additional libraries:
-lSDL -lSDLmain -lGL -lGLU

that’s it. simple, but it took LOTS of trial and error to figure out
what goes in what box!
btw, I’m dying to find out if anyone knows how to disable the "beep"
when KDevelop does make or my program exits. this drives me nuts.

-Lucas

Why use those lines? I skipped it and works anyway.On Thu, 24 May 2001, Lucas Ackerman wrote:

-L/home/ackerman/dev/lib/SDL-1.2.0/src
-L/home/ackerman/dev/lib/SDL-1.2.0/src/main


Roger D. Vargas
ICQ: 117641572
Linux User: 180787

This is probably because this was where he had SDL installed.

Note that the “correct” way to use SDL with your makefiles is to use the
"sdl-config --cflags" and “sdl-config --libs” commands.

We’ve actually talked about this subject before… and I know, getting it to
work initially is a pain… But once you get it to work, it works very well…

I’d suggest going back and reading some of the earlier posts to this list about
this. For example, one that I sent just a few weeks ago gives a very basic
overview of the process:
http://mail.lokigames.com/ml/sdl/13671.htmlOn Fri, 25 May 2001, you wrote:

On Thu, 24 May 2001, Lucas Ackerman wrote:

-L/home/ackerman/dev/lib/SDL-1.2.0/src
-L/home/ackerman/dev/lib/SDL-1.2.0/src/main
Why use those lines? I skipped it and works anyway.


Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Advogato: < http://advogato.org/person/criswell/ >