Recent

Author Topic: Lazarus and Mac osx 10.5 ? Also, Delphi5 to Pascal ?  (Read 10877 times)

vmars

  • New Member
  • *
  • Posts: 33
Lazarus and Mac osx 10.5 ? Also, Delphi5 to Pascal ?
« on: December 09, 2008, 09:37:53 pm »
Is Lazarus available on mac osx 10.5 ?
I have freePascal and Lazarus on my PC xp (and Delphi5).
What  would I need to install on my macBookPro
 to use Pascal (hopefully object pascal) ?

Also, is there a conversion pgm to go from Delphi5 to Pascal ?
Thanks!
ô¿ô
 V  e  r  n  

WinXp sp2 , HotBasic,  Delphi5, WebDwarf, Blue Voda WebPage, Lazarus-0.9.26-fpc-2.2.2-win32.exe 
http://www.flickr.com/photos/vmars956/

Wanted: Dwarf Hibiscus (Orange/Rasberry)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Lazarus and Mac osx 10.5 ? Also, Delphi5 to Pascal ?
« Reply #1 on: December 10, 2008, 04:18:51 am »
Quote from: "vmars"
Is Lazarus available on mac osx 10.5 ?
I have freePascal and Lazarus on my PC xp (and Delphi5).
What  would I need to install on my macBookPro
 to use Pascal (hopefully object pascal) ?

Also, is there a conversion pgm to go from Delphi5 to Pascal ?
Thanks!


Click on Download Lazarus at the left and download the 3 .dmg installers for version 0.9.26 that you need - either for PowerPC or Intel.

For making Delphi source cross-platform, you may find this helpful:

http://wiki.lazarus.freepascal.org/XDev_Toolkit

Thanks.

-Phil

vmars

  • New Member
  • *
  • Posts: 33
RE: Re: Lazarus and Mac osx 10.5 ? Also, Delphi5 to Pascal
« Reply #2 on: December 11, 2008, 01:11:33 am »
Thanks!
Docs @ [  https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/xdev_toolkit/  ]
say to :
  makepasx myprogram.dpr
  makepasx myform.pas

But I can't compile  pgm "makepasx.pas "
Same for pgm "dfmtolfm.pas" .

Please, how can I get an executable for these pgms?
Thanks!
ô¿ô
 V  e  r  n  

WinXp sp2 , HotBasic,  Delphi5, WebDwarf, Blue Voda WebPage, Lazarus-0.9.26-fpc-2.2.2-win32.exe 
http://www.flickr.com/photos/vmars956/

Wanted: Dwarf Hibiscus (Orange/Rasberry)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: Lazarus and Mac osx 10.5 ? Also, Delphi5 to Pas
« Reply #3 on: December 11, 2008, 04:07:56 am »
Quote from: "vmars"
But I can't compile  pgm "makepasx.pas "
Same for pgm "dfmtolfm.pas" .

Please, how can I get an executable for these pgms?


Um, maybe by following the instructions?

http://web.fastermac.net/~MacPgmr/XDev/XDevStatus.html

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: Re: RE: Re: Lazarus and Mac osx 10.5 ? Also, Delphi5 to
« Reply #4 on: December 11, 2008, 07:01:47 am »
Quote

But I can't compile pgm "makepasx.pas "
Same for pgm "dfmtolfm.pas"

Error messages please ...

bee

  • Sr. Member
  • ****
  • Posts: 393
RE: Re: RE: Re: Lazarus and Mac osx 10.5 ? Also, Delphi5 to
« Reply #5 on: December 11, 2008, 08:58:41 am »
> Is Lazarus available on mac osx 10.5 ?

Yes. I've been using it for the last year.

> What would I need to install on my macBookPro
> to use Pascal (hopefully object pascal) ?

Current stable official release requires you to install gtk and x11 on your mbp. I suggest you to use latest snapshot if you want to use it as native carbon app.

HTH.
-Bee-

A long time pascal lover.

duncanparsons

  • Jr. Member
  • **
  • Posts: 83
RE: Re: RE: Re: Lazarus and Mac osx 10.5 ? Also, Delphi5 to
« Reply #6 on: December 11, 2008, 10:48:15 am »
hmm.. well 0.9.26 is distributed as native carbon, so X11/gtk combo isn't required tho' might be desirable :)

