SDL

Stephan Buys s.buys at icon.co.za
Sun Jul 29 07:44:02 BST 2001


Hi,

Please make sure that you installed the development packages of SDL as well. On my system the header files for SDL is installed in /usr/include/SDL/ , thus when I use it I have to #include <SDL/SDL.h>. If you are using RPM you can use kpackage to verify that you have SDL and SDL-devel packages installed and double check the locations and names of your files.

I have a executable in /usr/bin/ called sdl-config which was installed with the SDL 1.2.1 development RPM's. Invoked as below but without the quotes.

http://www.linux.com/develop/newsitem.phtml?aid=12443&sid=93&page=2  - This points to a SDL tutorial on www.linux.com - maybe that will help as well.

Good luck,
Stephan Buys
South Africa
  ----- Original Message ----- 
  From: NERILL at aol.com 
  To: kdevelop at kdevelop.org 
  Sent: Saturday, July 28, 2001 9:29 PM
  Subject: Re: SDL


  In a message dated 7/27/01 3:21:19 PM Eastern Daylight Time, 
  s.buys at icon.co.za writes: 



    Under Project -> Options -> Linker Options add -lSDL -lSDLmain -lpthread to 
    the additional libraries input box (add -lGL -lGLU if you want to use it 
    OpenGL with it) Obviously the right header files need to be included as 
    well... (sorry for the insultingly obvious) There is also a the command 
    sdl-config --libs --cflags for additional clues


  I did all that but the Make doesnt work. 

  I put #include <SDL.h> 

  and the message error is: SDL.h:no such file or directory. 

  PS: When you say that "sdl-config --libs --cflags" is a command, does that 
  mean it can be invoked from a command window?  if so, it doesnt work for me 
  either. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20010729/681104fc/attachment.html>


More information about the KDevelop mailing list