Author Topic: SDL on Mac OS X 10.4  (Read 5378 times)

Decinoge

  • Guest
SDL on Mac OS X 10.4
« on: March 11, 2008, 12:18:57 pm »
Hi everyone one.
Before anything, i would like to thank everyone for this IDE. I've been using it for some months on Linux and Windows XP, and it perfectly suits my needs, it's easy to use, and I feel very comfortable with it (and comfort is a big issue to me when dealing with software interaction). However i must warn everyone that i'm a 6 month coder under C++, so i'm basically a n00b (i'm in art major, low level coding is not required, but i desired it).

Anyway, i'm working on a project for this length of months, a small SDL ( actually SDL, SDL_mixer, and SDL_image ) based video game. Due to the SDL nature, i am able to run it on PSP (my primary platform), Windows and Linux. However every time i try to compile it for mac OS X, i fail completely.

I'll go straight to the point:
Every time i try to compile the project, Code::Blocks does the "compiling" (no errors of what kind), and after that it tells me that the project is not compiled yet, and if i wish to compile (again?). If i press "yes", it tries to compile again (i dont know what) and return an error of non existent lSDL_image.

I've tried many ways, and not to succeed. I eventually tried to compile the example Code::Blocks provides, and it happens the exact same thing, this time with SDL. Compiles, asks if i want to compile because it is still not compiled, i answer yes, and it gives an error for not finding lSDL.

I don't know if this is some kind of Bug, or it is me who is doing something wrong. However, and since i am in a kind of urgency, would like to know any other Code::Blocks version that compiled the SDL example correctly, so that i could try to compile my code. I've seen a recent thread about the Mac OS X version having some critical bugs and i wondered.

If i'm doing something wrong, i would be most thankful with some meaningful help.

Once again, thanks for this application, and all that it provides. I wish the best of lucks to your project, and that making it better never becomes a burden but a pleasure.

Decinoge.

[edit]
I think i've installed SDL and the remaining libraries properly. I've followed Lazy Foo's tutorials, and after checking a few others, i came to realize that it is standard procedure and not only an Xcode setup.
« Last Edit: March 11, 2008, 12:39:17 pm by Decinoge »

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: SDL on Mac OS X 10.4
« Reply #1 on: March 11, 2008, 08:12:57 pm »
Do you have the frameworks installed for SDL/SDL_mixer/SDL_image ?

You might need to install libSDLmain.a manually, the wizard assumes
it exist but I think SDL download only ships SDLmain.m source code...

Alternatively, you can edit the project settings and make it use sdl-config.

Offline slanker70

  • Single posting newcomer
  • *
  • Posts: 6
Re: SDL on Mac OS X 10.4
« Reply #2 on: April 26, 2009, 07:55:36 pm »
Hi,

I'm also currently trying to setup codeblocks with SDL in Mac. Can you please explain to me if you've managed to set it up or point me to a tutorial.

Regards,

Perdana Putra