iPhone

Has anyone started porting SDL to the iPhone yet? I just got one and
started hacking away on it with the arm compiler tool chain that
they’ve managed to cobble together to get apps running on it. My eye
is towards getting MAME on it by way of its SDL port. I noticed
someone just got a SNES emulator running on this morning.

Being able to run MAME on it would almost make it worth buying one.
:-0–
Lilith

On 8/7/2007 at 11:18 AM, Richard Burgess wrote:
Has anyone started porting SDL to the iPhone yet? I just got one and

started hacking away on it with the arm compiler tool chain that
they’ve managed to cobble together to get apps running on it. My eye

is towards getting MAME on it by way of its SDL port. I noticed
someone just got a SNES emulator running on this morning.


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

ROFL.

Man, why does SDL have to be available on everything? You all need to
stop porting so much. xD
(Just kidding.)

Lilith Calbridge wrote:> Being able to run MAME on it would almost make it worth buying one.

:-0

Being able to run MAME on it would almost make it worth buying one.
:-0

You know, I didn’t buy into the hype either. I decided to go to the
local Apple store to buy a new Macbook Pro instead of buying online
like I normally do, and I happened to play with an iPhone while I was
there and fell in love with it in about 2 seconds. :slight_smile:

Man, why does SDL have to be available on everything? You all need to
stop porting so much. xD
(Just kidding.)

Hey if SDL runs on iPodLinux… :)On Aug 7, 2007, at 11:45 AM, Lilith Calbridge wrote:

Den Tue, 07 Aug 2007 12:58:16 -0400
skrev “Leo M. Cabrera” :

Man, why does SDL have to be available on everything?

Tux Paint.

  • Gerry

Hehehe >:^)

-bill!On Wed, Aug 08, 2007 at 12:23:02AM +0200, Gerry JJ wrote:

Den Tue, 07 Aug 2007 12:58:16 -0400
skrev “Leo M. Cabrera” :

Man, why does SDL have to be available on everything?

Tux Paint.

Den Tue, 07 Aug 2007 12:58:16 -0400
skrev “Leo M. Cabrera” :

Man, why does SDL have to be available on everything?

Tux Paint.

Except I wouldn’t let my kids anywhere near my new, easily breakable,
$600 phone! :)On Aug 7, 2007, at 5:23 PM, Gerry JJ wrote:

"easily breakable,"
I heard it’s pretty tough, actually.–
Adam Stevenson

"easily breakable,"
I heard it’s pretty tough, actually.

I don’t think I’ll be putting that to the test vs an 8-old boy.

Getting the discussion somewhat back on track, :slight_smile: I guess I’ll go
ahead with the iPhone port then. I modified configure.in and added
all the stubbed out functions in the right places, now I’m off to go
implement it!On Aug 7, 2007, at 8:13 PM, Adam Stevenson wrote:

Getting the discussion somewhat back on track, :slight_smile: I guess I’ll go
ahead with the iPhone port then. I modified configure.in and added
all the stubbed out functions in the right places, now I’m off to go
implement it!

Good luck! Let me know if you find a way to do it. :slight_smile:

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

“pretty tough”

Yeah, ever watched “Will it Blend?” They totally shredded an iPhone in a
blender…
SDL would be great for the iPhone, though. (<-- my lame attempt at trying to
make this email somewhat on-topic)On 8/8/07, Sam Lantinga wrote:

Getting the discussion somewhat back on track, :slight_smile: I guess I’ll go
ahead with the iPhone port then. I modified configure.in and added
all the stubbed out functions in the right places, now I’m off to go
implement it!

Good luck! Let me know if you find a way to do it. :slight_smile:

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


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


su; cd /; rm -rf *

(not responsible for anything that happens if you’re foolish enough to type
that)

We’re totally in wild west hacker land at the moment. It was easy
enough to decode all the Objective-C frameworks with class-dump, but
the straight C functions are a little trickier. I’m now a little
stuck at the event handling code. I used nm to get a list of all the
C accessor functions for the event struct but I don’t know of an easy
way to determine the arguments and return values short of looking at
the assembly (and the other option of directly debugging is a little
out of the question at the moment :). Making things even more
challenging is that the linker appears to create an exe regardless of
any undefined functions. I can make some educated guess based on the
way Apple does their API’s, but that’s about it.

Looking at the other iPhone apps at the moment, it’s clear we’re all
in the same boat. :slight_smile: That SNES emulator only uses one event accessor
function which clearly returns the mouse down location, looks like
I’ll have to figure out all the other events. Some interesting ones
too, like a “Gesture” event.

Hello, I’m not sure, does SDL support iPhone?

I installed SDL and iPhone SDK, but in XCODE I can’t start any SDL-iPhone project…

what do I have to do???

best regards

MandarX------------------------
http://mandarx.xoom.it/index.php?lang=eng

Hi MandarX,
Did you download the latest version from svn?

From there you will find an Xcode-iPhoneOS folder for creating static
libraries for your iPhone projects.
You want to create libSDLiPhoneOS.a and libSDLSimulator.a.
When I switched from Device to Simulator, it overwrote the libSDLiPhoneOS.a
file and did not create the libSDLSimulator.a file. So I had to bring up the
context menu for the target and select Get Info. I then modified the Product
Name under packaging. I am sure there is a better way of doing it without
having to change the Product name when switching from compiling for device
vs simulator.
Hope this helps.
RickOn Sun, Feb 7, 2010 at 7:25 AM, mandarx wrote:

Hello, I’m not sure, does SDL support iPhone?

I installed SDL and iPhone SDK, but in XCODE I can’t start any SDL-iPhone
project…

what do I have to do???

best regards

MandarX


http://mandarx.xoom.it/index.php?lang=eng


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