Recent

Author Topic: Lazarus ,fpc and Iphone apps  (Read 13655 times)

lazzaro

  • New member
  • *
  • Posts: 6
Lazarus ,fpc and Iphone apps
« on: January 16, 2010, 03:40:19 pm »
Hi,
i want try to develop for iphone using lazarus (fpc) (using xcode for build on simulator/iphone).
i'm installed  FPC 2.4.0  for iPhone  (and rebuild lazarus), but i have no info to start development.

I have only two template in xcode (one for console and an other for opengl ) and i build without problem ( with console and simulator)

Can i create form/project with lazarus and merge in a xcode project? There are some example?

thanks all.

p.s
i found only this info in web :  http://wiki.freepascal.org/iPhone/iPod_development

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: Lazarus ,fpc and Iphone apps
« Reply #1 on: January 16, 2010, 03:58:07 pm »
Look at the iArkanoid app at the bottom of this page:

http://www.thealchemistguild.org/objp.php

There's also this Lazarus extension:

http://wiki.freepascal.org/iPhone_Laz_Extension

Thanks.

-Phil

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2587
    • havefunsoft.com
Re: Lazarus ,fpc and Iphone apps
« Reply #2 on: January 16, 2010, 04:02:29 pm »
Can i create form/project with lazarus and merge in a xcode project? There are some example?
No, it's not possible at the moment.
The reason for this, is that there's no iPhone widgetset developed

But still you can use apple's Interface Builder to design the interface. Unfortunately there's no code sample how-to use .XIB files (interface builder's .lfms ) with Pascal code, for now.

Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

lazzaro

  • New member
  • *
  • Posts: 6
Re: Lazarus ,fpc and Iphone apps
« Reply #3 on: January 16, 2010, 04:59:13 pm »
Hi Phil,
thanks for links.
i can't  install laz extension (iphonelazextension 0.5)  ,
i have a error identifier not found : TAbstractIDEProjectOptions  when i install component.
u tryed it? i wrong something?


iArkanoid use PascalGladiator i suppose, i check source next time.

lazzaro

  • New member
  • *
  • Posts: 6
Re: Lazarus ,fpc and Iphone apps
« Reply #4 on: January 16, 2010, 05:01:45 pm »
But still you can use apple's Interface Builder to design the interface. Unfortunately there's no code sample how-to use .XIB files (interface builder's .lfms ) with Pascal code, for now.
yes. i can't found. I'll try, and study a solution.
thanks

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: Lazarus ,fpc and Iphone apps
« Reply #5 on: January 16, 2010, 05:10:52 pm »
Hi Phil,
thanks for links.
i can't  install laz extension (iphonelazextension 0.5)  ,
i have a error identifier not found : TAbstractIDEProjectOptions  when i install component.
u tryed it? i wrong something?


iArkanoid use PascalGladiator i suppose, i check source next time.

What version of Lazarus are you using? You need 0.9.29 (SVN).

Thanks.

-Phil

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2587
    • havefunsoft.com
Re: Lazarus ,fpc and Iphone apps
« Reply #6 on: January 16, 2010, 05:11:04 pm »
i can't  install laz extension (iphonelazextension 0.5)  ,
i have a error identifier not found : TAbstractIDEProjectOptions  when i install component.
u tryed it? i wrong something?
Look at the package requirements - you must use the lastest SVN Lazarus version.
You won't be able to use the extension with 0.9.28.x or earlier.

iArkanoid use PascalGladiator i suppose, i check source next time.
It's not. It's pure FreePascal project.
Besides PascalGladiator is just an FPC IDE. It doesn't provide any additional development library (like Lazarus or MSE GUI).
To make a long story short: you can compile in Lazarus any PascalGladiator project.
btw, iArkanoid was developed using Lazarus ;)
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

lazzaro

  • New member
  • *
  • Posts: 6
Re: Lazarus ,fpc and Iphone apps
« Reply #7 on: January 16, 2010, 07:15:05 pm »
Look at the package requirements - you must use the lastest SVN Lazarus version.
Right! I'm using 0.9.28.2 with fpc 2.4 .
how can update to 0.9.29 (after download it from svn)?

i'll study iArkanoid source, great!

thanks skalogryyz
thanks phill

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: Lazarus ,fpc and Iphone apps
« Reply #8 on: January 16, 2010, 08:51:37 pm »
Note that to use Objective C classes (as iArkanoid does) you'll need FPC 2.5.1.

To build Lazarus from source is fairly easy:

cd to your Lazarus SVN working copy (where you did check out)

make FPC=/usr/local/lib/fpc/2.4.0/ppc386  (for example)

When you start Laz, use Environment | Options to set the paths correctly.

What's trickier is if you want to retain 0.9.28.2. Let me know if that's important to you.

Thanks.

-Phil

lazzaro

  • New member
  • *
  • Posts: 6
Re: Lazarus ,fpc and Iphone apps
« Reply #9 on: January 17, 2010, 10:50:27 am »
Note that to use Objective C classes (as iArkanoid does) you'll need FPC 2.5.1.
thanks for reply,
i no need for 0.9.28.2 version.

Then, i must do :
1. update fpc 2.5.1 (for arkanaoid project)
   ---> svn update fpc   (in fpc/2.4.0 folder?..i don't know..)
   ---> make

2. update lazarus to 0.9.29 (for laz components)
  --> svn update lazarus
  --> make FPC=/usr/local/lib/fpc/2.4.0/ppc386

thanks again,
i come fronm windows world and delphi programming;(


skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2587
    • havefunsoft.com
Re: Lazarus ,fpc and Iphone apps
« Reply #10 on: January 17, 2010, 11:06:45 am »
thanks again,
i come fronm windows world and delphi programming;(
a little advise (not iPhone related) for you, since i'm ex-delphian myself.

You can configure Lazarus keyboard in OSX, to match the windows (delphi) shortkeys.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

lazzaro

  • New member
  • *
  • Posts: 6
Re: Lazarus ,fpc and Iphone apps
« Reply #11 on: January 17, 2010, 12:12:05 pm »
@skalogryyz: thanks. Lazarus is really great, and finally i can reuse my delphi knowledge;)
 I see, you are laz extension author , my compliments!

i installed lazarus 0.9.29 from daily snapshots (and then rebuild for correct some errors)
and finally i installed laz package

 

TinyPortal © 2005-2018