LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-09-2004, 08:36 AM   #1
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
sdl-config --libs wont report on extension libraries


Hi folks,

I'm using KDevelop to develop an SDL app. However, the 'configure' script uses 'sdl-config --libs' to determine the libraries, which does not report on extensions such as libSDL_gfx, libSDL_image, libSDL_ttf and so on.

As a result, the Makefile does not attemp to link to these libraries, giving errors on compilation. I can fix this myself by editing the Makefile (and including -lSDL_image ... and so on), but this is a hack, and I dont expect other users to be able to do that necessarily.

Does anyone know how I can resolve this? I have searched a lot. There is no man file for sdl-config on my linux installation, and the subject isnt addressed much on the internet.

Kind regards,

unholy

ps the app can be downloaded from

www24.brinkster.com/jreidy

And info is right here

http://www.linuxquestions.org/questi...ghlight=unholy
 
Old 10-09-2004, 11:53 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Are you using autoconf/automake? (you mention configure script...)
If so, try including something like this in you autoconf.ac (or the old configure.in):
Code:
AC_CHECK_LIB([SDL_image], [IMG_LoadPNG_RW], , AC_MSG_ERROR([*** Unable to find SDL_image libary] )
 
Old 10-10-2004, 07:29 AM   #3
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
Thanks Hko,

I did run automake at the start of the project allright. I dont know much about it - the IDE reccomended it so I just did it. I will try adding these lines.

Regards,

unholy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to program an SDL application but cannot find the SDL.h file:SuSE 9.2&KDevelop pujolasdf Linux - Newbie 4 03-13-2005 07:50 AM
problem with shared libraries (SDL-1.2.7 and ESD) funkateer Slackware 2 03-01-2005 03:50 AM
./config error: no sdl-config? Beomoss Linux - Newbie 4 11-24-2004 01:26 AM
Missing libraries to compile and to start mozilla (very basic libs) Necronomicom Slackware 3 07-30-2004 03:50 AM
(II) [GLX]: Initializing GLX extension - X wont go hydro Linux - Software 3 02-20-2003 06:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration