Forum > macOS / Mac OS X

First Pascal Application

(1/5) > >>

Jon Trepte:
I'm a complete newbie to Lazarus but proficient in Delphi 6. I've installed the IDE and FPC. I create a new Application but get an error. See attachment.
Something seems not to have been setup properly.
Please help as this looks fantastic
Jon

Awkward:
Looks like you uses different version of compiled units from FPC and Lazarus. Better to install full Lazarus distrib which comes with proper FPC version. OR you will need to recompile units ("Build All" is our all)
next, in future, you can use fpcupdeluxe tool https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases to install fpc/lazarus version you need

Thaddy:
FYI the same happens in Delphi when you try to compile and link against DCU's that are compiled in a different Delphi version. Both DCU's and FPC's PPU's are version dependent, not major version but even minor version.
I also would recommend fpcupdeluxe or a full Lazarus distro.
In the case of Linux many distro's contain a fairly recent Lazarus and FPC.

Jon Trepte:
Many thanks for your replies. I did install Lazarus-2.2.0RC1-x86_64-macosx and  fpc-3.2.0.intel-macosx as they looked the latest.
Are these the recommended files. If not what should I be using?
Thanks again.

Thaddy:
I would advise against using RC - release candidate - versions unless you are an advanced user.
If you install with fpcupdeluxe, simply select "stable.git" for both lazarus and Fpc.
Top the line is trunk, but trunk versions need very regular updates (at least weekly, I do it more daily but I am a pensionado idiot) and are not supported for that reason.
The current stable version of Fpc is 3.2.2 although that may differ a version for MacOs.

EDIT: and indeed it does:
The Lazarus version is indeed an RC.
https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.0.12/

Navigation

[0] Message Index

[#] Next page

Go to full version