What is the first step into writing iPhone apps with SDL?

Hi,
I’ve been using SDL on windows. I want to try a “hello world” iPhone app with SDL. What should I look at?

thanks
Phuoc

/_/_/_/_/_/_
www.huaonline.com
My Homepage is my Castle__________________________________________________________________________________
Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and for free at PLUS7. www.tv.yahoo.com.au/plus7

Phuoc Can Hua <phuoccanhua yahoo.com.au> writes:

Hi,
I’ve been using SDL on windows. I want to try a “hello world” iPhone app
with SDL. What should I look at?>
thanks
Phuoc

/_/_/_/_/_/_
www.huaonline.com
My Homepage is my Castle



Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and
for free at PLUS7. www.tv.yahoo.com.au/plus7

First, you need a Mac. The only iPhone emulator I’m aware of is made available
by Apple for mac’s only.

Then, you need the iPhone Developer License. I forget exactly the process for
getting this but it should be around $100.00 and should be pretty straight
forward.

You’ll also need to learn, at least in part, objective-c. I don’t know what
kind of support the iPhone has for C or C++ programs but I do know that
working with iPhone interfaces requires using objective-c.

Hope that at least gets you started in the right direction.

Hello,

I think you will need a Mac, then download XCode tools from http://developer.apple.com
including iPhone SDK and iPhone Simulator. I don’t think you won’t
be even able to cross-compile from Windows…

PavelOn 29.1.2010, at 1:47, Phuoc Can Hua wrote:

Hi,
I’ve been using SDL on windows. I want to try a “hello world” iPhone
app with SDL. What should I look at?

thanks
Phuoc

/_/_/_/_/_/_
www.huaonline.com
My Homepage is my Castle


Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily,
legally, and for free at PLUS7. www.tv.yahoo.com.au/plus7


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


Pavel Kanzelsberger


E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633

Hi Pavel,

I managed to build a hello world without a mac but when it comes to
actually building SDL then I had to bite the bullet.

Xcode is a horrible IDE but I only actually use it to build SDL and
debug in the iPhone simulator. The rest I’ve been able to do with
makefiles.

If you are doing opengl you will find that you really need the
simulator.

Regards

IanOn 29 Jan 2010, at 07:30, Pavel Kanzelsberger wrote:

Hello,

I think you will need a Mac, then download XCode tools from http://developer.apple.com
including iPhone SDK and iPhone Simulator. I don’t think you won’t
be even able to cross-compile from Windows…

Pavel

On 29.1.2010, at 1:47, Phuoc Can Hua wrote:

Hi,
I’ve been using SDL on windows. I want to try a "hello world"
iPhone app with SDL. What should I look at?

thanks
Phuoc

/_/_/_/_/_/_
www.huaonline.com
My Homepage is my Castle


Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily,
legally, and for free at PLUS7. www.tv.yahoo.com.au/plus7


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


Pavel Kanzelsberger
http://www.kanzelsberger.com
E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633


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

the fact that you’re unable to use Xcode doesn’t automatically make that IDE
horrible!
it has its ups and downs but there’s just not a single thing that could be
achieved with makefiles that can’t be achieved within xcode
then one may not like the interface or the prerferences (eg. i don’t like
its scm handling) but naming thing due to personal opinions is just worng

as to the question of the user, i would suggest you read the source codes of
the demos in the Xcode-iPhoneOS folder, they are a nice way to understand
how to get starting, even though basically from your program there’s little
to be done – all is handled internally inside sdl source code.
if you already know some iphone api you could also read
SDL_uikitappdelegate.m to understand how things are done

bye
Vittorio

Samuel Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html

  • "I don’t think anyone should write their autobiography until after
    they’re dead."On Fri, Jan 29, 2010 at 8:54 AM, Ian Norton wrote:

Hi Pavel,

I managed to build a hello world without a mac but when it comes to
actually building SDL then I had to bite the bullet.

Xcode is a horrible IDE but I only actually use it to build SDL and debug
in the iPhone simulator. The rest I’ve been able to do with makefiles.

If you are doing opengl you will find that you really need the simulator.

Regards

Ian

On 29 Jan 2010, at 07:30, Pavel Kanzelsberger wrote:

Hello,

I think you will need a Mac, then download XCode tools from
http://developer.apple.com including iPhone SDK and iPhone Simulator. I
don’t think you won’t be even able to cross-compile from Windows…

Pavel

On 29.1.2010, at 1:47, Phuoc Can Hua wrote:

Hi,

I’ve been using SDL on windows. I want to try a “hello world” iPhone app
with SDL. What should I look at?

thanks
Phuoc

/_/_/_/_/_/_
www.huaonline.com
My Homepage is my Castle


Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally,

and for free at PLUS7. www.tv.yahoo.com.au/plus7


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


Pavel Kanzelsberger
http://www.kanzelsberger.com
E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633


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


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

Ian
maybe I should try without sdl and without mac first. Where can I find more info?

Thanks
phuocOn Fri, 29 Jan 2010 18:54 EST Ian Norton wrote:

Hi Pavel,

I managed to build a hello world without a mac but when it comes to actually building SDL then I had to bite the bullet.

Xcode is a horrible IDE but I only actually use it to build SDL and debug in the iPhone simulator. The rest I’ve been able to do with makefiles.

If you are doing opengl you will find that you really need the simulator.

Regards

Ian

On 29 Jan 2010, at 07:30, Pavel Kanzelsberger wrote:

