Lazarus

Miscellaneous => Other => Topic started by: rocotilos on September 05, 2009, 08:55:57 pm

Title: Lazarus compiling for iPhone apps.
Post by: rocotilos on September 05, 2009, 08:55:57 pm
Hi guys... i dont know really where to post this topis, hope this is the right channel.

I read in the net, that Lazarus still cannot compile for iPhone. Only FPC can (ie via Xcode). Anybody knows whether are there plans to make such feature?

Reason being, I now want to develop apps for iPhone.. but I only know Delphi/Pascal. Just last night, i start learning Obj C, and it doesnt look pretty for me... Interface Builder is fine, but Xcode and the coding itself really so much different.. it will take much time for me to develop apps. %)

If there are no plans for Lazarus to port into iPhone, then i guess im going to have to continue learn Xcode.  :o
Title: Re: Lazarus compiling for iPhone apps.
Post by: Phil on September 05, 2009, 10:37:53 pm
Please read the notes here and those included with the download:

http://wiki.freepascal.org/iPhone/iPod_development

Thanks.

-Phil
Title: Re: Lazarus compiling for iPhone apps.
Post by: rocotilos on September 06, 2009, 06:21:42 pm
Thanks Phil for your reply.

But I read the link you given me. It seems it does not mention anything about Lazarus and iPhone. I understand that with Freepascal, there is a way to develop the iPhone app.. but being in Pascal, it just output it as in ms-dos output.... right?
Title: Re: Lazarus compiling for iPhone apps.
Post by: Phil on September 06, 2009, 06:57:53 pm
You could use Lazarus to develop your Free Pascal code, but that's about the extent of it.

If you haven't already done this, I would suggest that you work through the little example on Apple's site in Xcode and get it running in the simulator and, if you have an iPhone or iPod touch, on an actual device. Then, and only then, start worrying about Free Pascal. I would think that one use for FPC would be if you have significant non-UI Pascal code that you don't want to rewrite in ObjC. You should be able to link this into your app.

For now you'll want to develop your app's UI the Apple way.

Thanks.

-Phil
Title: Re: Lazarus compiling for iPhone apps.
Post by: Martin_fr on September 06, 2009, 07:12:55 pm
But I read the link you given me. It seems it does not mention anything about Lazarus and iPhone.

If I read the wiki correct:
Quote from: wiki

It is against the iPhone SDK agreement to distribute derivative works of this SDK, and this includes Pascal translations of framework headers. So it would be quite a challenge (if possible at all) to create and distribute the sources of a pure Pascal program with a GUI that does not violate the iPhone SDK agreement terms at this time.

To me that says, any attempt to provide a RAD-GUI development through Lazarus (any drag and drop user interface building) would violate apple's licence conditions. If that is so, then there can and will be no Pascal RAD-GUI.

Of course, I may be wrong in my interpretation.
Title: Re: Lazarus compiling for iPhone apps.
Post by: skalogryz on September 07, 2009, 08:19:51 am
rocotilos. It's possible to develop pure Pascal for iPhone, but there're no public examples of it, as well as no UIKit headers.

Some MacOSX headers can be used for the iPhone development,
for example CoreFoundation units.

To me that says, any attempt to provide a RAD-GUI development through Lazarus (any drag and drop user interface building) would violate apple's licence conditions. If that is so, then there can and will be no Pascal RAD-GUI.

Of course, I may be wrong in my interpretation.
Lazarus can be used as development tool, for code writting and debugging.
It would provide easy-to-use tools to create a XCode/FPC project, so it can be loaded to iPhone (it's still unknown how to upload an application to the device without XCode. so XCode project is necessary).
Also, Interface Builder would be used to make User Interface, instead of Lazarus designer.
So, in the end, no licenses are violated.

But as for now, Lazarus is no ready for it.
Title: Re: Lazarus compiling for iPhone apps.
Post by: rocotilos on September 10, 2009, 06:54:17 am
Thank you guys for your informative replies...!

 :)

TinyPortal © 2005-2018