Recent

Author Topic: Laz inst. error: can't locate FPC source - Source Forge -? can't find it there..  (Read 5071 times)

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....
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
« Last Edit: February 07, 2021, 12:08:58 am by AlanTheBeast »
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
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 which also includes hints on uninstalling. Also pay attention to this known issue for macOS 10.10.

dbannon

  • Hero Member
  • *****
  • Posts: 2796
    • tomboy-ng, a rewrite of the classic Tomboy
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
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....
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.
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Let us know how you go.

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....
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 ...

« Last Edit: February 09, 2021, 12:18:12 am by AlanTheBeast »
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

lucamar

  • Hero Member
  • *****
  • Posts: 4219
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:
  • fpc-3.2.0.intel-macosx.dmg
  • fpc-src-3.2.0-2-laz.pkg
  • Lazarus-2.0.11-r64280-x86_64-macosx.pkg

If you already did so please, disregard this post :-[
« Last Edit: February 09, 2021, 04:36:58 am by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
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.

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....
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).
« Last Edit: February 10, 2021, 01:55:49 am by AlanTheBeast »
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
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

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....
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
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
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).

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....


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.
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

lucamar

  • Hero Member
  • *****
  • Posts: 4219
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.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....
...  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!
« Last Edit: February 14, 2021, 12:14:14 am by AlanTheBeast »
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

 

TinyPortal © 2005-2018