[iPhoneOS] does svn build currently?

I’m having some issues in building SDL for iPhoneOS straight out of SVN (rev 5478). I’ve only just started working on a Mac with Xcode, so I hope that you can be patient with my questions.

I’m able to build the library target successfully, but the template build script looks for “libSDLSimulator.a” which doesn’t get built - the only library that is built is “libSDLiPhoneOS.a”. Is this correct?

Changing the template build script according to the above, installation is fine (although I change $dest to ~/Library/…). However the test main.c included in the template calls SDL_RenderFill() with 5 args, whereas the installed includes #define SDL_RenderFill to one arg.

On linking, the linker complains about:

– cut –
Undefined symbols:
"_SDL_BlendFillRects", referenced from:
_SDL_DUMMY_RenderFillRects in libSDLiPhoneOS.a(SDL_nullrender.o)
"_SDL_DrawRect", referenced from:
_SW_RenderDrawRects in libSDLiPhoneOS.a(SDL_renderer_sw.o)
"_SDL_BlendFillRect", referenced from:
_SW_RenderFillRects in libSDLiPhoneOS.a(SDL_renderer_sw.o)
"_SDL_DrawRects", referenced from:
_SDL_DUMMY_RenderDrawRects in libSDLiPhoneOS.a(SDL_nullrender.o)
– cut –

I’m quite happy to continue investigating and submit patches, but was wondering if anyone has things building correctly straight out of svn and could please advise if there’s something obvious I’m doing wrong.

Many thanks,
Dean–
df | @Dean_Fogarty

The iphone build is missing a few files. Go to:

Library Source => video and run right click => Add Existing Files… and
select c files that are not shaded out. And yes the library name doesn’t
match the instructions but that’s ok.On Mon, Jan 11, 2010 at 23:48, Dean Fogarty wrote:

I’m having some issues in building SDL for iPhoneOS straight out of SVN
(rev 5478). I’ve only just started working on a Mac with Xcode, so I hope
that you can be patient with my questions.

I’m able to build the library target successfully, but the template build
script looks for “libSDLSimulator.a” which doesn’t get built - the only
library that is built is “libSDLiPhoneOS.a”. Is this correct?

Changing the template build script according to the above, installation is
fine (although I change $dest to ~/Library/…). However the test main.c
included in the template calls SDL_RenderFill() with 5 args, whereas the
installed includes #define SDL_RenderFill to one arg.

On linking, the linker complains about:

– cut –
Undefined symbols:
"_SDL_BlendFillRects", referenced from:
_SDL_DUMMY_RenderFillRects in libSDLiPhoneOS.a(SDL_nullrender.o)
"_SDL_DrawRect", referenced from:
_SW_RenderDrawRects in libSDLiPhoneOS.a(SDL_renderer_sw.o)
"_SDL_BlendFillRect", referenced from:
_SW_RenderFillRects in libSDLiPhoneOS.a(SDL_renderer_sw.o)
"_SDL_DrawRects", referenced from:
_SDL_DUMMY_RenderDrawRects in libSDLiPhoneOS.a(SDL_nullrender.o)
– cut –

I’m quite happy to continue investigating and submit patches, but was
wondering if anyone has things building correctly straight out of svn and
could please advise if there’s something obvious I’m doing wrong.

Many thanks,
Dean

df | dfogarty at bigpond.com


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

aCruceSalus wrote:

I’m able to build the library target successfully, but the template build script looks for “libSDLSimulator.a” which doesn’t get built - the only library that is built is “libSDLiPhoneOS.a”. Is this correct?

Any solutions to this issue? As for the SDL_RenderFill(), opening up one of the test samples, it is SDL_RenderFill(&rect)

  • Rick

SDL_RenderFill takes just one parm, but the template builds it with more , don’t know why, but change the calling parms.

It will work fine. :smiley: