Mac Os X and SDL_image

Is there a trick to using sdl image in os x? I’ve installed the framework and I add it to my project with the default settings, but when I #include “SDL_image.h” it says it cannot find SDL_image.h… Can anyone here help?
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/ms-tnef
Size: 2287 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020924/cc5f40d1/attachment.bin

Is there a trick to using sdl image in os x? I’ve installed the
framework and I add it to my project with the default settings, but
when I #include “SDL_image.h” it says it cannot find SDL_image.h…
Can anyone here help?

…try using:

#include “SDL_image/SDL.image.h”

…works for me!

l8r,
jamie

— tigital wrote:

Is there a trick to using sdl image in os x? I’ve
installed the
framework and I add it to my project with the
default settings, but
when I #include “SDL_image.h” it says it cannot
find SDL_image.h…
Can anyone here help?

…try using:

#include “SDL_image/SDL.image.h”

…works for me!

l8r,
jamie

I just tried that with SDL_mixer and it works (one
small difference was that I used
"SDL_mixer/SDL_mixer.h"). I ran into another problem,
however. Now that SDL_mixer.h is being compiled I get
62 identical parse errors. One error for each
function prototype. Example:

/* This function gets the version of the dynamically
linked SDL_mixer library.
it should NOT be used to fill a version structure,
instead you should
use the MIX_VERSION() macro.
*/
extern DECLSPEC const SDL_version * SDLCALL
Mix_Linked_Version(void);

this prototype gives me a “parse error before `('
token.” Every prototype after this does the same
thing.

Does anybody know what could be wrong? Any help would
be appreciated.

Thank you,
Nick__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

Something to try:

Go to your header search paths (command-option-e) and add:

/Library/Frameworks/SDL_mixer.framework/Headers

Now use:

#include “SDL_mixer.h”

The same can be done for SDL_image, etc. The problem may be that inside
SDL_mixer.h there are #includes to things that are not in the search
path. Make sure that the SDL.framework is in your search path too.

Note that the headers could be changed so "SDL_mixer/SDL_mixer.h"
would work, but that hasn’t been done yet, and I though it seems like a
good idea it may never be that way.

-DOn Wednesday, September 25, 2002, at 06:17 AM, Nicholas Mastronarde wrote:

— tigital wrote:

Is there a trick to using sdl image in os x? I’ve
installed the
framework and I add it to my project with the
default settings, but
when I #include “SDL_image.h” it says it cannot
find SDL_image.h…
Can anyone here help?

…try using:

#include “SDL_image/SDL.image.h”

…works for me!

l8r,
jamie

I just tried that with SDL_mixer and it works (one
small difference was that I used
"SDL_mixer/SDL_mixer.h"). I ran into another problem,
however. Now that SDL_mixer.h is being compiled I get
62 identical parse errors. One error for each
function prototype. Example:

/* This function gets the version of the dynamically
linked SDL_mixer library.
it should NOT be used to fill a version structure,
instead you should
use the MIX_VERSION() macro.
*/
extern DECLSPEC const SDL_version * SDLCALL
Mix_Linked_Version(void);

this prototype gives me a “parse error before `('
token.” Every prototype after this does the same
thing.

Does anybody know what could be wrong? Any help would
be appreciated.

Thank you,
Nick


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Nicholas Mastronarde wrote:

Now that SDL_mixer.h is being compiled I get
62 identical parse errors. One error for each
function prototype.

Do you have the most up to date version of the base SDL library? I
believe it defines one of the identifiers (SDLCALL?) that newer versions
of the add-on libraries require.–
Kylotan
http://pages.eidosnet.co.uk/kylotan

Thanks for responses.

I think I have the latest version of SDL, I’ll have to
check it out. Also, I tried the header search paths
as I was advised to do, and I haven’t had any luck
yet. I’ll get back to you guys on that. Bye!

— Kylotan wrote:> Nicholas Mastronarde wrote:

Now that SDL_mixer.h is being compiled I get
62 identical parse errors. One error for each
function prototype.

Do you have the most up to date version of the base
SDL library? I
believe it defines one of the identifiers (SDLCALL?)
that newer versions
of the add-on libraries require.


Kylotan
http://pages.eidosnet.co.uk/kylotan


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

I downloaded the latest version of SDL and the mixer
compiles. One problem I have now is that my game runs
about half the speed as before in fullscreen mode.
The update fixed OS X 10.2 windowed mode graphical
issues and the game runs very well in this mode (about
as well as it ran in fullsceen mode in the previous
version of SDL I was using). I don’t know what to do.
I need the mixer library, but the game just doesn’t
perform well. Will there be another SDL update to fix
the slower performance?

nick

— Nicholas Mastronarde <@Nicholas_Mastronarde> wrote:> Thanks for responses.

I think I have the latest version of SDL, I’ll have
to
check it out. Also, I tried the header search paths
as I was advised to do, and I haven’t had any luck
yet. I’ll get back to you guys on that. Bye!

— Kylotan wrote:

Nicholas Mastronarde wrote:

Now that SDL_mixer.h is being compiled I get
62 identical parse errors. One error for each
function prototype.

Do you have the most up to date version of the
base
SDL library? I
believe it defines one of the identifiers
(SDLCALL?)
that newer versions
of the add-on libraries require.


Kylotan
http://pages.eidosnet.co.uk/kylotan


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

I downloaded the latest version of SDL and the mixer
compiles. One problem I have now is that my game runs
about half the speed as before in fullscreen mode.
The update fixed OS X 10.2 windowed mode graphical
issues and the game runs very well in this mode (about
as well as it ran in fullsceen mode in the previous
version of SDL I was using). I don’t know what to do.
I need the mixer library, but the game just doesn’t
perform well. Will there be another SDL update to fix
the slower performance?

Go ahead and try the latest SDL CVS.
Are you sure you’re building in release mode?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment