Re: [Anjuta-list] Using SDL with Anjuta.



Kaixo Linus Larsson!!!

> Thanks for a great IDE. Have a problem though.

Yes it is a GREAT IDE!!!!!!


> I have problem using SDL (The game library, www.libsdl.org)  with 
> anjuta. SDL doesn't seem to be one of the builtin libraries in anjuta. 
> In a normal Makefile you get the compilerflags by issuing
> 
> `sdl-config --cflags'
> 
> I put that in "additional compiler options". It works and compiles.
> To get the libs and flags needed for linking the line is.
> 
> `sdl-config --libs'
> 
> This is what I can't get to work. I tried "additional linker option" as 
> well as "libraries" but "auto generate" keeps saying I should put them 
> in puckomon_LDFLAGS (puckomon is the name of the project). If I try to 
> build the project I get:
> 
> No rules to make target 'sdl-config'
> No rules to make target '--libs'

 OK.... i had the same problem.........

 you must put the RESULT of `sdl-config --cflags' and `sdl-config --libs'
instead of that.

 If a run `sdl-config --cflags` in console, my system returns this: 
"-I/usr/include/SDL -D_REENTRANT"
so i must put that in "additional compiler options"

 If a run `sdl-config --libs` in console, my system returns this:
"-L/usr/lib -lSDL -lpthread"
so i must put that in "additional linker option"


 The problem is that if you update the SDL library ot related you must re-do
the process.
 
> It seems like
> My system is. Redhat Linux 7.1 running anjuta 1.7 from precompiled RPM. 
> SDL is ok (Works if I don't use Anjuta).

 My system is Debian Woody. your system is OK.
 
> Please help me out here. And please in later versions of anjuta make SDL 
> one of those standard libraries (As many of us are using it).

 I hope so.

 I am trying to do the process more easy, via M4 in configure.in o similar.


 If you have any problem write me........






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]