Cannot build SDL 1.3 on OSX

Hi,

I am having troubles building the OSX SDL1.3 framework from the hg tip. I use the SDL/Xcode/SDL/SDL.xcodeproj file to build with Xcode.

There are two issues, firstly, when SDL_cocoashape.m is build, there is an include error on line 26.

I.e. the line saying: #include “…/src/video/SDL_sysvideo.h”

The path here is wrong. If I change the include path to “…/SDL_sysvideo.h”, SDL 1.3 compiles, but fails at linking with a missing symbol:

_SDL_atan2 referenced from dollarNormalize and _SDL_GestureProcessEvent in SDL_gesture.o.

Any thoughts on how to get around this?

/ Mattias

I am not as familiar with building SDL 1.3 on OSX, but if you’re able to
test it via terminal instead of xcode, you might be able to get a little
more useful information.

-AlexOn Mon, Nov 15, 2010 at 11:14 AM, Mattias Holm <mattias.holm at contra.nu>wrote:

Hi,

I am having troubles building the OSX SDL1.3 framework from the hg tip. I
use the SDL/Xcode/SDL/SDL.xcodeproj file to build with Xcode.

There are two issues, firstly, when SDL_cocoashape.m is build, there is an
include error on line 26.

I.e. the line saying: #include “…/src/video/SDL_sysvideo.h”

The path here is wrong. If I change the include path to
"…/SDL_sysvideo.h", SDL 1.3 compiles, but fails at linking with a missing
symbol:

_SDL_atan2 referenced from dollarNormalize and _SDL_GestureProcessEvent in
SDL_gesture.o.

Any thoughts on how to get around this?

/ Mattias


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Mattias,

feel free to send me a patch to your #include change - I can submit it.

Can you try to define HAVE_ATAN and HAVE_ATAN2 in SDL_config_macosx.h
and see if this fixes things? There was a report that this is needed in
SDL_config_iphoneos.h as well…

–AndreasOn 11/15/10 8:14 AM, Mattias Holm wrote:

Hi,

I am having troubles building the OSX SDL1.3 framework from the hg tip. I use the SDL/Xcode/SDL/SDL.xcodeproj file to build with Xcode.

There are two issues, firstly, when SDL_cocoashape.m is build, there is an include error on line 26.

I.e. the line saying: #include “…/src/video/SDL_sysvideo.h”

The path here is wrong. If I change the include path to “…/SDL_sysvideo.h”, SDL 1.3 compiles, but fails at linking with a missing symbol:

_SDL_atan2 referenced from dollarNormalize and _SDL_GestureProcessEvent in SDL_gesture.o.

Any thoughts on how to get around this?

/ Mattias


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org