Hello,

I think you will need a Mac, then download XCode tools from http://developer.apple.com including iPhone SDK and iPhone Simulator. I don’t think you won’t be even able to cross-compile from Windows…

Pavel

On 29.1.2010, at 1:47, Phuoc Can Hua wrote:

Hi,
I’ve been using SDL on windows. I want to try a “hello world” iPhone app with SDL. What should I look at?

thanks
Phuoc

/_/_/_/_/_/_
www.huaonline.com
My Homepage is my Castle

__________________________________________________________________________________

Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and for free at PLUS7. www.tv.yahoo.com.au/plus7


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


Pavel Kanzelsberger
http://www.kanzelsberger.com
E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633


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

  __________________________________________________________________________________

Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and for free at PLUS7. www.tv.yahoo.com.au/plus7

You really need a mac. The open toolchain ( google for iphone
toolchain 2.0 ) that you build yourself and then run on Linux or
windows fails to build sdl ( for me ) due to some compiler bugs. I did
manage to get it built after about 2 weeks of hacking at the guts to
gcc but it sadly doesn’t work well and sdl 1.3 doesn’t have an
officially supported autotools target for iphoneos ( that I know of )

I may dislike Xcode ( because of its ui ) but it is definatly the
easiest route.

Regards

IanOn 30 Jan 2010, at 03:33, Phuoc Can Hua wrote:

Ian
maybe I should try without sdl and without mac first. Where can I
find more info?

Thanks
phuoc

On Fri, 29 Jan 2010 18:54 EST Ian Norton wrote:

Hi Pavel,

I managed to build a hello world without a mac but when it comes to
actually building SDL then I had to bite the bullet.

Xcode is a horrible IDE but I only actually use it to build SDL and
debug in the iPhone simulator. The rest I’ve been able to do with
makefiles.

If you are doing opengl you will find that you really need the
simulator.

Regards

Ian

On 29 Jan 2010, at 07:30, Pavel Kanzelsberger wrote:

Hello,

I think you will need a Mac, then download XCode tools from http://developer.apple.com
including iPhone SDK and iPhone Simulator. I don’t think you
won’t be even able to cross-compile from Windows…

Pavel

On 29.1.2010, at 1:47, Phuoc Can Hua wrote:

Hi,
I’ve been using SDL on windows. I want to try a "hello world"
iPhone app with SDL. What should I look at?

thanks
Phuoc

/_/_/_/_/_/_
www.huaonline.com
My Homepage is my Castle


Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily,
legally, and for free at PLUS7. www.tv.yahoo.com.au/plus7


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


Pavel Kanzelsberger
http://www.kanzelsberger.com
E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633


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


Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily,
legally, and for free at PLUS7. www.tv.yahoo.com.au/plus7


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

just… a side note…

for windows, dos, linux, and other os’s… i’ll typically use the host’s
tools to setup the build environment, then do the actual source editing with
my editor of choice from what ever platform i want. edit in platform of
choice, then build on the host. some kind of file sharing or file upload
(sftp/ftp/whatever) is needed in this kind of setup.

this way you get the editor you want, but you use the native and ‘proper /
most supported’ tool chain to build the project. best of both worlds.

-willOn Sat, Jan 30, 2010 at 12:30 AM, Ian Norton wrote:

You really need a mac. The open toolchain ( google for iphone toolchain
2.0 ) that you build yourself and then run on Linux or windows fails to
build sdl ( for me ) due to some compiler bugs. I did manage to get it built
after about 2 weeks of hacking at the guts to gcc but it sadly doesn’t work
well and sdl 1.3 doesn’t have an officially supported autotools target for
iphoneos ( that I know of )

I may dislike Xcode ( because of its ui ) but it is definatly the easiest
route.

Regards

Ian

On 30 Jan 2010, at 03:33, Phuoc Can Hua wrote:

Ian

maybe I should try without sdl and without mac first. Where can I find
more info?

Thanks
phuoc

On Fri, 29 Jan 2010 18:54 EST Ian Norton wrote:

Hi Pavel,

I managed to build a hello world without a mac but when it comes to
actually building SDL then I had to bite the bullet.

Xcode is a horrible IDE but I only actually use it to build SDL and debug
in the iPhone simulator. The rest I’ve been able to do with makefiles.

If you are doing opengl you will find that you really need the simulator.

Regards

Ian

On 29 Jan 2010, at 07:30, Pavel Kanzelsberger wrote:

Hello,

I think you will need a Mac, then download XCode tools from
http://developer.apple.com including iPhone SDK and iPhone Simulator. I
don’t think you won’t be even able to cross-compile from Windows…

Pavel

On 29.1.2010, at 1:47, Phuoc Can Hua wrote:

Hi,

I’ve been using SDL on windows. I want to try a “hello world” iPhone
app with SDL. What should I look at?

thanks
Phuoc

/_/_/_/_/_/_
www.huaonline.com
My Homepage is my Castle


Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally,

and for free at PLUS7. www.tv.yahoo.com.au/plus7


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


Pavel Kanzelsberger
http://www.kanzelsberger.com
E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633


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


Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally,

and for free at PLUS7. www.tv.yahoo.com.au/plus7


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


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

For those app developers that don’t know Objective-C and Cocoa Touch and don’t want to outsource development, check out localbeacon at www.bigforge.com. Great for those who want to build just one app or developers interested in white label