Lazarus

Installation => macOS / Mac OS X => Topic started by: AlanTheBeast on February 07, 2021, 12:06:50 am

Title: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 07, 2021, 12:06:50 am
I installed FPC 3.20.0.
DL'd Laz (latest).  Installed that, but I get some blather about FPC source files.  See attached.

I can't locate the source files on Source Forge.

Mac OS 10.10
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: trev on February 07, 2021, 05:52:02 am
The Lazarus 2.0.10 installation package for macOS includes FPC 3.2.0.

I would delete everything done to date, and then follow the detailed Wiki Installation Instructions for macOS (https://wiki.lazarus.freepascal.org/Installing_Lazarus_on_macOS) which also includes hints on uninstalling. Also pay attention to this known issue for macOS 10.10 (https://wiki.lazarus.freepascal.org/Installing_Lazarus_on_macOS#Installing_Lazarus_2.0.8.2C_2.0.10_with_FPC_3.2.0_for_macOS_10.10_and_earlier).
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: dbannon on February 07, 2021, 07:59:37 am
Just before you uninstall everything, might be worthwhile looking in /usr/local/share/fpcsrc and seeing if it has a fpc-3.2.0 directory, if so, try setting that in the dialog box who's picture you published.

The fact that Lazarus was quoting the older compiler in the source dialog might indicate you also have an older version installed as well, that fine as long as you have done it properly but do make sure the other tabs do in fact relate to the fpc 3.2.0.

Davo
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 07, 2021, 05:47:33 pm
I tried to install the latest Laz with both FPC versions trying to drill through.

I'll clean everything out and do it all again...

Thx both dbannon and trev.
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: trev on February 08, 2021, 01:36:24 am
Let us know how you go.
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 08, 2021, 11:32:41 pm
I seem lost.

Re-installed FPC from: "fpc-3.2.0.intel-macosx.dmg"

Re-installed Lazarus from: "Lazarus-2.0.11-r64280-x86_64-macosx.pkg"

(both orders...)

The path to what was installed (src) is
/usr/local/share/src/fpc-3.2.0

fpc itself is in /usr/local/bin/

In fpc-3.2.0 is a folder "demo"
In demo there are folders for various OS'
In the folder for macos (under demo) are two source files ...
HelloMac.pp and HelloMac.r

EDIT: Completely removed Laz + FPC using the script referred in the install Wiki.

Re-installed FPC 3.20.
Re-installed Laz 2.0.11

No joy ...

Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: lucamar on February 09, 2021, 04:34:26 am
Re-installed FPC 3.20.
Re-installed Laz 2.0.11

No joy ...

Note that, as for Linux, you need to install the three packages: fpc, fpc-src and lazarus, in that order. That is, install:

If you already did so please, disregard this post :-[
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: trev on February 09, 2021, 08:17:50 am
You should be downloading all the needed files as per the Wiki instructions I linked to earlier. From your screen grab you're not doing this :(

On the page from which you downloaded Lazarus it says:

Quote
Requires at least macOS 10.12 or higher.
For older Macs use the Mac OS i386 version.

While you can use FPC 3.2.0, you need to re-compile it after making source code changes detailed in the Wiki.

However, in the interests of getting you up and running sooner, I suggest you do as the Sourceforge Download page says and use the i386 versions.

And, please, follow the Wiki instructions religiously and use the links provided there for downloads. I guarantee the Wiki instructions work. I have verified them myself on macOS 10.10 on a 2009 Apple Mac mini.
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 10, 2021, 01:50:03 am
Hi trev,

I'm on Mac OS 10.14.6.    (not 10.10 as I originally posted  :-[ ).

What folder, specifically, should 3.2.0 source code be stored in?

Thanks.

(Edit: removed exaggeration).
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: trev on February 10, 2021, 02:13:05 am
Can you please follow the Wiki instructions - I have macOS 10.14.6 on a 2018 Mac mini installed using those instructions (using the 64 bit Lazarus 2.0.10 + FPC 3.2.0). So have others, so I know they really do work.

So:

* delete everything Lazarus + FPC related and start again;
* follow the Wiki instructions to the letter including the download links.

As for the location of the  FPC source:

Code: Text  [Select][+][-]
  1. trev@macmini7 [/usr/local/share/fpcsrc] $ ls -l
  2. total 0
  3. drwxr-xr-x  16 root  wheel  512 Aug 13 23:18 fpc-3.0.4
  4. drwxr-xr-x  15 root  wheel  480 Oct  4 16:27 fpc-3.2.0
  5. drwxr-xr-x  17 root  wheel  544 Jan  7 19:18 fpc-3.3.1
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 10, 2021, 02:18:50 am
Thanks, I'll get back to this soon.  Other zorgans to gweibit tonight....

Here is how it installed, FWIW:

Code: Pascal  [Select][+][-]
  1. iMac:~ alanbrowne$ cd /usr/local/share
  2. iMac:share alanbrowne$ ls
  3. doc     man     src     zsh
  4. iMac:share alanbrowne$ ls -al
  5. total 0
  6. drwxrwxr-x   6 alanbrowne  admin  192  8 Feb 17:52 .
  7. drwxr-xr-x  12 root        wheel  384  6 Jan  2019 ..
  8. drwxrwxr-x   4 alanbrowne  admin  128  8 Feb 18:24 doc
  9. drwxr-xr-x   5 alanbrowne  admin  160  6 Feb 17:45 man
  10. drwxr-xr-x   3 root        wheel   96  8 Feb 17:52 src
  11. drwxr-xr-x   3 alanbrowne  admin   96  8 Apr  2018 zsh

Code: Pascal  [Select][+][-]
  1. iMac:demo alanbrowne$ cd /usr/local/share/src/fpc-3.2.0/demo/macos
  2. iMac:macos alanbrowne$ ls -al
  3. total 16
  4. drwxr-xr-x   4 root  wheel  128  8 Feb 18:24 .
  5. drwxr-xr-x  21 root  wheel  672  8 Feb 18:24 ..
  6. -rw-r--r--   1 root  wheel  556 28 Dec  2014 HelloMac.pp
  7. -rw-r--r--   1 root  wheel  100 28 Dec  2014 HelloMac.r
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: trev on February 10, 2021, 02:24:39 am
Thanks, I'll get back to this soon.  Other zorgans to gweibit tonight....

Here is how it installed, FWIW:

That's because you did not install the Lazarus distribution files for FPC (ie did not follow the Wiki instructions).
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 13, 2021, 11:07:15 pm


Stupid Question of the day:  Does XCode (the entire ugly POS) have to be installed?  Or is the CLT enough?

Assuming XCode itself does not need to be installed:

Documenting this as I go.
https://wiki.lazarus.freepascal.org/Installing_Lazarus_on_macOS

Instruction 3:
Download and install the Free Pascal Compiler (FPC) binaries and the FPC source from the Lazarus IDE file area (Important do this before you install the Lazarus IDE)

The link there brings us to a page:
https://sourceforge.net/projects/lazarus/files/
Which makes absolutely NO mention of FPC.

However, in the upper right of that page is a "recommended projects" link. 
https://sourceforge.net/projects/freepascal/
So, let's follow that... on that page there's a readme.
Go to the readme
Goes to the freepascal site
Which leads back to a deeper files location with (finally, at last) the specific Mac OS DMG (w/o PowerPC).
https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.2.0/

So, let's try that one... Hmm, same stuff.
Installed.

Next.  Lazarus IDE.
https://sourceforge.net/projects/lazarus/files/

Installed that.

Result:   No different.

So: either I'm insane[1] (doing the same thing over and over again and expecting a different result), or the instructions are missing something fundamental.  (And again I do not have the whole XCode installed, only the CLT).

[1] I make no guarantees to the contrary.
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: lucamar on February 13, 2021, 11:43:20 pm
Instruction 3:
Download and install the Free Pascal Compiler (FPC) binaries and the FPC source from the Lazarus IDE file area (Important do this before you install the Lazarus IDE)

The link there brings us to a page:
https://sourceforge.net/projects/lazarus/files/
Which makes absolutely NO mention of FPC.

It doesn't because those are files for the Lazarus project, but if you had clicked "Lazarus macOS x86_64" and then, say, "2.0.11" you'd have ended in the page with download links for all three packages: fpc, fpc-src and Lazarus. Those are the "good" ones and the structure is the same for all prepared targets.

See attached image.
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 14, 2021, 12:06:05 am
...  so why not have the Wiki point there?  I followed "the instructions" yet never came close?  True?  or am I just plain stupid?  (Be honest, I don't mind).

Okay, so no error ... er, wait, now I get a pop up.... about macro something ...  hmm, can't re-create.

... and do I need XCode itself installed?


And thanks for your patience lucamar!
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: trev on February 14, 2021, 12:32:55 am
...  so why not have the Wiki point there?  I followed "the instructions" yet never came close?  True?  or am I just plain stupid?  (Be honest, I don't mind).

To which version? It points to the top level directory from which to choose the version you want/need and which bitness (32/64) you want or need. I'll see if I can make it clearer - you may not be alone.

Quote
Okay, so no error ... er, wait, now I get a pop up.... about macro something ...  hmm, can't re-create.

Harmless, ignore; it only occurs the first time.

Quote
... and do I need XCode itself installed?

It has always been required by FPC, but I haven't checked recently if you can omit it.  Xcode  also has some useful tools like the plist editor and the instruments.app.
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 14, 2021, 12:51:20 am

Thanks trev.  For the moment it seems I can work w/o XCode - there are other plist editors too...
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: trev on February 14, 2021, 02:24:40 am
Looking at the instruction:

Quote
Download the official Free Pascal Compiler (FPC) binaries and FPC source packages from the Lazarus IDE file area. When you arrive at that file area, choose the correct version of your operating system. The vast majority of Mac users should now choose the 64 bit packages in the Lazarus macOS x86-64 directory. Every Mac computer since late 2006 has been 64 bit capable. The fact that Apple has completely dropped all 32 bit support from macOS 10.15 Catalina (released in October 2019) is another reason to choose the 64 bit packages.

I've tried to make it clearer so that it now reads:

Quote
Download the official Free Pascal Compiler (FPC) binaries and FPC source packages from the Lazarus IDE file area.

When you arrive at that file area:

   1. Choose the correct version of your operating system. The vast majority of Mac users should now choose the 64 bit packages in the Lazarus macOS x86-64 directory. Every Mac computer since late 2006 has been 64 bit capable. The fact that Apple has completely dropped all 32 bit support from macOS 10.15 Catalina (released in October 2019) is another reason to choose the 64 bit packages.

   2. Choose the version of Lazarus you wish to install and you will be presented with the FPC binary and source packages to download.
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: trev on February 14, 2021, 06:27:54 am
Omitting Xcode when installing Lazarus 2.0.11 + FPC 3.2.0 in a new Mojave 10.14.6 installation seems to have no side effects. You can probably extrapolate from that to include Catalina and Big Sur. I'm not sure about earlier versions of Lazarus/FPC/macOS - they would need to be tested separately because at some point in the past FPC referenced library files included in Xcode as evidenced by fpc.cfg.
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: trev on February 14, 2021, 06:48:28 am
Xcode also needs to be installed for Validating and Uploading apps for the App Store, or Notarising apps for distribution outside of the Mac App Store both of which use altool for which there is no CLI equivalent.
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 14, 2021, 01:50:17 pm
@trev - XCode doesn't seem to be needed for my private programming needs.
Next is for the Raspberry Pi 4 which should get here on Monday.

As to the instructions, a link that brings one to the specific page where the source files are would be simpler, but more maintenance in the future, I suppose.

Better would be to have FPC and source all bundled in the Laz distro ... but would be a versions headache perhaps... or have the Laz distro offer the user different options during install?  Perhaps too complicated depending on dependencies...
Title: Re: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..
Post by: AlanTheBeast on February 14, 2021, 06:30:41 pm
Quote
Quote
Quote
... and do I need XCode itself installed?

It has always been required by FPC, but I haven't checked recently if you can omit it.  Xcode  also has some useful tools like the plist editor and the instruments.app.

No.  I've never needed XCode installed.  XCode Command Line Tools is required, of course.
TinyPortal © 2005-2018