I recently installed 0.9.26 on a mac box without either and it appears to be running OK..

DSP

bee

  • Sr. Member
  • ****
  • Posts: 393
RE: Re: RE: Re: Lazarus and Mac osx 10.5 ? Also, Delphi5 to
« Reply #7 on: December 11, 2008, 01:07:30 pm »
@duncanparsons:
Yes, you are correct. :)

I no longer use binary installer since Laz 0.9.22. I always use the SVN and compile Lazarus from there (it's very simple by the way). So, I apologize for the incorrect information of mine.

Thank you. :)
-Bee-

A long time pascal lover.

vmars

  • New Member
  • *
  • Posts: 33
RE: Re: RE: Re: Lazarus and Mac osx 10.5 ? Also, Delphi5 to
« Reply #8 on: December 13, 2008, 05:18:39 am »
THanks all !
Well, I have made some progress   with 'DfmToLfm.exe' ,  'MakePasX.exe' , and  'lazres.exe'.
I haven't run from 'Command Prompt' for years.  Also, I am rewriting the 'how to info' @ https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/xdev_toolkit/XDevStatus.html
Its a bit confusing to me. Maybe I'll Post it when I am finished.

But I don't know what to do with dfmtolfm.ini .  
Where does it fit in?

Thanks!
ô¿ô
 V  e  r  n  

WinXp sp2 , HotBasic,  Delphi5, WebDwarf, Blue Voda WebPage, Lazarus-0.9.26-fpc-2.2.2-win32.exe 
http://www.flickr.com/photos/vmars956/

Wanted: Dwarf Hibiscus (Orange/Rasberry)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: RE: Re: Lazarus and Mac osx 10.5 ? Also, Delphi
« Reply #9 on: December 13, 2008, 03:49:28 pm »
Quote from: "vmars"
THanks all !
Well, I have made some progress   with 'DfmToLfm.exe' ,  'MakePasX.exe' , and  'lazres.exe'.
I haven't run from 'Command Prompt' for years.  Also, I am rewriting the 'how to info' @ https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/xdev_toolkit/XDevStatus.html
Its a bit confusing to me. Maybe I'll Post it when I am finished.

But I don't know what to do with dfmtolfm.ini .  
Where does it fit in?

Thanks!


If you're working on OS X, the executable file names are dfmtolfm, makepasx and lazres. The ".exe" extension only makes sense on Windows.

If there's something confusing, let me know and I'll fix it.

Again, as indicated in step 6 of the instructions and in the dfmtolfm command line help, dfmtolfm.ini is a configuration file that you can add to if necessary (.ini should have given that away).

Thanks.

-Phil

vmars

  • New Member
  • *
  • Posts: 33
RE: Re: RE: Re: RE: Re: Lazarus and Mac osx 10.5 ? Also, De
« Reply #10 on: December 13, 2008, 07:40:20 pm »
Yes, THanks Phil;
I know it is a configuration file.
How will I know if I need to add to it?
And then what would I add to it (example)?

Yes, I am using Windows XP.
My Plan is to convert some of my Delphi5 pgms to FPC/Lazarus.
Then take them over to my brand new macBookPro. And see what runs. Or where I need to reprogram stuff. I am a newbie to MaxBookPro.
Hindsight: I probably should started this Thread on the Win Forum and then continued it over here on Mac OSX.  

Thanks again !
ô¿ô
 V  e  r  n  

WinXp sp2 , HotBasic,  Delphi5, WebDwarf, Blue Voda WebPage, Lazarus-0.9.26-fpc-2.2.2-win32.exe 
http://www.flickr.com/photos/vmars956/

Wanted: Dwarf Hibiscus (Orange/Rasberry)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: RE: Re: RE: Re: Lazarus and Mac osx 10.5 ? Also
« Reply #11 on: December 13, 2008, 07:51:03 pm »
Quote from: "vmars"
How will I know if I need to add to it?
And then what would I add to it (example)?


Again, from step 6: "Tip: If you run your Lazarus-compiled app and get an error message about an unknown property, that probably means you need to add this property to the [DeleteProps] section of dfmtolfm.ini file and rerun DfmToLfm on the .dfm file. Not all VCL components have been tested with DfmToLfm."

Open dfmtolfm.ini with a text editor. It's full of examples.

Thanks.

-Phil

 

TinyPortal © 2005-2018